/* ═══════════════════════════════════════════
   The Pier of Urla — Main Stylesheet
   Premium Ege Coastal Light Theme
   ═══════════════════════════════════════════ */

:root {
  /* Ferah Ege Kıyısı (Yumuşak Krem ve Açık Turkuaz) */
  --bg-primary: #F8F6F0;       /* Göz yormayan yumuşak sıcak krem */
  --bg-secondary: #EFECE4;     /* Hafif kum beji / açık taş grisi */
  --bg-card: rgba(248, 246, 240, 0.85); /* Krem yarı saydam kart */
  --bg-card-hover: #FDFBF7;    /* Çok hafif açık krem, saf beyaz değil */
  --bg-glass: rgba(248, 246, 240, 0.6);
  --bg-glass-hover: rgba(253, 251, 247, 0.95);

  --text-primary: #2C363F;     /* Koyu füme/lacivert, çok sert siyah değil */
  --text-secondary: #6A7A89;   /* Yumuşak puslu gri */
  --text-accent: #48A9A6;      /* Ferah açık deniz turkuazı */
  --text-gold: #C29B57;        /* Sakin mat altın */
  --text-gold-light: #A37F41;

  --accent-blue: #4281A4;      /* Sakinleştirici ada mavisi */
  --accent-blue-light: #6BA3C2;
  --accent-teal: #48A9A6;
  --accent-gold: #C29B57;
  --accent-coral: #D96C75;     /* Yumuşak mercan */

  --gradient-ocean: linear-gradient(135deg, #E6F0EE 0%, #D8EAE8 50%, #F8F6F0 100%); /* Ferah sabah geçişi */
  --gradient-gold: linear-gradient(135deg, #C29B57, #E4C68B);
  --gradient-blue: linear-gradient(135deg, #4281A4, #6BA3C2);
  --gradient-card: linear-gradient(145deg, rgba(253, 251, 247, 0.95), rgba(239, 236, 228, 0.5));

  --border-glass: 1px solid rgba(66, 129, 164, 0.06);
  --border-gold: 1px solid rgba(194, 155, 87, 0.15);

  --shadow-sm: 0 4px 15px rgba(44, 54, 63, 0.03);
  --shadow-md: 0 10px 35px rgba(44, 54, 63, 0.05);
  --shadow-lg: 0 20px 60px rgba(44, 54, 63, 0.07);
  --shadow-glow: 0 10px 30px rgba(72, 169, 166, 0.08);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset & Temel Ayarlar ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Özel Kaydırma Çubuğu */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(2, 132, 199, 0.2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(2, 132, 199, 0.4); }

/* ══════════════════════════════════════
   HERO / GİRİŞ ALANI
   ══════════════════════════════════════ */

#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, rgba(248, 246, 240, 0.85) 0%, rgba(216, 234, 232, 0.75) 50%, rgba(248, 246, 240, 0.95) 100%), url('/images/hero_bg.png') no-repeat center center;
  background-size: cover;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 15% 25%, rgba(66, 129, 164, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(194, 155, 87, 0.05) 0%, transparent 45%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center bottom, rgba(2, 132, 199, 0.02) 0%, transparent 70%);
}

/* ── Yüzen Cam Navigasyon Barı (Floating Glass Navbar) ── */
#main-nav {
  position: fixed;
  top: 1.5rem;
  left: 5%;
  right: 5%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 2rem;
  transition: var(--transition-smooth);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.03);
}

#main-nav.scrolled {
  top: 0.75rem;
  padding: 0.7rem 2rem;
  background: rgba(252, 251, 250, 0.85);
  border: 1px solid rgba(2, 132, 199, 0.08);
  box-shadow: 0 10px 30px rgba(10, 30, 60, 0.05);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-icon {
  font-size: 1.8rem;
  filter: drop-shadow(0 0 8px rgba(180, 133, 40, 0.25));
}

.nav-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-gold-light);
  letter-spacing: 0.3px;
}

.nav-links {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-accent);
  background: rgba(2, 132, 199, 0.06);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Hero İçeriği ── */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 2rem;
  animation: heroFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--text-gold);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  text-shadow: 0 10px 40px rgba(30, 50, 80, 0.05);
}

.hero-desc {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 550px;
  margin: 0 auto 2.75rem;
  line-height: 1.75;
}

.hero-btn {
  display: inline-block;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #ffffff !important;
  background: var(--gradient-blue);
  padding: 1rem 2.75rem;
  border-radius: 50px;
  transition: var(--transition-smooth);
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.25);
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(2, 132, 199, 0.38);
}

/* Dalgalı Geçiş */
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 3;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 80px;
}

/* ══════════════════════════════════════
   MENÜ ALANI
   ══════════════════════════════════════ */

#menu {
  position: relative;
  padding: 6rem 2rem 5rem;
  max-width: 1250px;
  margin: 0 auto;
  background: var(--bg-primary);
}

.menu-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.menu-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-gold);
  background: rgba(180, 133, 40, 0.08);
  padding: 0.45rem 1.25rem;
  border-radius: 50px;
  border: 1px solid rgba(180, 133, 40, 0.15);
  margin-bottom: 1.25rem;
}

.menu-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  position: relative;
}

.menu-title::after {
  content: '⚓';
  display: block;
  font-size: 1.15rem;
  color: var(--text-gold);
  margin: 0.65rem auto 0;
  width: 100px;
  text-align: center;
  opacity: 0.85;
  font-weight: 400;
  letter-spacing: 4px;
  border-bottom: 1.5px solid var(--border-gold);
  padding-bottom: 0.4rem;
}

.menu-subtitle {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── Kategori Filtre Butonları ── */
.category-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 3.5rem;
  padding: 0.5rem;
}

.category-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-glass);
  border: var(--border-glass);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.category-btn:hover {
  background: var(--bg-glass-hover);
  color: var(--text-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.category-btn.active {
  background: var(--gradient-blue);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.22);
}

.category-btn .cat-icon {
  font-size: 1.15rem;
}

/* ── Menü Grid ── */
.menu-container {
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
}

/* ── Kategori Grubu ── */
.category-section {
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.category-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(2, 132, 199, 0.06);
}

.category-heading .cat-emoji {
  font-size: 2.1rem;
  filter: drop-shadow(0 4px 6px rgba(180, 133, 40, 0.15));
}

.category-heading h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-gold-light);
}

/* Yemek Kartları Grid */
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
}

/* ── Premium Yemek Kartı ── */
.menu-card {
  position: relative;
  background: var(--gradient-card);
  border: var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0; /* Full-bleed görseller için iç boşluk kaldırıldı */
  transition: var(--transition-smooth);
  cursor: default;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column; /* Dikey hizalama */
}

.menu-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(2, 132, 199, 0.4), transparent);
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: 6;
}

.menu-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(180, 133, 40, 0.35); /* Sand-gold glow on hover */
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(30, 50, 80, 0.06), 0 0 20px rgba(180, 133, 40, 0.03);
}

.menu-card:hover::before {
  opacity: 1;
}

/* Fotoğraflı Kısım (Büyük Görsel) */
.card-image-wrap {
  width: 100%;
  height: 220px; /* Büyük görsel yüksekliği */
  position: relative;
  overflow: hidden;
  border-bottom: var(--border-glass);
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.menu-card:hover .card-image {
  transform: scale(1.08);
}

/* Lüks Gurme Etiketleri */
.card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  z-index: 5;
  box-shadow: 0 4px 10px rgba(30, 50, 80, 0.06);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.card-badge.fresh {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid rgba(3, 105, 161, 0.12);
}

.card-badge.chef {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid rgba(180, 83, 9, 0.12);
}

.card-badge.hot {
  background: #ffe4e6;
  color: #be123c;
  border: 1px solid rgba(190, 18, 60, 0.12);
}

.card-badge.organic {
  background: #ccfbf1;
  color: #0f766e;
  border: 1px solid rgba(15, 118, 110, 0.12);
}

/* Yüzen Fiyat Kapsülü */
.card-price.floating {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  color: var(--text-gold);
  border: 1px solid rgba(180, 133, 40, 0.25);
  box-shadow: 0 4px 12px rgba(30, 50, 80, 0.08);
  border-radius: 50px;
  padding: 0.35rem 0.85rem;
  font-weight: 700;
  font-size: 1rem;
  z-index: 5;
}

/* Metin Alanı */
.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.card-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

.card-price {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-gold);
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  padding: 0.2rem 0.5rem;
  background: rgba(180, 133, 40, 0.05);
  border-radius: 6px;
}

.card-desc {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.6;
}

.card-divider {
  width: 25px;
  height: 1.5px;
  background: var(--gradient-gold);
  margin: 0.7rem 0;
  transition: var(--transition-smooth);
}

.menu-card:hover .card-divider {
  width: 50px;
}

/* ── YÜKLEME GEÇİŞİ ANIMASYONU ── */
.loading {
  display: flex;
  justify-content: center;
  padding: 4rem;
}

.loading-dots {
  display: flex;
  gap: 8px;
}

.loading-dots span {
  width: 10px;
  height: 10px;
  background: var(--accent-blue);
  border-radius: 50%;
  animation: loadPulse 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes loadPulse {
  0%, 80%, 100% { transform: scale(0.5); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}

/* ══════════════════════════════════════
   ALT ALAN (FOOTER)
   ══════════════════════════════════════ */

#footer {
  position: relative;
  background: var(--bg-secondary);
  margin-top: 4rem;
  border-top: var(--border-glass);
}

.footer-wave {
  position: relative;
  top: -1px;
}

.footer-wave svg {
  display: block;
  width: 100%;
  height: 60px;
}

.footer-content {
  padding: 1.5rem 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  text-align: center;
  margin-bottom: 2.5rem;
}

.footer-icon {
  font-size: 2.3rem;
  display: block;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 4px 6px rgba(180, 133, 40, 0.15));
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-gold-light);
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.6;
}

.footer-info {
  display: flex;
  justify-content: center;
  gap: 6rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-blue);
  margin-bottom: 0.75rem;
}

.footer-col p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 0.4rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(2, 132, 199, 0.05);
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  opacity: 0.8;
}

/* ══════════════════════════════════════
   DUYARLI TASARIM (RESPONSIVE)
   ══════════════════════════════════════ */

@media (max-width: 992px) {
  #main-nav {
    top: 1rem;
    left: 1rem;
    right: 1rem;
    padding: 0.65rem 1.25rem;
    border-radius: 30px;
    border-color: rgba(255, 255, 255, 0.35);
  }

  #main-nav.scrolled {
    top: 0.5rem;
    padding: 0.55rem 1.25rem;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(252, 251, 250, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.15rem;
    padding: 0.8rem 2rem;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-title {
    font-size: 2.6rem;
  }

  .hero-desc {
    font-size: 1.05rem;
  }

  #menu {
    padding: 4rem 1.25rem 3rem;
  }

  .items-grid {
    grid-template-columns: 1fr;
  }

  .category-nav {
    gap: 0.45rem;
  }

  .category-btn {
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
  }

  .footer-info {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.1rem;
  }

  .menu-title {
    font-size: 1.7rem;
  }

  .menu-card {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1.1rem !important;
    padding: 1.25rem;
  }

  .card-image-wrap {
    width: 100% !important;
    height: 160px !important;
  }

  .card-name {
    font-size: 1.05rem;
  }
}
