/* --- MODERN RESET & VARIABLES (Yüksek Kontrast - Light Mode) --- */
:root {
    /* Zemin Rengi: Göz yormayan "Slate" grisi */
    --bg-color: #f8fafc; 
    
    /* Vurgu Rengi: Kırmızı */
    --accent-color: #EB4D4E; 
    --accent-glow: #ff9ea0; 
    
    /* Yazı Renkleri: SİYAH ve KOYU LACİVERT (Okunurluk için şart) */
    --text-primary: #0f172a; /* Simsiyah yerine çok koyu lacivert (Premium durur) */
    --text-secondary: #334155; /* Ara metinler koyu gri */
    
    /* Header ve Cam Efektleri */
    --glass-bg: rgba(255, 255, 255, 0.90); /* Daha opak, arkası daha az görünsün */
    --glass-border: rgba(15, 23, 42, 0.1); /* Çerçeveler belirginleşti */
    
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --- SMOOTH PAGE LOAD --- */
body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    /* Arka plan deseni çok silik olsun ki yazılar karışmasın */
    background-image: 
        radial-gradient(at 0% 0%, rgba(235, 77, 78, 0.03) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(15, 23, 42, 0.03) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    animation: pageLoad 0.8s ease-out;
}

@keyframes pageLoad {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- APP CONTAINER --- */
.app-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* --- HEADER (Animated Glassmorphism) --- */
.modern-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 22px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    
    /* Arka planı daha beyaz yapalım */
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px);
    
    /* Altına gölge ekleyelim ki sayfadan ayrılsın */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); 
    border-bottom: 1px solid rgba(0,0,0,0.05);

    /* Header scroll ile küçülme animasyonu */
    transition: padding 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
                box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
                background 0.4s ease;

    /* Giriş animasyonu */
    animation: headerSlideDown 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

/* Header üstüne premium gradient scroll progress bar */
.modern-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: var(--scroll-width, 0%);
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), #ff8a80, var(--accent-color));
    background-size: 200% auto;
    transition: width 0.1s ease-out;
}

.modern-header.scrolled {
    padding: 12px 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.98);
}

@keyframes headerSlideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* LOGO DÜZELTMESİ: Magic Touch */
.logo-image {
    height: 52px; /* Header ile orantılı olarak daha da büyütüldü */
    width: auto;
    object-fit: contain;
    /* Soft kırmızı/vurgu rengi gölgesi ile premium bir parlaklık */
    filter: drop-shadow(0 2px 10px rgba(235, 77, 78, 0.15));
    transition: var(--transition-bounce);
}

.logo-image:hover {
    transform: scale(1.06) rotate(-1deg);
    filter: drop-shadow(0 6px 15px rgba(235, 77, 78, 0.35));
}

.nav-container {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-primary); 
    text-decoration: none;
    font-weight: 700; 
    font-size: 1rem;
    transition: var(--transition-bounce);
    position: relative;
    padding: 10px 20px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-link:not(.btn-primary):hover {
    color: var(--accent-color);
    background: rgba(235, 77, 78, 0.05);
    transform: translateY(-2px);
}

/* Modern CTA (Call To Action) Butonu */
.nav-link.btn-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, #ff6b6b 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(235, 77, 78, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-link.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(235, 77, 78, 0.45);
    background: linear-gradient(135deg, #ff6b6b 0%, var(--accent-color) 100%);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */

/* Temel reveal state - başlangıçta gizli */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1),
                transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Soldan gelen reveal */
.reveal-left {
    opacity: 0;
    transform: translateX(-80px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1),
                transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

/* Sağdan gelen reveal */
.reveal-right {
    opacity: 0;
    transform: translateX(80px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1),
                transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Scale reveal */
.reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.7s cubic-bezier(0.25, 0.8, 0.25, 1),
                transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Staggered delay classes */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* --- INTRO IMAGE SECTIONS --- */
.intro-image-section {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0;
    margin-top: 0;
    position: relative;
}

.first-section {
    padding-top: 150px; 
    padding-bottom: 20px;
}

.image-container {
    width: 100%;
    height: 92vh; 
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* Resimlerin etrafına hafif gölge, beyaz zeminle karışmasın */
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.1));
}

.responsive-hero-image {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Paralaks benzeri hover efekti */
.image-container:hover .responsive-hero-image {
    transform: scale(1.02);
}

/* --- SECTION DIVIDER --- */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0.3;
    margin: 20px 0;
}

/* --- VIEWER SECTION --- */
.viewer-section {
    min-height: 100vh;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent; /* Zaten body rengi var */
    width: 100%; 
    position: relative;
}

.viewer-section.first-section {
    padding-top: 150px;
}

/* Gradient divider between sections */
.viewer-section + .viewer-section::before {
    content: '';
    display: block;
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    border-radius: 2px;
    margin: 0 auto 40px;
    opacity: 0.4;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    position: relative;
    text-align: center;
}

/* Animated underline for section title */
.section-title::after {
    content: '';
    display: block;
    width: 0;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
    margin: 10px auto 0;
    transition: width 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) 0.3s;
}

.section-title.active::after {
    width: 60px;
}

.viewer-controls {
    margin-top: 20px;
    text-align: center;
    z-index: 10;
}

.page-indicator {
    /* Göstergeyi daha belirgin yapalım */
    background: #ffffff;
    color: var(--text-primary);
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08); /* Hafif gölge */
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition-bounce);
}

.page-indicator:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.pdf-swiper {
    width: 100%;
    padding-bottom: 40px;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    height: auto;
}

canvas {
    border-radius: 8px; 
    /* PDF sayfaları beyaz olduğu için arkadan ayırmak adına güçlü gölge şart */
    box-shadow: 0 20px 50px rgba(0,0,0,0.15); 
    max-width: 100%;
    height: 85vh !important; 
    width: auto !important;  
    display: block;
    background: white; /* Canvas arkası beyaz olsun */
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
                box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* PDF sayfası hover efekti */
canvas:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 60px rgba(0,0,0,0.2);
}

/* Scrollbar - Artık koyu tema olmadığı için rengi değiştirelim */
.swiper-scrollbar {
    background: rgba(0, 0, 0, 0.05) !important;
    height: 6px !important;
    bottom: 5px !important;
    left: 10% !important;
    width: 80% !important;
    border-radius: 10px;
}

.swiper-scrollbar-drag {
    background: var(--accent-color) !important;
    border-radius: 10px;
    transition: transform 0.2s ease;
}

.swiper-scrollbar-drag:hover {
    transform: scaleY(1.5);
}

/* --- FOOTER --- */
.modern-footer {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff; /* Footer tam beyaz olsun */
    border-top: 1px solid rgba(0,0,0,0.05);
    position: relative;
}

/* Footer top gradient line */
.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    border-radius: 2px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-item {
    color: var(--text-secondary); /* Koyu gri */
    background: #f1f5f9; /* Açık gri zemin */
    font-size: 1.8rem;
    transition: var(--transition-bounce);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}

/* Ripple efekti */
.social-item::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 0;
}

.social-item:hover::before {
    transform: scale(1);
}

.social-item i {
    position: relative;
    z-index: 1;
    transition: var(--transition-fast);
}

.social-item:hover {
    color: #ffffff; 
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(235, 77, 78, 0.4);
}

.social-item:hover i {
    transform: scale(1.15);
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 500;
}

/* --- LOADING --- */
.loading-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 10;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0,0,0,0.1); /* Koyu görünmesi için */
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
}

span {
    color: var(--text-primary); /* Yükleniyor yazısı koyu olsun */
    font-weight: 600;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* --- SMOOTH SCROLL --- */
html {
    scroll-behavior: smooth;
    cursor: none; /* Varsayılan imleci gizle */
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
                height 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
                background 0.3s ease,
                opacity 0.3s ease;
}

.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(235, 77, 78, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
                height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
                border-color 0.4s ease,
                background 0.4s ease,
                opacity 0.3s ease;
}

/* Hover state - interactive elements */
.cursor-dot.hover {
    width: 0;
    height: 0;
    opacity: 0;
}

.cursor-ring.hover {
    width: 60px;
    height: 60px;
    border-color: rgba(235, 77, 78, 0.6);
    background: rgba(235, 77, 78, 0.08);
}

/* Click state */
.cursor-dot.click {
    width: 6px;
    height: 6px;
    background: #ffffff;
}

.cursor-ring.click {
    width: 30px;
    height: 30px;
    border-color: var(--accent-color);
    background: rgba(235, 77, 78, 0.15);
}

/* Tüm tıklanabilir elementlerde cursor:none */
a, button, .social-item, .nav-link, .page-indicator, .swiper-scrollbar-drag, canvas {
    cursor: none !important;
}

/* Cursor gizlendiğinde (sayfa dışı) */
.cursor-dot.hidden,
.cursor-ring.hidden {
    opacity: 0;
}

/* --- BÜLTEN KAPAKLARI (SIDE BY SIDE) --- */
.bulten-covers-section {
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    width: 100%;
}

.bulten-covers-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    width: 100%;
    max-width: 1200px;
    flex-wrap: wrap;
}

.bulten-cover-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition-bounce);
    width: 300px;
}

.bulten-cover-link:hover {
    transform: translateY(-10px);
}

.bulten-cover-img {
    width: 100%;
    height: 420px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.bulten-cover-link:hover .bulten-cover-img {
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transform: translateY(-4px);
}

.bulten-cover-title {
    margin-top: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    transition: color 0.3s ease;
    text-align: center;
}

.bulten-cover-link:hover .bulten-cover-title {
    color: var(--accent-color);
}

/* =========================================
   RESPONSIVE (MOBİL DÜZELTMELER - FİNAL V2)
   ========================================= */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        position: relative;
    }
    .app-container { overflow: hidden !important; }

    /* Header */
    .modern-header {
        padding: 15px 20px;
        justify-content: space-between;
        background: rgba(255, 255, 255, 0.98); /* Mobilde daha opak */
    }
    
    .modern-header.scrolled {
        padding: 10px 20px;
    }

    .logo-image { height: 40px; }
    .nav-container { gap: 10px; }
    .nav-link { font-size: 0.85rem; padding: 6px 12px; }

    /* Kapak Resimleri */
    .first-section {
        padding-top: 80px;
        padding-bottom: 10px;
    }
    .image-container { 
        height: auto !important;
        width: 100% !important;
        display: block;
        padding: 0 10px;
        filter: none; /* Mobilde gölge performans düşürebilir, kapattım */
    }
    .responsive-hero-image {
        width: 100% !important;
        height: auto !important;
        border-radius: 8px;
    }

    /* Mobilde hover efekti kapalı */
    .image-container:hover .responsive-hero-image {
        transform: none;
    }

    .bulten-covers-container {
        gap: 20px;
    }
    .bulten-cover-link {
        width: 100%;
        max-width: 320px;
    }
    .bulten-cover-img {
        height: auto;
    }

    #arka-kapak-section {
        margin-top: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 30px;
    }

    /* Reveal animasyonlarını mobilde biraz hafiflet */
    .reveal { transform: translateY(40px); }
    .reveal-left { transform: translateX(-40px); }
    .reveal-right { transform: translateX(40px); }

    /* PDF SLIDER */
    .viewer-section {
        padding: 40px 0 10px 0 !important;
        width: 100% !important;
        overflow: hidden !important;
    }
    .viewer-section.first-section {
        padding-top: 100px !important;
    }
    .pdf-swiper {
        width: 100% !important;
        padding-bottom: 30px !important;
        overflow: hidden !important;
    }
    .swiper-slide {
        width: 100% !important;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        box-sizing: border-box;
        padding: 0 10px !important;
    }
    canvas {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain;        
        box-shadow: 0 4px 10px rgba(0,0,0,0.15); /* Gölgeyi biraz kıstık */
    }
    /* Mobilde canvas hover kapalı */
    canvas:hover {
        transform: none;
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    }

    .modern-footer { padding: 40px 15px; }

    /* Mobilde custom cursor gizle, varsayılan cursor geri gelsin */
    html { cursor: auto !important; }
    a, button, .social-item, .nav-link, .page-indicator, .swiper-scrollbar-drag, canvas {
        cursor: auto !important;
    }
    .cursor-dot, .cursor-ring { display: none !important; }
}