/* ==========================================================================
   MUNIKL - Global Styles (PRESTIGE EDITION: Dark Base + Cream Accents)
   ========================================================================== */

/* 1. SIFIRLAMA */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* --- RENKLER --- */
    --zemin-koyu: #1a0506;      /* Arka plan: Neredeyse Siyah Bordo */
    --bordo-ana: #421216;       /* Logo ve Vurgu Rengi */
    --krem-ana: #F6F0E4;        /* EN ÖNEMLİ RENK: Yazılar, Butonlar, Kartlar */
    --krem-golge: #dcd0bc;      /* Krem renginin koyusu (Hover için) */
    --altin-vurgu: #C19A5B;     /* YENİ: Altın sarısı vurgu rengimiz */
    
    /* --- AYARLAR --- */
    --nav-height: 70px;
    --container-max-width: 1400px;
    --radius-lg: 20px;
    --radius-md: 12px;
}

/* 2. GÖVDE & ARKA PLAN (AĞIR ABİ MODU) */
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', 'Poppins', sans-serif;
    color: var(--krem-ana);
    background-color: var(--zemin-koyu);
    /* Derin koyu bordo / siyah bordo kaplama */
    background: radial-gradient(circle at top, #3a0e13 0%, #1a0506 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 3. NAVİGASYON (MENÜ) */
nav {
    /* Transparent background on load */
    background-color: transparent !important;
    backdrop-filter: blur(1px);
   
    height: var(--nav-height);
    width: 100%;
    position: absolute !important;
    top: 0;
    left: 0;
    z-index: 9999;
    
    /* Smooth background color transition */
    transition: background-color 0.3s ease;
}

nav label.logo {
    color: var(--altin-vurgu);
    font-size: 28px;
    line-height: var(--nav-height);
    padding: 0 30px;
    font-weight: 800;
    letter-spacing: 2px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
}

nav ul { float: right; margin-right: 20px; }
nav ul li { display: inline-block; line-height: var(--nav-height); margin: 0 5px; }

nav ul li a {
    color: var(--krem-ana);
    font-size: 14px;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: 0.3s;
    font-weight: 500;
    border: 1px solid transparent;
}

nav a.active, nav a:hover {
    color: var(--krem-ana);
    background: rgba(193, 154, 91, 0.15);
    box-shadow: 0 0 15px rgba(193, 154, 91, 0.4);
    border: 1px solid var(--altin-vurgu);
    font-weight: 600;
}

/* Mobil Menü Butonu */
nav .checkbtn {
    font-size: 28px;
    color: var(--altin-vurgu);
    float: right;
    line-height: var(--nav-height);
    margin-right: 25px;
    cursor: pointer;
    display: none;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}
nav #check { display: none; }

@media (max-width: 992px) {
    nav .checkbtn { display: block; }
    nav label.logo { font-size: 24px; padding: 0 20px; }
    nav ul {
        background: rgba(26, 5, 6, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        top: var(--nav-height);
        width: 100%;
        height: 100vh;
        position: fixed;
        text-align: center;
        padding-top: 50px;
        border-right: 1px solid rgba(193, 154, 91, 0.2);
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    nav ul li { 
        display: block; 
        margin: 25px 0;
        animation: fadeInUp 0.5s ease forwards;
        opacity: 0;
    }
    nav ul li:nth-child(1) { animation-delay: 0.1s; }
    nav ul li:nth-child(2) { animation-delay: 0.2s; }
    nav ul li:nth-child(3) { animation-delay: 0.3s; }
    nav ul li:nth-child(4) { animation-delay: 0.4s; }
    nav #check:checked ~ ul { transform: translateX(0); }
    nav #check:checked ~ ul li { opacity: 1; }
}

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

/* 4. GENEL YAZILAR */
h1, h2, h3 {
    color: var(--krem-ana);
    font-family: 'Playfair Display', serif;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
}
h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin: 30px 0;
    text-align: center;
    font-weight: 700;
}
p { color: rgba(246, 240, 228, 0.85); line-height: 1.7; }
.main { max-width: var(--container-max-width); margin: 0 auto; padding: 20px; }

@media (max-width: 768px) {
    h1 { font-size: clamp(1.5rem, 4vw, 2rem); margin: 20px 0; padding: 0 15px; }
    p { font-size: 0.95rem; line-height: 1.6; }
    .main { padding: 15px; }
}

/* ==========================================================================
   5A. GENEL KARTLAR (APPLICATIONS VB. SAYFALAR İÇİN)
   ========================================================================== */
.cards {
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 30px;
    padding: 40px 20px;
    max-width: 1300px; 
    margin: 0 auto;
    list-style: none;
}

/* Applications sayfasındaki normal kart ayarları */
.card {
    flex: 1 1 300px; /* Esnek dağılım */
    max-width: 350px; 
    position: relative;
    background-color: var(--zemin-koyu); 
    border-radius: 12px; 
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
    border: 1px solid rgba(193, 154, 91, 0.15); /* Hafif genel çerçeve */
}

.card:hover {
    transform: translateY(-8px); 
    box-shadow: 0 15px 35px rgba(0,0,0,0.7), 0 0 25px rgba(193, 154, 91, 0.25);
    border-color: rgba(193, 154, 91, 0.5);
}

.card .container {
    position: relative;
    overflow: hidden;
    width: 100%;
    background: transparent;
}

/* Application resimleri hep aynı hizada kesilsin diye cover kullanıyoruz */
.card img { 
    width: 100%; 
    height: 220px; /* Uygulama resimleri için standart boy */
    display: block;
    object-fit: cover; 
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.6s ease;
    filter: brightness(0.85) contrast(1.1);
}

.card:hover img {
    filter: brightness(1.1) contrast(1.15);
    transform: scale(1.05); 
}

/* Resim üstü karartma efekti */
.card .container::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(26, 5, 6, 0.05) 60%, rgba(26, 5, 6, 0.3) 100%);
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.card:hover .container::after { opacity: 0.6; }

/* DİRİLEN YAZILAR VE BUTONLAR (Applications İçin) */
.card .details {
    padding: 25px 20px;
    display: flex !important; /* YAZILARI ZORLA GÖSTER */
    flex-direction: column;
    flex-grow: 1; /* Butonları en alta itsin diye */
    text-align: center;
}

.card .details h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--krem-ana);
}

.card .details a {
    margin-top: auto; /* Uygulama butonunu kartın hep en altına yapıştırır */
}

/* ==========================================================================
   5B. SADECE TAKIM SAYFASI İÇİN ÖZEL AYARLAR (4-4-2 SİSTEMİ)
   ========================================================================== */

/* Bu kalkan sayesinde Applications sayfası asla bozulmaz */
#team-section .card {
    flex: 0 0 calc(25% - 25px); /* KESİN 4'LÜ MATEMATİK SADECE TAKIMDA ÇALIŞIR */
    min-width: 250px; 
    max-width: 290px;
    border: 1px solid transparent; /* Takım sayfasında sabit çerçeveyi gizle */
}

#team-section .card:hover {
    transform: translateY(-10px); 
    border: 1px solid rgba(193, 154, 91, 0.8); /* Takıma özel altın yaldız efekti */
}

#team-section .card .container {
    aspect-ratio: 3 / 4; /* Takım posterleri için net dikey oran */
}

#team-section .card img {
    height: 100%; /* Resim kutuyu tam doldursun */
    object-fit: contain; /* Kesilme olmasın */
    border-radius: 12px; 
}

#team-section .card .details {
    display: none !important; /* TAKIMDAKİ İSİMLERİ BURADAN GİZLİYORUZ, BAŞKA YERİ ETKİLEMEZ */
}

/* Takım sayfası tablet/mobil duyarlılığı */
@media (max-width: 1024px) {
    #team-section .card { flex: 0 0 calc(33.333% - 20px); }
}

@media (max-width: 768px) {
    .cards { gap: 20px; padding: 20px 15px; }
    
    #team-section .card {
        flex: 0 0 calc(50% - 10px); /* Mobilde takım kesin 2'li */
        min-width: 140px; 
        max-width: none;
    }
}

/* ==========================================================================
   6. BUTTONS - VINTAGE GOLD DESIGN
   ========================================================================== */
.btn, .rounded-button, .card_btn, .custom-button {
    padding: 14px 32px;
    background: linear-gradient(135deg, #C19A5B 0%, #9E7B3A 100%);
    color: var(--zemin-koyu);
    font-weight: 800;
    border: 1px solid rgba(246, 240, 228, 0.1);
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(193, 154, 91, 0.3), 0 2px 8px rgba(0, 0, 0, 0.4);
}

.btn::before, .rounded-button::before, .card_btn::before, .custom-button::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before, .rounded-button:hover::before, .card_btn:hover::before, .custom-button:hover::before { left: 100%; }

.btn:hover, .rounded-button:hover, .card_btn:hover, .custom-button:hover {
    background: linear-gradient(135deg, #d4af37 0%, #C19A5B 100%);
    box-shadow: 0 6px 25px rgba(193, 154, 91, 0.5), 0 4px 12px rgba(0, 0, 0, 0.5), 0 0 30px rgba(193, 154, 91, 0.3);
    transform: translateY(-2px) scale(1.05);
    color: var(--zemin-koyu);
}

.btn:active, .rounded-button:active, .card_btn:active, .custom-button:active {
    transform: translateY(0) scale(1.02);
    box-shadow: 0 2px 10px rgba(193, 154, 91, 0.3), 0 1px 5px rgba(0, 0, 0, 0.4);
}

.card_btn, .custom-button { width: 100%; margin-top: 15px; }

/* 7. MEKTUPLAR KISMI */
.letters {
    margin: 50px auto;
    max-width: 1000px;
    padding: 50px;
    background: rgba(15, 3, 5, 0.4) ;
    backdrop-filter: blur(25px) !important; 
    -webkit-backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(246, 240, 228, 0.15) !important;
    color: var(--krem-ana) !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 1;
}

.letters p {
    color: rgba(246, 240, 228, 0.80) !important; 
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.baslik {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    color: #C19A5B !important; 
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.85) !important; 
    text-transform: uppercase;
    letter-spacing: 3px;
    padding-bottom: 15px;
    border-bottom: none;
    position: relative;
}

.baslik::after {
    content: "";
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 60%; height: 2px;
    background: linear-gradient(90deg, transparent, #C19A5B, transparent);
}

@media (max-width: 768px) {
    .letters { margin: 30px 15px; padding: 30px 20px; border-radius: var(--radius-md); }
    .baslik { font-size: 20px; letter-spacing: 1px; margin-bottom: 20px; }
    .letters p { font-size: 0.9rem; margin-bottom: 0.8rem; }
}

/* 8. FOOTER */
.wrapper { min-height: 10vh; }
.footer {
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(246, 240, 228, 0.15);
    background: transparent;
    margin-top: 50px;
}
.bottom-content { color: #9E7B3A; }

.bottom-content a {
    color: #9E7B3A; 
    opacity: 0.7; 
    font-size: 28px;
    font-family: "Libre Barcode 39 Text", system-ui;
    text-decoration: none;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8); 
    transition: all 0.3s ease;
}

.bottom-content a:hover { 
    color: #C19A5B; 
    opacity: 1; 
    text-shadow: 0 0 8px rgba(193, 154, 91, 0.4); 
}

.modal-text .rounded-button {
    margin-top: 20px;     
    margin-bottom: 30px;  
    flex-shrink: 0;       
    width: 100%;          
    box-sizing: border-box; 
}