/* ==========================================================================
   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) */
    
    /* --- AYARLAR --- */
    --nav-height: 70px;
    --container-max-width: 1400px;
    --radius-lg: 20px;
    --radius-md: 12px;
}

/* 2. GÖVDE & ARKA PLAN (AĞIR ABİ MODU) */
body {
    font-family: 'Inter', 'Poppins', sans-serif;
    color: var(--krem-ana);
    background-color: var(--zemin-koyu);
    /* Hafif dikey geçiş */
    background-image: linear-gradient(180deg, #2a0a0c 0%, #0f0203 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    /* Fix navbar floating issue - add padding for fixed navbar */
    padding-top: var(--nav-height);
}

/* Arka Plandaki Işıklandırma (Mesh Gradient) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 15% 15%, rgba(66, 18, 22, 0.5) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(246, 240, 228, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(100, 20, 25, 0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
    filter: blur(40px);
}

/* 3. NAVİGASYON (MENÜ) */
nav {
    /* Add semi-transparent background with backdrop blur for modern look */
    background: rgba(26, 5, 6, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* Add subtle border at bottom */
    border-bottom: 1px solid rgba(246, 240, 228, 0.1);
    height: var(--nav-height);
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
    /* Add shadow for depth */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

nav label.logo {
    color: var(--krem-ana);
    font-size: 28px;
    line-height: var(--nav-height);
    padding: 0 30px;
    font-weight: 700;
    letter-spacing: 2px;
}

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: rgba(246, 240, 228, 0.7);
    font-size: 14px;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: 0.3s;
    font-weight: 500;
}

nav a.active, nav a:hover {
    color: var(--zemin-koyu); /* Hover olunca yazı koyu */
    background: var(--krem-ana); /* Arka plan KREM oluyor */
    font-weight: 600;
}

/* Mobil Menü Butonu */
nav .checkbtn {
    font-size: 28px;
    color: var(--krem-ana);
    float: right;
    line-height: var(--nav-height);
   
    margin-right: 25px;
    cursor: pointer;
    display: none;
}
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(246, 240, 228, 0.1);
        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); }
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;
}

/* Mobile typography improvements */
@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;
    }
}

/* 5. CARDS - MODERN & SLEEK DESIGN */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 40px 30px;
    max-width: var(--container-max-width);
    margin: 0 auto;
    list-style: none;
}

.card {
    /* Modern glassmorphism effect with gradient border */
    position: relative;
    background: linear-gradient(145deg, rgba(66, 18, 22, 0.15) 0%, rgba(26, 5, 6, 0.25) 100%);
    /* Fallback for browsers without backdrop-filter support */
    background: linear-gradient(145deg, rgba(66, 18, 22, 0.35) 0%, rgba(26, 5, 6, 0.45) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                background 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Layered shadow for depth */
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(246, 240, 228, 0.1);
}

/* Gradient border effect using pseudo-element */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, 
        rgba(246, 240, 228, 0.4) 0%, 
        rgba(246, 240, 228, 0.1) 25%,
        rgba(66, 18, 22, 0.3) 50%,
        rgba(246, 240, 228, 0.15) 75%,
        rgba(246, 240, 228, 0.5) 100%);
    /* Modern approach with better browser support */
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.6;
    transition: opacity 0.4s ease;
}

.card:hover {
    transform: translateY(-12px) scale(1.02);
    background: linear-gradient(145deg, rgba(66, 18, 22, 0.25) 0%, rgba(26, 5, 6, 0.35) 100%);
    
    /* Enhanced glow effect on hover */
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.6),
        0 8px 16px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(246, 240, 228, 0.15),
        inset 0 1px 0 rgba(246, 240, 228, 0.2);
}

.card:hover::before {
    opacity: 1;
}

/* Card image container */
.card .container,
.card_image {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: rgba(0, 0, 0, 0.3);
}

.card img { 
    width: 100%; 
    height: 100%;
    object-fit: cover; 
    opacity: 0.85;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.9) contrast(1.1);
}

.card:hover img {
    opacity: 1;
    transform: scale(1.08);
    filter: brightness(1) contrast(1.15);
}

/* Gradient overlay on image */
.card .container::after,
.card_image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(26, 5, 6, 0.4) 60%,
        rgba(26, 5, 6, 0.8) 100%);
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.card:hover .container::after,
.card:hover .card_image::after {
    opacity: 0.7;
}

/* Card content area */
.card .details,
.card_content { 
    padding: 28px; 
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.card .details h3,
.card_title { 
    font-size: 1.4rem; 
    margin: 0 0 8px 0; 
    color: var(--krem-ana);
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: color 0.3s ease;
}

.card:hover .details h3,
.card:hover .card_title {
    color: #fff;
    text-shadow: 0 0 20px rgba(246, 240, 228, 0.5);
}

.card .details p,
.card_text {
    color: rgba(246, 240, 228, 0.85);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

/* Mobile responsiveness for cards */
@media (max-width: 768px) {
    .cards {
        grid-template-columns: 1fr;
        padding: 25px 15px;
        gap: 25px;
    }
    
    .card .details,
    .card_content {
        padding: 24px;
    }
    
    .card .container,
    .card_image {
        height: 200px;
    }
    
    .card .details h3,
    .card_title {
        font-size: 1.25rem;
    }
}

/* 6. BUTTONS - MODERN DESIGN */
.btn, .rounded-button, .card_btn, .custom-button {
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--krem-ana) 0%, #fff 100%);
    color: var(--bordo-ana);
    font-weight: 700;
    border: none;
    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(246, 240, 228, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Button shimmer effect */
.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.4), 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, #fff 0%, var(--krem-ana) 100%);
    box-shadow: 
        0 6px 25px rgba(246, 240, 228, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(246, 240, 228, 0.3);
    transform: translateY(-2px) scale(1.05);
}

.btn:active, .rounded-button:active, .card_btn:active, .custom-button:active {
    transform: translateY(0) scale(1.02);
    box-shadow: 
        0 2px 10px rgba(246, 240, 228, 0.3),
        0 1px 5px rgba(0, 0, 0, 0.2);
}

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

/* 7. MEKTUPLAR KISMI (EN BÜYÜK DEĞİŞİKLİK BURADA) */
/* Burayı koyu değil, KREM RENGİ KAĞIT gibi yapıyoruz */
.letters {
    margin: 50px auto;
    max-width: 1000px;
    padding: 50px;
    
    /* KAĞIT EFEKTİ */
    background: rgba(246, 240, 228, 0.95); /* Neredeyse opak krem */
    color: var(--bordo-ana); /* Yazılar koyu bordo (Okunaklı) */
    
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5); /* Derin gölge */
    position: relative;
    z-index: 1;
}

/* Mektup içindeki paragraflar koyu renk olsun */
.letters p {
    color: #421216; 
    font-weight: 500;
    margin-bottom: 1rem;
}

.baslik {
    text-align: center;
    font-size: 26px;
    margin-bottom: 30px;
    color: #421216; /* Başlık da koyu */
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid rgba(66, 18, 22, 0.1);
    padding-bottom: 15px;
}

/* Mobile improvements for letters section */
@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.1);
    background: #0f0203;
    margin-top: 50px;
}
.bottom-content a {
    color: var(--krem-ana);
    opacity: 0.5;
    font-size: 28px;
    font-family: "Libre Barcode 39 Text", system-ui;
    text-decoration: none;
    transition: 0.3s;
}
.bottom-content a:hover { opacity: 1; }