:root {
    --primary-green: #7a9460;
    --dark-green: #344e41;
    --white: #ffffff;
    --black: #1a1a1a;
    --v-curve: cubic-bezier(0.77, 0, 0.175, 1);
}

/* --- Temel Ayarlar --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Montserrat', sans-serif; }

/* --- Üst Navigasyon (Top Nav) --- */
.top-nav {
    position: fixed; top: 0; width: 100%; height: 80px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 5%; z-index: 1000; 
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.logo { font-weight: 900; font-size: 1.6rem; letter-spacing: -1px; color: var(--black); }
.logo span { color: var(--primary-green); font-weight: 400; }

.nav-triggers { display: flex; align-items: center; gap: 20px; }

/* Üst Buton Stili */
.header-cta {
    text-decoration: none; color: white; background: var(--dark-green);
    padding: 12px 28px; border-radius: 50px; font-weight: 700; font-size: 0.8rem;
    transition: 0.4s var(--v-curve);
    box-shadow: 0 8px 15px rgba(52, 78, 65, 0.15);
    white-space: nowrap;
    display: inline-block;
}
.header-cta:hover { background: var(--primary-green); transform: translateY(-3px); color: white; }

.menu-open-btn {
    background: none; border: none; font-weight: 800; cursor: pointer;
    font-size: 0.85rem; display: flex; align-items: center; gap: 10px;
    color: var(--black);
}

/* --- Yan Menü Sistemi --- */
.side-menu-overlay {
    position: fixed; top: 0; right: -100%;
    width: 100%; height: 100vh;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    z-index: 9999;
    transition: all 0.6s var(--v-curve);
    opacity: 0; visibility: hidden; pointer-events: none; 
}
.side-menu-overlay.active { right: 0; opacity: 1; visibility: visible; pointer-events: auto; }

.side-menu-content {
    position: absolute; right: 0; width: 420px; height: 100%;
    background: var(--white); padding: 50px 40px; 
    display: flex; flex-direction: column;
}

.side-menu-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 50px;
}

.logo-small { font-weight: 900; font-size: 1.3rem; color: var(--black); }
.logo-small span { color: var(--primary-green); font-weight: 400; }

.menu-close-btn { 
    background: #f5f5f5; border: none; width: 45px; height: 45px; 
    border-radius: 50%; font-size: 1.2rem; cursor: pointer;
}

.side-links { list-style: none; }
.side-links li { margin-bottom: 20px; }
.side-links a {
    text-decoration: none; color: var(--black); font-size: 2rem;
    font-weight: 800; transition: 0.4s var(--v-curve); 
    display: inline-block; opacity: 0.8;
}
.side-links a:hover { opacity: 1; color: var(--primary-green); transform: translateX(15px); }

/* --- ⚡ EYLEM ÇUBUĞU (YAN MENÜ ALTI) --- */
.side-footer { 
    margin-top: auto; 
    padding-top: 25px;
    border-top: 1px solid rgba(0,0,0,0.05);
    width: 100% !important;
}

.action-bar {
    width: 100% !important;
    display: table !important; 
    border-spacing: 10px 0 !important;
    table-layout: fixed !important;
}

.panel-btn.green {
    display: table-cell !important;
    vertical-align: middle !important;
    background: var(--primary-green) !important;
    color: white !important;
    text-align: center !important;
    text-decoration: none !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
    font-size: 0.85rem !important;
    height: 50px !important;
    white-space: nowrap !important;
}

.icon-btn {
    display: table-cell !important;
    vertical-align: middle !important;
    width: 50px !important;
    height: 50px !important;
    background: #f8f8f8 !important;
    color: var(--black) !important;
    text-align: center !important;
    border-radius: 12px !important;
    font-size: 1.2rem !important;
    text-decoration: none !important;
}

.icon-btn i { line-height: 50px !important; display: block !important; }


/* --- HOVER EFEKTLERİ --- */
.panel-btn.green:hover {
    background: var(--dark-green) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 78, 65, 0.2);
    color: #ffffff !important;
}

.icon-btn.wp:hover {
    background: #25D366 !important;
    color: #ffffff !important;
    transform: translateY(-3px) scale(1.05);
}

.icon-btn.insta:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) !important;
    color: #ffffff !important;
    transform: translateY(-3px) scale(1.05);
}

.panel-btn.green, .icon-btn {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1) !important;
}

/* --- 📱 MOBİL & SAFARI FIX (TAM UYUM) --- */

@media (max-width: 768px) {
    .top-nav { 
        height: 65px; 
        padding: 0 5%; 
        /* Safari üst bar çakışması ve akıcılık için */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        box-sizing: border-box; /* Genişliğin taşmasını önler */
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: #ffffff; /* Arka plan rengini sağlama alalım */
        -webkit-backdrop-filter: blur(10px); /* Safari için cam efekti desteği */
        backdrop-filter: blur(10px);
    }
    
    .logo { font-size: 1.1rem; white-space: nowrap; }
    
    .header-cta { 
        padding: 10px 15px !important; 
        font-size: 0.7rem !important;
        white-space: nowrap;
    }

    /* --- Safari Menü Görünmeme Sorunu Çözümü --- */
    .side-menu-overlay {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        /* iOS Safari vh hatası çözümü: dvh birimi kullanımı */
        height: 100vh;
        height: 100dvh; 
        background: rgba(0, 0, 0, 0.5); /* Arka plan karartması */
        z-index: 10000;
        display: block !important;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transition: all 0.4s ease-in-out;
    }

    .side-menu-overlay.active {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    .side-menu-content {
        width: 80%;
        max-width: 300px;
        height: 100%;
        background: #fff;
        position: absolute;
        right: 0;
        top: 0;
        transform: translateX(100%);
        transition: transform 0.4s var(--v-curve);
        /* iOS Safari donanım hızlandırma ve taşma engelleme */
        -webkit-overflow-scrolling: touch;
        -webkit-transform: translateX(100%);
        display: flex;
        flex-direction: column;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }

    .side-menu-overlay.active .side-menu-content {
        transform: translateX(0);
        -webkit-transform: translateX(0);
    }

    .side-links a {
        font-size: 1.3rem; 
        padding: 15px 0;
        display: block;
    }
}

@media (max-width: 500px) {
    .side-menu-content { 
        padding: 40px 25px !important; 
    }
    
    /* Butonların yan yana "jilet gibi" durması için Flexbox düzeltmesi */
    .action-bar { 
        display: flex !important;
        flex-direction: row !important; /* Yan yana zorla */
        gap: 10px !important;
        width: 100%;
        margin-top: auto; /* Alta yasla */
    }

    .panel-btn.green { 
        flex: 2; /* Yeşil buton daha geniş */
        font-size: 0.75rem !important; 
        height: 50px !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        border-radius: 4px;
        background: #344e41; /* Senin istediğin yeşil */
        color: #fff;
    }

    .icon-btn { 
        flex: 1; /* İkon butonlar daha dar */
        height: 50px !important; 
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: #f4f4f4;
        border-radius: 4px;
    }
}

