/* GLOBAL */
:root {
    --nav-height: 80px; /* fallback (JS çalışmazsa) */
}

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

body {
    font-family: "Poppins", sans-serif;
    /* Ana Koyu Petrol Yeşili/Mavi-Gri Arka Plan */
    background: #243939; 
    color: #eaeaea;
    line-height: 1.6;
}

h1, h2, h3 {
    color: #fff;
}

/* NAVBAR */
header {
    /* Navbar ve Footer için En Koyu Arka Plan */
    background: #1f3131;
    padding-bottom: 80px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 8%;
}

nav .logo {
    display: flex;
    align-items: center;
    font-size: 26px;
    font-weight: 700;
}

.nav-icon {
    height: 30px;
    width: 30px;
    margin-right: 8px;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #d7d7d7;
    text-decoration: none;
    font-size: 16px;
    transition: 0.3s;
}

nav ul li a:hover {
    color: #fff;
}

section {
    scroll-margin-top: var(--nav-height);
}

/* HAMBURGER MENU BUTTON */
.menu-toggle {
    display: none; /* default: desktop'ta gizli */
    font-size: 28px;
    color: #ffffff;
    cursor: pointer;
}

/* HERO */
.hero {
    text-align: center;
    padding: 70px 8%;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
}

.hero p {
    margin: 20px auto;
    max-width: 600px;
    font-size: 18px;
    color: #dcdcdc;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    /* Buton Yeşili (Görseldeki yeşile yakın) */
    background: #589c36;
    color: #fff;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.3s;
}

.btn:hover {
    background: #4a872e;
}

.large-btn {
    padding: 18px 40px;
    font-size: 20px;
}

/* VIDEO */
.video-section {
    padding: 60px 8%;
    background: #243939;
    text-align: center;
}
.video-section {
    position: relative;
}

.video-section h2 {
    margin-bottom: 40px;
}

.video-container {
    margin-bottom: 30px;
}

.video-description {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 0 4px #4a6868, 0 10px 30px rgba(0,0,0,0.4); 
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* SECTIONS */
.info-section {
    padding: 50px 8%;  
    background: #243939;
}

.dark-bg {
    background: #243939;
    color: #eaeaea;
}

.dark-bg h2, .dark-bg p {
    color: #fff;
}

.content-container {
    display: flex;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    flex-wrap: wrap;
}

.content-container.reverse-layout {
    flex-direction: row-reverse;
}

.text-content {
    flex: 1;
    min-width: 300px;
}

.text-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.visual {
    flex: 1;
    max-width: 350px;
}

.visual img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border: 8px solid #f1f1f1; 
}

/* DOWNLOAD */
.download {
    padding: 80px 8%;
    text-align: center;
    background: #1f3131;
}

.download h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 20px;
    background: #1f3131;
    color: #888;
}

/* Beyaz çerçeveli başlık kutusu (Görseldeki stil) */
.policy-header-box {
    border: 3px solid #ffffff;
    padding: 25px 50px;
    display: inline-block;
    margin-top: 40px;
}

.policy-header-box h1 {
    font-size: 40px;
    margin: 0;
    text-transform: capitalize;
}

/* Politika Metin Alanı */
.policy-content {
    max-width: 900px;
    margin: -50px auto 60px; 
    padding: 50px;
    background: #2b4545; 
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    position: relative;
    z-index: 5;
    text-align: left;
}

.policy-content h2 {
    color: #589c36; /* Meji Yeşili */
    margin-top: 35px;
    margin-bottom: 15px;
    font-size: 24px;
}

.policy-content p, .policy-content li {
    color: #dcdcdc;
    margin-bottom: 15px;
    font-size: 16px;
}

.policy-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.policy-content a {
    color: #589c36;
    text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .content-container {
        flex-direction: column; 
        text-align: center;
        gap: 30px;
    }

    .content-container.reverse-layout {
        flex-direction: column-reverse; 
    }
    
    .hero h1 {
        font-size: 36px;
    }

    .policy-header-box {
        padding: 15px 30px;
    }

    .policy-header-box h1 {
        font-size: 26px;
    }

    .policy-content {
        padding: 25px;
        margin: -30px 5% 40px;
    }

    /* Mobile Navbar */
    .menu-toggle {
        display: block; /* mobilde görünür */
    }

    nav ul {
        display: none; /* mobilde menüyü gizle */
    }

    /* Mobile menu open state */
    nav ul.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        right: 8%;
        background: #1f3131;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.4);
        gap: 15px;
        z-index: 999;
    }
}

/* Marka isminin çevrilen kelimelerle birleşmesini engeller */
[translate="no"] {
    display: inline-block;
    margin-left: 0.3em;  /* Soldaki kelimeyle araya boşluk koyar */
    margin-right: 0.1em; /* Sağdaki kelimeyle araya çok hafif boşluk koyar */
    font-weight: 600;    /* Marka ismini hafif kalın yaparak vurgular */
}

/* Eğer marka ismi cümlenin veya butonun en başındaysa soldaki boşluğu kaldırır */
.logo [translate="no"],
.btn [translate="no"] {
    margin-left: 0;
}

/* Footer içindeki birleşmeyi özel olarak önler */
footer span[translate="no"] {
    margin-left: 0.3em;
}

// === AUTO NAV HEIGHT FOR SCROLL ===
function updateNavHeight() {
    const nav = document.querySelector("nav");
    if (!nav) return;

    const navHeight = nav.offsetHeight;
    document.documentElement.style.setProperty(
        "--nav-height",
        `${navHeight}px`
    );
}

updateNavHeight();

// Responsive / hamburger / resize olunca
window.addEventListener("resize", updateNavHeight);

