/* ==========================================================================
   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 (MODERN PRESTIGE) */
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', 'Poppins', sans-serif;
    color: var(--krem-ana);
    background-color: var(--zemin-koyu);
    /* Modern leather-inspired background using CSS only */
    background:
        /* Subtle noise-like grain via radial dots */
        radial-gradient(ellipse at 20% 50%, rgba(66, 18, 22, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(66, 18, 22, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(58, 14, 19, 0.15) 0%, transparent 50%),
        /* Deep base gradient */
        radial-gradient(circle at top, #3a0e13 0%, #1a0506 60%, #0d0203 100%);
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated leather texture overlay via pseudo-element */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.04;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(246, 240, 228, 0.03) 2px,
            rgba(246, 240, 228, 0.03) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(246, 240, 228, 0.02) 2px,
            rgba(246, 240, 228, 0.02) 4px
        );
    background-size: 4px 4px;
}

/* Ensure all direct children of body are above the pseudo-element */
body > * {
    position: relative;
    z-index: 1;
}

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

nav.nav-scrolled {
    background-color: #1B0607;
    position: fixed;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

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: var(--krem-ana);
    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: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    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);
    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;
}

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

.letters p {
    color: var(--krem-ana); 
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Letter sign-off and role styles (replaces inline styles) */
.letter-sign-off {
    text-align: right;
}

.letter-sign-off.letter-role {
    color: #C19A5B;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.letter-divider {
    border: none;
    border-top: 1px solid #C19A5B;
    border-radius: 25px;
    box-shadow: 0px 2px 5px rgba(1, 0, 0, 0.10);
    margin: 40px 0;
}

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

/* ALTINDAKİ VINTAGE ŞERİT */
.baslik::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    /* O cırt sarı yerine mat, eskitme altın tonuyla geçiş */
    background: linear-gradient(90deg, transparent, #C19A5B, transparent);
}
/* 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.15);
    background: transparent;
    margin-top: 50px;
}
.bottom-content {
    color: #9E7B3A; /* Mat ve koyu bronz/altın */
}

.bottom-content a {
    color: #9E7B3A; /* Link de aynı mat renkte */
    opacity: 0.7; /* 0.5 çok silik kalırdı, 0.7 ile karanlıkta tok duracak */
    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); /* Zemine gömen ağır gölge */
    transition: all 0.3s ease;
}

.bottom-content a:hover { 
    color: #C19A5B; /* Üstüne gelince mektuptaki asil altın rengine döner */
    opacity: 1; /* Tamamen belirginleşir */
    text-shadow: 0 0 8px rgba(193, 154, 91, 0.4); /* Etrafına hafif elit bir altın ışık saçar */
}


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