/* =============================================
   MERSIN EDEBİYAT FESTİVALİ
   Konsept: Akışkan ve Dinamik
   Glassmorphism + Gradient Mesh + Animasyonlar
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* CSS Değişkenleri */
:root {
    --gold: #d4af37;
    --gold-light: #f0d060;
    --gold-dark: #a08820;
    --navy: #0b1325;
    --navy-mid: #12203d;
    --navy-light: #1e3060;
    --cream: #fdfbf5;
    --glass-bg: rgba(255, 255, 255, 0.07);
    --glass-border: rgba(212, 175, 55, 0.2);
    --glass-blur: blur(16px);
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;
    --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-glow: 0 0 30px rgba(212, 175, 55, 0.15);
}

/* RESET & BASE */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--navy);
    color: var(--cream);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ANİMASYONLU ARKA PLAN MESH */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(30, 48, 96, 0.6) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(11, 19, 37, 0.9) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: meshShift 15s ease-in-out infinite alternate;
}

@keyframes meshShift {
    0% {
        background:
            radial-gradient(ellipse at 20% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
            radial-gradient(ellipse at 80% 80%, rgba(30, 48, 96, 0.6) 0%, transparent 50%);
    }
    100% {
        background:
            radial-gradient(ellipse at 75% 25%, rgba(212, 175, 55, 0.10) 0%, transparent 50%),
            radial-gradient(ellipse at 25% 75%, rgba(30, 48, 96, 0.6) 0%, transparent 50%);
    }
}

/* TİPOGRAFİ */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.02em;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }

p {
    font-weight: 300;
    color: rgba(253, 251, 245, 0.85);
    font-size: 1.05rem;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--gold-light); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ===================== LOGO BANNER ===================== */
.logo-container {
    position: relative;
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
    line-height: 0; /* alt boşluğu sıfırla */
}

.logo-banner {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0;
}

/* ===================== HEADER & NAV ===================== */
header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(11, 19, 37, 0.75);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 5px 0;
    position: relative;
}

.main-nav {
    display: flex;
    list-style: none;
    gap: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.main-nav li a {
    display: block;
    color: rgba(253, 251, 245, 0.75);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 16px 18px;
    position: relative;
    transition: color var(--transition);
}

.main-nav li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transition: width var(--transition);
}

.main-nav li a:hover,
.main-nav li a.active {
    color: var(--gold);
}

.main-nav li a:hover::before,
.main-nav li a.active::before {
    width: 80%;
}

/* Hamburger Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: 1px solid var(--glass-border);
    color: var(--gold);
    font-size: 22px;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 6px;
    backdrop-filter: var(--glass-blur);
    transition: all var(--transition);
}
.mobile-menu-btn:hover {
    background: var(--glass-bg);
    border-color: var(--gold);
}

/* ===================== PAGE HEADER ===================== */
.page-header {
    text-align: center;
    padding: 50px 0 38px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.page-header h1 {
    color: var(--cream);
    font-style: italic;
    position: relative;
}

.page-header h1 span {
    color: var(--gold);
}

.page-header p {
    margin-top: 15px;
    font-size: 1.1rem;
    color: rgba(253, 251, 245, 0.6);
    font-style: italic;
    font-family: var(--font-heading);
}

/* Altın ayırıcı çizgi */
.gold-divider {
    display: block;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 20px auto;
}

/* ===================== İÇERİK ===================== */
.content-section {
    padding: 60px 0;
    position: relative;
    z-index: 1;
    min-height: 50vh;
}

/* Glassmorphism Card */
.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 36px;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow-glow), 0 8px 32px rgba(0, 0, 0, 0.3);
    margin-bottom: 28px;
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow), 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* BUTONLAR */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--navy);
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
    color: var(--navy);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--navy);
}

.btn-sm {
    padding: 7px 16px;
    font-size: 11px;
}

/* ===================== FADE-IN ANİMASYON ===================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================== FOOTER ===================== */
footer {
    position: relative;
    z-index: 1;
    background: rgba(5, 10, 22, 0.9);
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--gold);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-family: var(--font-body);
    font-weight: 500;
}

.footer-col p,
.footer-col li {
    color: rgba(253, 251, 245, 0.55);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.footer-col ul { list-style: none; }

.footer-col ul li a {
    color: rgba(253, 251, 245, 0.55);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-col ul li a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 13px;
    color: rgba(253, 251, 245, 0.35);
}

.footer-bottom a {
    color: rgba(253, 251, 245, 0.35);
    transition: color var(--transition);
}
.footer-bottom a:hover { color: var(--gold); }

/* ===================== RESPONSİVE ===================== */
@media (max-width: 900px) {
    .main-nav li a {
        padding: 14px 12px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-wrapper {
        justify-content: space-between;
        padding: 10px 0;
    }

    .main-nav {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 10px 0 20px;
        gap: 0;
        background: rgba(11, 19, 37, 0.95);
        border-top: 1px solid var(--glass-border);
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav li {
        width: 100%;
        text-align: center;
    }

    .main-nav li a {
        padding: 14px 20px;
        font-size: 13px;
    }

    .page-header {
        padding: 60px 0 40px;
    }

    .card {
        padding: 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .card { padding: 18px; border-radius: 12px; }
    .btn { padding: 10px 20px; }
}
