/*
Theme Name: WordPress Ura Asya
Author: Yakup Yiğit
Version: 0.0.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-theme, two-columns, left-sidebar
Text Domain: wordpress-ura-asya
Email: mail@yakupyigit.com
*/

/* Custom Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #ffffff;
  color: #000000;
  line-height: 1.2;
  min-height: 100vh;
  display: flex;
}

/* Masaüstünde header-mobile ve menu-toggle gizle */
.header-mobile {
  display: none;
}

.menu-toggle {
  display: none;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 2px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #e5e5e5;
  border-radius: 1px;
}

::-webkit-scrollbar-thumb:hover {
  background: #d1d1d1;
}

/* Left Sidebar */
.sidebar {
  width: 288px;
  background-color: white;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  z-index: 10;
}

.sidebar-close-btn {
  display: none; /* Masaüstünde gizle */
}

.sidebar-content {
  padding: 24px;
  padding-top: 32px;
}

/* Portfolio Header */
.portfolio-header {
  margin-bottom: 24px;
  display: block; /* Masaüstünde görünür yap */
}

.portfolio-header .nav-item {
  font-size: 18px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000000;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  min-height: 28px;
  line-height: 1.2;
  font-family: 'Poppins', 'Inter', sans-serif;
}

.portfolio-header .nav-item.active {
  font-size: 18px;
  font-weight: 600;
  color: #000000;
  min-height: 28px;
  line-height: 1.2;
  font-family: 'Poppins', 'Inter', sans-serif;
}

/* Portfolio Items */
.portfolio-items {
  margin-bottom: 48px;
}

/* Menu Accordion Section */
.menu-accordion-section {
  margin-top: 0;
}

.menu-accordion-section:first-child {
  margin-top: 0;
}

/* Menu Section Header (Clickable Button) */
.menu-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000000;
  text-decoration: none;
  font-weight: 400;
  transition: all 0.2s ease;
  min-height: 24px;
  line-height: 1.2;
  font-family: 'Poppins', 'Inter', sans-serif;
  margin-bottom: 0;
  padding: 4px 0;
  cursor: pointer;
}

.menu-section-header:hover {
  opacity: 0.7;
}

.accordion-icon {
  font-size: 18px;
  font-weight: 300;
  transition: transform 0.3s ease;
}

.menu-section-header.active .accordion-icon {
  transform: rotate(45deg);
}

/* Accordion Content */
.menu-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  margin-top: 0;
}

.menu-accordion-content.active {
  max-height: 1000px;
  opacity: 1;
}

/* Remove margin from accordion nav items */
.menu-accordion-content .nav-item {
  margin-bottom: 0;
}

.nav-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 0;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Poppins', 'Inter', sans-serif;
  color: #9ca3af;
  font-weight: 400;
  min-height: 24px;
  line-height: 1.2;
}

.nav-item:hover {
  color: #374151;
}

.nav-item.active {
  color: #000000;
  font-weight: 600;
  font-size: 15px;
  min-height: 24px;
  line-height: 1.2;
  font-family: 'Poppins', 'Inter', sans-serif;
}

/* Info Section */
.info-section {
  margin-top: 16px;
}

/* Info Section Bottom - Sidebar Alt Kısmı */
.info-section-bottom {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  padding: 0 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-header {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 12px;
  display: block;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 28px;
  line-height: 1.2;
  font-family: 'Poppins', 'Inter', sans-serif;
}

.info-header:hover {
  color: #000000;
}

.info-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}



.info-item {
  display: flex;
  align-items: center;
  text-align: left;
  background: none;
  border: none;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Poppins', 'Inter', sans-serif;
  color: #9ca3af;
  font-weight: 400;
  min-height: 24px;
  line-height: 1.2;
  text-decoration: none;
}

.info-item:hover {
  color: #000000;
}

/* Info Section Bottom'ta About KARD için özel stil */
.info-section-bottom .info-header {
  font-size: 15px;
  font-weight: 400;
  min-height: 24px;
  line-height: 1.2;
  margin-bottom: 0;
  padding-bottom: 2rem;
  font-family: 'Poppins', 'Inter', sans-serif;
}

/* Info Section Bottom'ta tüm öğeler için margin sıfırlama */
.info-section-bottom .info-item,
.info-section-bottom .info-header {
  margin: 0;
}

/* Main Content Area */
.main-content {
  flex: 1;
  margin-left: 288px;
  overflow: hidden; /* Add this to prevent horizontal scroll */
}

/* Gallery Content Title */
.gallery-content-title {
  margin-bottom: 16px;
  text-align: left;
  padding: 0 16px;
}

.gallery-content-title h1 {
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000000;
  margin: 0;
  padding: 0;
}

/* Gallery Content Text */
.gallery-content-text {
  margin-bottom: 32px;
  padding: 0 16px;
  text-align: center;
}

.content-text-wrapper {
  font-size: 14px;
  line-height: 1.8;
  color: #374151;
  font-family: 'Poppins', serif;
  width: 100%;
  font-weight: 600;
}

.gallery-container {
  padding: 16px;
}

.gallery-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
}



.gallery-item {
  position: relative;
  overflow: hidden;
  background-color: #f3f4f6;
  cursor: pointer;
  border-radius: 0;
  line-height: 0; /* Boşluğu sıfırla */
}

.gallery-item.has-video {
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.gallery-item iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    max-width: 100%;
    display: block; /* iframe'in varsayılan boşluğunu kaldır */
    vertical-align: top; /* iframe'in varsayılan boşluğunu kaldır */
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block; /* Prevents bottom margin/space */
}



.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0);
  
  pointer-events: none;
}



/* Zoom Modal */
.zoom-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.zoom-modal.active {
  display: flex;
}

.close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  color: white;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  transition: color 0.2s ease;
  z-index: 10;
  font-family: inherit;
}

.close-btn:hover {
  color: #d1d5db;
}

.modal-content {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 80vw;
  max-height: 80vh;
}

.modal-content img {
  max-width: 90vw !important;
  max-height: 90vh !important;
  object-fit: contain;
}

/* Navigation arrows */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  background: none;
  border: none;
  font-size: 32px;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.2s ease;
  font-family: inherit;
}

.nav-arrow:hover {
  color: #d1d5db;
}

.prev-arrow {
  left: 24px;
}

.next-arrow {
  right: 24px;
}

/* Contact Modal */
.contact-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-family: 'Poppins', 'Inter', sans-serif;
}

.contact-modal.active {
  display: flex;
}

.contact-modal-content {
  background: white;
  border-radius: 12px;
  padding: 24px;
  width: 100%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.contact-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  transition: all 0.2s ease;
}

.contact-close-btn:hover {
  color: #374151;
}

.contact-title {
  font-size: 20px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 32px;
  text-align: center;
  font-family: 'Poppins', serif;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-input,
.contact-textarea {
  width: 100%;
  padding: 8px 0;
  border: none;
  border-bottom: 1px solid #e5e7eb;
  font-size: 16px;
  font-family: 'Poppins', serif;
  transition: border-color 0.2s ease;
  resize: none;
  border-radius: 0;
}

.contact-input:focus,
.contact-textarea:focus {
  outline: none;
  border-color: #374151;
}

.contact-input::placeholder,
.contact-textarea::placeholder {
  color: #9ca3af;
}

.contact-textarea {
  min-height: 120px;
}

.contact-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

.contact-btn {
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Poppins', serif;
  border: none;
}

.cancel-btn {
  background: #f3f4f6;
  color: #374151;
}

.cancel-btn:hover {
  background: #e5e7eb;
}

.send-btn {
  background: #111827;
  color: white;
}

.contact-btn:hover {
  background: #374151;
}

/* Info Modal */
.info-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-family: 'Poppins', 'Inter', sans-serif;
}

.info-modal.active {
  display: flex;
}

.info-modal-content {
  background: white;
  border-radius: 12px;
  padding: 24px;
  width: 100%;
  max-width: 768px;
  position: relative;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  max-height: 90vh;
  overflow-y: auto;
}

.info-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  transition: all 0.2s ease;
}

.info-close-btn:hover {
  color: #374151;
}

.info-title {
  font-size: 20px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 24px;
  text-align: center;
  font-family: 'Poppins', serif;
}

.info-modal-text {
  font-size: 16px;
  line-height: 1.6;
  color: #374151;
  font-family: 'Poppins', serif;
}

/* Responsive Design */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    position: fixed;
    width: 280px;
    z-index: 1000;
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
  }

  .sidebar.active {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
    padding-top: 72px; /* header-mobile yüksekliği + biraz boşluk */
  }

  .portfolio-header {
    display: block; /* Mobil görünümde de göster */
  }

  .header-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 16px;
    background-color: #ffffff; /* Arka plan rengi */
    z-index: 1; /* Sidebar'dan biraz daha düşük */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* Hafif gölge */
  }

  .header-portfolio-text {
    font-size: 18px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Poppins', 'Inter', sans-serif;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #000000;
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 600;
  }

  .menu-toggle:hover {
    background-color: #f9fafb;
  }

  .sidebar-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 1002;
    display: block; /* Mobil görünümde göster */
  }

  .sidebar-close-btn:hover {
    color: #374151;
  }

  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
  }

  .sidebar.active + .sidebar-overlay {
    display: block;
  }
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-container {
    padding: 8px;
  }
  
  .gallery-content-title {
    margin-bottom: 12px;
    padding: 0 8px;
  }
  
  .gallery-content-title h1 {
    font-size: 24px;
  }
  
  .gallery-content-text {
    margin-bottom: 24px;
    padding: 0 8px;
    text-align: center;
  }
  
  .content-text-wrapper {
    font-size: 12x;
    line-height: 1.6;
    font-weight: 600;
    width: 100%;
  }
}
