/* * ARDA & BILSU: ULTIMATE STYLE (ANIMATED EDITION) ✨
 * Özellikler: Glassmorphism, Scroll Snap, Canlı Gradientler, Sinematik Giriş
 */

/* 1. FONTLAR VE DEĞİŞKENLER */
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@800;900&family=Montserrat:wght@400;500;700;900&family=Playfair+Display:ital,wght@1,500&display=swap');

:root {
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-blur: blur(12px);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.2);
    --neon-glow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* 2. TEMEL RESET */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background: #000;
    color: #fff;
    overflow: hidden; /* Kaydırmayı container yönetecek */
}

/* 3. SİNEMATİK INTRO (GİRİŞ PERDESİ) */
#ab-intro-sequence {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #050505;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
}

#ab-intro-sequence.finished {
    transform: translateY(-100%);
}

.intro-text-wrapper {
    min-height: 80px; /* Zıplamayı önler */
    display: flex;
    align-items: center;
}

#intro-typewriter {
    font-family: 'Kanit', sans-serif;
    font-size: 2.5rem;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border-right: 3px solid #fff;
    padding-right: 5px;
    animation: blinkCursor 0.7s infinite;
}

#start-story-btn {
    margin-top: 40px;
    padding: 15px 50px;
    background: #fff;
    color: #000;
    font-family: 'Kanit', sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    animation: pulseBtn 2s infinite;
    transition: transform 0.3s;
}
#start-story-btn:hover { transform: scale(1.1); }

/* 4. SCROLL CONTAINER (HİKAYE AKIŞI) */
.ab-story-container {
    height: 100vh;
    width: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory; /* Sihirli kod */
    scroll-behavior: smooth;
    position: relative;
    z-index: 10;
}

/* 5. SAHNELER (SECTIONS) */
.ab-section {
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always; /* Her sahnede durmayı zorunlu kıl */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 20px;
    /* Hareketli Arka Plan Desteği */
    background-size: 200% 200%; 
    animation: gradientMove 15s ease infinite;
}

/* İçeriği Ortala ve Sınırla */
.section-content {
    width: 100%;
    max-width: 550px;
    text-align: center;
    z-index: 5;
    padding: 15px;
}

/* 6. DİNAMİK ARKA PLAN RENKLERİ (WRAPPED MODU) */
.bg-default { background: #111; }
.bg-neon-purple { background: linear-gradient(135deg, #240046, #7b2cbf, #e0aaff); }
.bg-neon-green  { background: linear-gradient(135deg, #001f0d, #006400, #38b000); }
.bg-deep-red    { background: linear-gradient(135deg, #370617, #9d0208, #dc2f02); }
.bg-sunset      { background: linear-gradient(135deg, #3f37c9, #f72585, #ffca3a); }
.bg-ocean       { background: linear-gradient(135deg, #03045e, #0077b6, #90e0ef); }

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 7. MODÜL TASARIMLARI */

/* HERO - Büyük Başlık */
.big-title {
    font-family: 'Kanit', sans-serif;
    font-size: 4rem;
    line-height: 0.9;
    text-transform: uppercase;
    margin-bottom: 40px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
    /* Gökkuşağı gibi hafif parlasın */
    background: linear-gradient(to bottom, #fff, #ddd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
@media(max-width: 600px) { .big-title { font-size: 3rem; } }

/* Sayaç Kutuları */
.ab-countdown {
    display: flex;
    justify-content: center;
    gap: 15px;
}
.timer-box {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    padding: 15px;
    border-radius: 12px;
    min-width: 70px;
    box-shadow: var(--shadow-soft);
}
.timer-box span { display: block; font-size: 1.8rem; font-weight: 800; line-height: 1; }
.timer-box small { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.8; }

/* POEM - Şiir Kartı */
.poem-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 25px;
    font-size: 1.4rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.poem-body {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 20px;
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    line-height: 1.6;
    font-style: italic;
    box-shadow: var(--shadow-soft);
    position: relative;
}
/* Tırnak işaretleri süsü */
.poem-body::before {
    content: "“";
    position: absolute; top: -20px; left: 20px;
    font-size: 80px; font-family: serif; color: rgba(255,255,255,0.2);
}

/* STATS - İstatistik */
.stats-wrapper { position: relative; }
.stats-number {
    font-family: 'Kanit', sans-serif;
    font-size: 7rem;
    line-height: 0.9;
    color: #fff;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.3));
    z-index: 2;
    position: relative;
}
.stats-label {
    font-size: 1.2rem;
    font-weight: 700;
    background: #fff;
    color: #000;
    padding: 5px 20px;
    border-radius: 5px;
    display: inline-block;
    transform: rotate(-3deg) translateY(-20px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    z-index: 3;
    position: relative;
}

/* GALLERY - Grid */
.section-header { font-size: 1.5rem; font-weight: 800; margin-bottom: 20px; text-transform: uppercase; }
.wrapped-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 15px;
    background: var(--glass-bg);
    border-radius: 20px;
    backdrop-filter: var(--glass-blur);
}
.w-gallery-item {
    border-radius: 10px;
    overflow: hidden;
    height: 140px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}
.w-gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.w-gallery-item:hover { transform: scale(1.05); z-index: 2; }

/* BOX STYLE (Game & Spotify) */
.box-style {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

/* 8. ANİMASYONLAR (SCROLL TRIGGER) */

/* Başlangıçta Görünmezler */
.fade-in-up, .pop-in { opacity: 0; }

/* Sahne Aktif Olduğunda Çalışır (JS .active-scene ekler) */
.active-scene .fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.active-scene .pop-in {
    animation: popIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; /* Bouncy Effect */
}

/* Gecikmeler */
.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.delay-3 { animation-delay: 0.9s; }

/* Keyframes */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes blinkCursor {
    0%, 100% { border-color: transparent; }
    50% { border-color: #fff; }
}

@keyframes pulseBtn {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* Süzülen Nesneler (Sürekli Animasyon) */
.stats-number { animation: float 6s ease-in-out infinite; }
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* 9. EKSTRALAR */
/* Müzik Butonu */
#music-toggle {
    position: fixed; top: 20px; right: 20px;
    width: 50px; height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    background: rgba(0,0,0,0.3);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 100;
    backdrop-filter: blur(5px);
    transition: 0.3s;
}
#music-toggle:hover { background: rgba(255,255,255,0.2); transform: scale(1.1); }

/* Canvas (Kar/Yıldız) */
#ab-effect-canvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1; /* Arka planın önünde, içeriğin arkasında */
}

/* Lightbox */
#ab-lightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 20000;
    display: none; justify-content: center; align-items: center;
    cursor: zoom-out;
}
#ab-lightbox img { max-width: 90%; max-height: 90%; border: 5px solid #fff; border-radius: 10px; box-shadow: 0 0 50px rgba(255,255,255,0.2); }
.close-btn { position: absolute; top: 30px; right: 30px; font-size: 40px; color: #fff; cursor: pointer; }