/* =========================================
   1. TEMEL AYARLAR (RESET & BASE)
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #052319; /* Ana Arka Plan: Çok koyu yeşil */
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden; /* Yatay kaydırmayı engelle */
}

.legal-note {
    font-size: 4px; /* Ana yazıdan bir tık küçük olsun */
    color: #a0aec0;     /* Biraz daha gri/soluk dursun ki ana başlık parlasın */
    margin-top: 20px;   /* Üstteki yazıdan biraz ayrılsın */
    background: rgba(0, 0, 0, 0.2); /* Arkasına çok hafif bir karanlık fon */
    padding: 15px;
    border-radius: 10px;
    border-left: 3px solid #00ffcc; /* Soluna neon bir çizgi çekelim, "Not" olduğu belli olsun */
}

.legal-note strong {
    color: #00ffcc; /* Kalın yerler yine neon kalsın */
}

/* Tüm içerikleri ortalayan ana kapsayıcı */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Linklerin varsayılan alt çizgisini kaldır */
a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

/* =========================================
   2. NAVBAR & MENÜ SİSTEMİ
   ========================================= */
.navbar-container {
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1000; /* Menü her zaman en üstte */
}

.menu-wrapper {
    width: 100%;
    max-width: 1000px; /* Menünün maksimum genişliği */
    position: relative;
}

/* --- Menü Kutusu (Buton Görünümlü) --- */
.menu-box {
    background-color: #033531;
    border: 1px solid rgba(0, 255, 204, 0.3); /* Neon çerçeve */
    border-radius: 16px;
    padding: 10px 20px;
    width: 100%;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.menu-box:hover {
    background-color: #04423d;
    box-shadow: 0 6px 15px rgba(0, 255, 204, 0.15);
}

/* Menü açıldığında köşeleri düzeltme */
.menu-box.active {
    border-radius: 16px 16px 0 0;
    border-bottom: 1px solid transparent;
    background-color: #04423d;
}

/* Navbar içindeki küçük logo */
.nav-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Navbar Başlığı */
.nav-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
    text-align: left;
}

/* Ok İkonu */
.arrow-icon {
    color: #00ffcc;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.arrow-icon.rotate {
    transform: rotate(180deg);
}

/* --- Açılır Menü (Dropdown) --- */
.menu-items {
    background-color: #033531;
    width: 100%;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
    position: absolute;
    top: 100%;
    left: 0;
    
    /* Animasyon Başlangıç Değerleri */
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease-in-out;
    
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-top: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    visibility: hidden;
}

.menu-items.show {
    max-height: 400px;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.menu-items a {
    display: block;
    color: #e2e8f0;
    padding: 15px 20px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.menu-items a:last-child {
    border-bottom: none;
}

.menu-items a:hover {
    background-color: rgba(0, 255, 204, 0.1);
    color: #00ffcc;
    padding-left: 25px; /* Sağa kayma efekti */
}

/* =========================================
   3. HERO BÖLÜMÜ (GRADIENT KUTU)
   ========================================= */
/* Hem Ana Sayfa hem Programlar sayfasındaki başlık kutusu */
.hero {
    margin-top: 2rem;
    margin-bottom: 3rem;
    padding: 3rem 2rem;
    text-align: center;
    
    /* İŞTE O ESTETİK GRADIENT */
    background: linear-gradient(145deg, rgba(3, 53, 49, 0.8), rgba(5, 35, 25, 0.9));
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.hero h1 {
    font-size: 2rem;
    color: #00ffcc; /* Başlık Rengi */
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(0, 255, 204, 0.1);
}

.hero p {
    font-size: 1rem;
    color: #cbd5e0;
    max-width: 800px;
    margin: 0 auto;
}

.hero strong {
    color: #00ffcc;
}

/* Ana Sayfadaki Büyük Logo */
.nav-large-logo {
    width: 100%;
    max-width: 350px;
    height: auto;
    display: block;
    margin: 0 auto 1.5rem auto;
}

/* =========================================
   4. İNDİRME KARTLARI (GRID SİSTEMİ)
   ========================================= */
.download-grid {
    display: grid;
    /* Responsive Sihir: Sığdığı kadar yan yana koy, sığmazsa alta at */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding-bottom: 4rem;
}

/* Kartın Kendisi */
.dl-card {
    background-color: #033531; /* Menü ile uyumlu arka plan */
    border: 1px solid rgba(0, 255, 204, 0.2);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    flex-direction: column; /* İçindekileri alt alta diz */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dl-card:hover {
    transform: translateY(-5px); /* Yukarı kalkma */
    box-shadow: 0 10px 25px rgba(0, 255, 204, 0.15); /* Neon parlama */
    background-color: #04423d; /* Renk açılması */
}

/* Kart Üst Bilgi (Badge + Boyut) */
.dl-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

/* Kategori Etiketleri */
.badge {
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.driver { background: rgba(255, 165, 0, 0.2); color: orange; border: 1px solid rgba(255, 165, 0, 0.3); }
.lib    { background: rgba(0, 191, 255, 0.2); color: deepskyblue; border: 1px solid rgba(0, 191, 255, 0.3); }
.app    { background: rgba(0, 255, 204, 0.2); color: #00ffcc; border: 1px solid rgba(0, 255, 204, 0.3); }

.size {
    font-family: monospace;
    color: #a0aec0;
    font-size: 0.9rem;
}

/* Kart İçeriği */
.dl-card h3 {
    margin-bottom: 10px;
    color: white;
    font-size: 1.25rem;
}

.dl-card p {
    color: #cbd5e0; /* Hafif gri metin */
    font-size: 0.95rem;
    margin-bottom: 25px;
    flex-grow: 1; /* Butonu en alta itmek için alanı kapla */
}

/* İndirme Butonu */
.dl-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    background: transparent;
    border: 1px solid #00ffcc;
    color: #00ffcc !important; /* Mavi link sorununu kesin çözer */
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.dl-btn:hover {
    background-color: #00ffcc;
    color: #052319 !important; /* Yazıyı koyu yeşil yap */
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.4);
}

/* Pasif Buton (Yakında) */
.dl-btn.disabled {
    border-color: #4a5568;
    color: #4a5568 !important;
    pointer-events: none; /* Tıklamayı engelle */
}

.card-meta {
    margin-top: auto; /* Kart uzarsa bunu hep en alta (butona yakın) iter */
    margin-bottom: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* İnce bir ayırıcı çizgi */
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.meta-item {
    display: flex;
    justify-content: space-between; /* Yazıları iki uca yaslar */
    font-size: 0.85rem;
}

.meta-label {
    color: #a0aec0; /* Soluk gri başlık */
    font-weight: 500;
}

.meta-value {
    color: #00ffcc; /* Senin neon renginle değerler */
    font-weight: 600;
    text-align: right;
}

/* Kartın yapısını biraz esnetelim ki detaylar sığsın */
.dl-card {
    /* Mevcut kodunda min-height yoksa ekleyebilirsin, 
       böylece tüm kartlar eşit boyda görünür */
    min-height: 320px; 
}

/* =========================================
   5. RESPONSIVE (MOBİL AYARLAR)
   ========================================= */

/* Tablet ve Altı (768px) */
@media (max-width: 768px) {
    .navbar-container {
        padding: 1rem;
    }

    .hero {
        padding: 2rem 1.5rem;
        margin-top: 1rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .nav-title {
        font-size: 0.9rem;
    }

    .nav-large-logo {
        max-width: 200px; /* Mobilde logoyu küçült */
    }
}

/* Çok Küçük Ekranlar (400px altı) */
@media (max-width: 400px) {
    .nav-title {
        font-size: 0.8rem;
    }
    
    .nav-logo {
        width: 30px;
        height: 30px;
    }

    .menu-box {
        padding: 8px 12px;
        gap: 8px;
    }
}