/* ===================================
   SHARED STYLES - All Pages
   Cafe Website
   =================================== */

/* ===================================
   CSS Variables & Base Styles
   =================================== */
/* --- Sadece Home Page İçin Özel Navigasyon --- */

/* 1. Sayfa Home Page ise ve henüz scroll edilmemişse: SADECE MASAÜSTÜ LİNKLERİ BEYAZ */
/* .main-nav ekleyerek kuralı sadece masaüstü menüsüyle kısıtlıyoruz */
.home-page .site-header:not(.scrolled) .main-nav .nav-link {
    color: #ffffff !important;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

/* Hamburger çizgileri resim üzerinde görünsün diye başlangıçta beyaz kalsın */
.home-page .site-header:not(.scrolled) .hamburger span {
    background: #ffffff !important;
}

/* 2. MOBİL MENÜ LİNKLERİ: Arka plan beyaz olduğu için her zaman koyu olmalı */
.mobile-menu .nav-link {
    color: #1f2937 !important; /* Koyu gri/siyah tonun */
    text-shadow: none !important;
    opacity: 1 !important;
}

/* 3. Scroll edildiğinde veya Home Page dışındaki sayfalarda: HER ŞEY KOYU */
.site-header.scrolled .nav-link,
.site-header.scrolled .main-nav .nav-link,
body:not(.home-page) .nav-link {
    color: #1f2937 !important;
    text-shadow: none !important;
}

.site-header.scrolled .hamburger span,
body:not(.home-page) .hamburger span {
    background: #1f2937 !important;
}
:root {
    /* Brand Colors */
    --cafe-green: #B4E2C5;
    --cafe-green-dark: #9DD4B0;
    --cafe-green-light: #D4F1E3;

    /* Neutral Colors */
    --color-white: #FFFFFF;
    --color-black: #1F2937;
    --color-gray-50: #F9FAFB;
    --color-gray-100: #F3F4F6;
    --color-gray-300: #D1D5DB;
    --color-gray-600: #6B7280;
    --color-gray-900: #111827;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    /* Spacing */
    --header-height: 80px;

    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================================
   Global Reset & Base
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--color-black);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===================================
   Typography
   =================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-gray-900);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

/* ===================================
   Sticky Header (Glassmorphism)
   =================================== */
/* shared.css */

/* 1. Header'ı her şeyin üstüne zorla */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* En üst katman: Menüden daha yüksek olmalı */
    z-index: 1100; 
    transition: var(--transition-smooth);
    background: transparent;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between; /* Logo solda, Nav/Burger sağda */
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 8px 12px;
    border-radius: 12px;
    transition: var(--transition-smooth);
    /* position: fixed; kuralını SİLDİK */
}

.site-logo:hover {
    color: var(--cafe-green);
}

.main-nav {
    margin-left: auto;
}

/* Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    position: relative;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gray-900);
    padding-bottom: 0.25rem;
    transition: var(--transition-smooth);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--cafe-green);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--cafe-green);
}

/* 3. Butonun kendisi ve rengi */
.mobile-menu-btn {
    display: none;
    position: relative;
    z-index: 11001 !important; /* En üst katman */
    cursor: pointer;
    margin-left: auto;
}
/* Çizgilerin Genel Yapısı */
.hamburger {
    width: 28px;
    height: 20px;
    position: relative;
    transition: 0.5s ease-in-out;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--color-gray-900);
    border-radius: 3px;
    transition: 0.25s ease-in-out;
    left: 0;
}

.hamburger span:nth-child(1) { top: 0px; }
.hamburger span:nth-child(2) { top: 8px; }
.hamburger span:nth-child(3) { top: 16px; }

/* ÇARPI (X) ANİMASYONU */
/* Menü açıkken hamburger çizgilerinin rengini kontrol et */
.mobile-menu-btn.active .hamburger span {
    background: #000000 !important;
}
/* Butona .active sınıfı geldiğinde çizgilerin alacağı şekil */
.mobile-menu-btn.active .hamburger span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
    background: var(--cafe-green-dark); /* Çarpı olduğunda renk değiştirebilir */
}

.mobile-menu-btn.active .hamburger span:nth-child(2) {
    opacity: 0;
    left: -40px; /* Ortadaki çizgi sola kayarak kaybolur */
}

.mobile-menu-btn.active .hamburger span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
    background: var(--cafe-green-dark);
}

/* Mobile Menu - Full Screen Overlay */
/* 2. Menü arka planını butonun bir tık altına al */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    z-index: 9999 !important; /* Header'dan (10000) düşük olmalı */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease; 
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 6rem 2rem 3rem;
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-menu .nav-link {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 1rem;
    display: block;
    transition: var(--transition-smooth);
}

.mobile-menu .nav-link:hover {
    color: var(--cafe-green);
    transform: translateX(10px);
}

.mobile-menu .nav-link.active {
    color: var(--cafe-green);
    position: relative;
}

.mobile-menu .nav-link.active::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--cafe-green);
}

/* ===================================
   Floating WhatsApp Button
   =================================== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    z-index: 999;
    transition: var(--transition-smooth);
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
    animation: none;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}

@keyframes pulse-whatsapp {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7), 0 0 0 15px rgba(37, 211, 102, 0);
    }
}

/* ===================================
   Footer
   =================================== */
.site-footer {
    background-color: var(--color-gray-900);
    color: var(--color-white);
    padding: 3rem 2rem;
    margin-top: 5rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-text {
    color: var(--color-gray-300);
    margin-bottom: 1rem;
}

.footer-copyright {
    color: var(--color-gray-600);
    font-size: 0.875rem;
}

/* ===================================
   Fade-in Animations
   =================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation delays */
.fade-in:nth-child(1) { 
    transition-delay: 0.1s;
}

.fade-in:nth-child(2) {
    transition-delay: 0.2s;
}

.fade-in:nth-child(3) {
    transition-delay: 0.3s;
}

.fade-in:nth-child(4) {
    transition-delay: 0.4s;
}

.fade-in:nth-child(5) {
    transition-delay: 0.5s;
}

.fade-in:nth-child(6) {
    transition-delay: 0.6s;
}

/* ===================================
   Utility Classes
   =================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 5rem 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--cafe-green);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--cafe-green-dark);
}

/* Selection Color */
::selection {
    background-color: var(--cafe-green);
    color: var(--color-white);
}

::-moz-selection {
    background-color: var(--cafe-green);
    color: var(--color-white);
}

/* ===================================
   Responsive Design - Mobile First
   =================================== */
@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
}
/* Tablet and below */
@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block; /* Mobilde görünür ve sağda durur */
    }

    .site-logo img {
    width: 140px; /* 300px çok büyük, 140px navbar için idealdir */
    height: auto;
}

    .mobile-menu {
        display: block;
    }

    /* Header adjustments */
    .header-container {
        padding: 1rem 1.5rem;
    }

    body.menu-open .site-header {
    z-index: 1005; 
}

    /* Prevent scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }

    /* Container spacing */
    .container {
        padding: 0 1.5rem;
    }

    .section-padding {
        padding: 3rem 0;
    }

    /* WhatsApp button - touch friendly */
    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 1.5rem;
        right: 1.5rem;
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }

    /* Increase touch targets */
    button,
    a.btn-primary,
    a.btn-secondary {
        min-height: 48px;
        padding: 1rem 2rem;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .site-logo {
        font-size: 1.25rem;
    }

    .mobile-menu .nav-link {
        font-size: 1.5rem;
    }
}

/* ===================================
   Accessibility
   =================================== */
*:focus-visible {
    outline: 2px solid var(--cafe-green);
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* ===============================
   Site Logo (Fixed Top-Left)
   =============================== */
.site-logo {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 999;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 70px;
    height: 70px;

    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.85);

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.site-logo {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 10px;
    border-radius: 12px;   /* Daire yerine soft köşe */
}

.site-logo img {
    width: 120px; /* Navbar için daha dengeli bir boyut */
    height: auto;
    display: block;
}

/* Hover – Işık efekti (PNG’ye zarar vermez) */
.site-logo:hover img {
    filter: drop-shadow(0 0 6px rgba(180, 226, 197, 0.9))
            drop-shadow(0 0 14px rgba(180, 226, 197, 0.6));
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .site-logo {
        width: 56px;
        height: 56px;
        top: 1rem;
        left: 1rem;
    }

    .site-logo img {
        width: 32px;
    }
}