/* ==========================================================================
   SISTER SUPPORT WEBSITE - STYLESHEET
   ========================================================================== */

:root {
    --bg-dark: #090716;
    --bg-gradient: radial-gradient(circle at 50% 30%, #1e1136 0%, #0a0718 70%, #05040b 100%);
    --card-bg: rgba(26, 16, 48, 0.85);
    --card-border: rgba(255, 209, 102, 0.25);
    
    --primary-rose: #ff4e79;
    --primary-purple: #9d4edd;
    --gold-accent: #ffd166;
    --baby-blue: #89cff0;
    --text-light: #f8f9fc;
    --text-muted: #c3b9d8;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Outfit', -apple-system, sans-serif;
    --font-handwriting: 'Dancing Script', 'Great Vibes', cursive;

    --radius-lg: 24px;
    --radius-md: 16px;
    --transition-smooth: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: var(--bg-dark);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-light);
    font-family: var(--font-body);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* CANVAS LAYER'LARI */
#bg-canvas, #confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
}
#bg-canvas { z-index: 1; }
#confetti-canvas { z-index: 99; }

#touch-hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 90;
}

.touch-heart {
    position: absolute;
    font-size: 1.5rem;
    color: var(--primary-rose);
    pointer-events: none;
    animation: floatUpTouchHeart 1.5s ease-out forwards;
}

@keyframes floatUpTouchHeart {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
    100% { transform: translate(-50%, -180px) scale(1.6); opacity: 0; }
}

/* CAM EFEKTİ VE METİNLER */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.gradient-text {
    color: #ff8fa3;
    background: linear-gradient(135deg, #ffffff 0%, #ff8fa3 50%, #ffd166 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-heading);
}

/* YUVARLAK MOBİL MÜZİK İKON BUTONU */
.audio-btn {
    position: fixed;
    top: env(safe-area-inset-top, 16px);
    right: 16px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    color: var(--text-light);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(22, 14, 42, 0.85);
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
    user-select: none;
}

.audio-btn:hover { background: rgba(255, 255, 255, 0.2); transform: scale(1.05); }
.audio-btn:active { transform: scale(0.95); }
.audio-icon { font-size: 1.25rem; line-height: 1; }

/* 1. GİRİŞ EKRANI */
#landing-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 50;
    padding: 20px;
    transition: opacity 0.8s ease, transform 0.8s ease, visibility 0.8s;
}

#landing-screen.screen-hidden {
    opacity: 0;
    transform: scale(0.95);
    visibility: hidden;
    pointer-events: none;
}

.landing-card {
    max-width: 480px;
    width: 100%;
    padding: 42px 28px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.sparkle-badge {
    background: rgba(255, 209, 102, 0.15);
    border: 1px solid rgba(255, 209, 102, 0.35);
    color: var(--gold-accent);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
}

.gift-box-icon {
    font-size: 4rem;
    margin: 4px 0;
    animation: pulseHeart 2s infinite ease-in-out;
}

#landing-heading {
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    font-weight: 700;
}

.landing-subtext {
    color: var(--text-muted);
    font-size: 1rem;
}

.btn-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 8px;
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary-rose) 0%, var(--primary-purple) 100%);
    color: #fff;
    border: none;
    padding: 16px 36px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 40px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(255, 78, 121, 0.5);
    transition: background 0.3s ease, box-shadow 0.3s ease, opacity 0.2s ease;
    min-height: 52px;
    user-select: none;
    outline: none;
}

.primary-btn:hover { box-shadow: 0 14px 30px rgba(255, 78, 121, 0.7); }
.primary-btn:active { opacity: 0.88; }

/* 2. ANA EKRAN */
#main-experience {
    position: relative;
    z-index: 10;
    max-width: 880px;
    margin: 0 auto;
    padding: 70px 16px 100px 16px;
    display: flex;
    flex-direction: column;
    gap: 50px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease 0.3s, transform 1s ease 0.3s;
}

#main-experience.screen-visible {
    opacity: 1;
    transform: translateY(0);
}

.main-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.subtitle-badge {
    color: var(--gold-accent);
    font-size: clamp(0.85rem, 3vw, 0.95rem);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.main-title {
    font-size: clamp(2.2rem, 7vw, 3.2rem);
    font-weight: 800;
}

.header-tagline {
    font-family: var(--font-handwriting);
    font-size: clamp(1.3rem, 4vw, 1.7rem);
    color: var(--gold-accent);
    margin-top: 4px;
}

/* UMUT FENERİ VE IŞIK SAHNESİ */
.lantern-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    width: 100%;
}

.lantern-container {
    position: relative;
    width: 160px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.lantern-glow-aura {
    position: absolute;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255, 209, 102, 0.35) 0%, rgba(255, 78, 121, 0.15) 50%, transparent 80%);
    border-radius: 50%;
    animation: lanternPulse 3s infinite ease-in-out;
}

.lantern {
    position: relative;
    width: 110px;
    height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.lantern-handle {
    width: 40px;
    height: 20px;
    border: 3px solid var(--gold-accent);
    border-bottom: none;
    border-radius: 20px 20px 0 0;
}

.lantern-top {
    width: 90px;
    height: 16px;
    background: linear-gradient(90deg, #d4af37 0%, #ffd166 50%, #b38728 100%);
    border-radius: 6px 6px 0 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.lantern-body {
    width: 80px;
    height: 100px;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 209, 102, 0.6);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 20px rgba(255, 209, 102, 0.4);
}

.lantern-flame {
    width: 26px;
    height: 40px;
    background: radial-gradient(ellipse at bottom, #ffffff 0%, #ffd166 40%, #ff4e79 80%, transparent 100%);
    border-radius: 50% 50% 35% 35%;
    filter: drop-shadow(0 0 15px #ffd166);
    animation: flameFlicker 1.2s infinite alternate ease-in-out;
}

.lantern-flame.active-glow {
    filter: drop-shadow(0 0 30px #ffd166);
    transform: scale(1.2);
}

.lantern-bottom {
    width: 100px;
    height: 16px;
    background: linear-gradient(90deg, #d4af37 0%, #ffd166 50%, #b38728 100%);
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

@keyframes lanternPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 1; }
}

.cake-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    text-align: center;
}

.glow-btn {
    background: linear-gradient(135deg, #ffd166 0%, #ff4e79 100%);
    color: #111;
    border: none;
    padding: 15px 32px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(255, 209, 102, 0.4);
    transition: background 0.3s ease, box-shadow 0.3s ease, opacity 0.2s ease;
    min-height: 50px;
    user-select: none;
    outline: none;
}

.glow-btn:hover { box-shadow: 0 12px 30px rgba(255, 209, 102, 0.6); }
.glow-btn:active { opacity: 0.88; }

.wish-status-wrapper {
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.wish-message {
    font-size: clamp(1rem, 3.5vw, 1.15rem);
    font-weight: 600;
    color: var(--gold-accent);
    text-align: center;
    animation: fadeIn 0.8s ease forwards;
}

.hidden { display: none !important; }

/* 3. 3D ZARF VE MEKTUP */
.letter-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 4.5vw, 1.9rem);
    color: var(--text-light);
    text-align: center;
}

.envelope-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    cursor: pointer;
}

.envelope {
    position: relative;
    width: 280px;
    height: 180px;
    background: #e63946;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(230, 57, 70, 0.4);
    transition: transform 0.4s ease;
}

.envelope-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-left: 140px solid transparent;
    border-right: 140px solid transparent;
    border-top: 100px solid #d62828;
    transform-origin: top;
    transition: transform 0.6s ease 0.2s;
    z-index: 5;
}

.envelope-front {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0;
    border-left: 140px solid #f1faee;
    border-right: 140px solid #f1faee;
    border-bottom: 100px solid #e63946;
    border-radius: 0 0 12px 12px;
    opacity: 0.95;
    z-index: 4;
}

.envelope-back {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #c1121f;
    border-radius: 12px;
}

.envelope-letter-preview {
    position: absolute;
    top: 15px;
    left: 20px;
    right: 20px;
    bottom: 15px;
    background: #fff;
    border-radius: 6px;
    padding: 12px;
    z-index: 2;
    transition: transform 0.8s ease 0.4s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.letter-preview-text {
    font-family: var(--font-handwriting);
    color: #d62828;
    font-size: 1.15rem;
    font-weight: 700;
}

.wax-seal-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 54px;
    height: 54px;
    background: radial-gradient(circle, #ffb703 0%, #fb8500 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.wax-seal-heart { font-size: 1.4rem; }

.envelope.open .envelope-top {
    transform: rotateX(180deg);
    z-index: 1;
}

.envelope.open .envelope-letter-preview {
    transform: translateY(-80px) scale(1.05);
}

.envelope.open .wax-seal-btn {
    opacity: 0;
    pointer-events: none;
}

.envelope-hint {
    color: var(--gold-accent);
    font-size: 0.95rem;
    font-weight: 500;
}

.letter-card {
    width: 100%;
    padding: clamp(28px, 6vw, 48px) clamp(20px, 5vw, 36px);
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 1px solid rgba(255, 209, 102, 0.35);
    background: rgba(22, 14, 42, 0.85);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.letter-card.hidden-card {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.letter-decor-top { text-align: center; font-size: 1.2rem; color: var(--gold-accent); }
.letter-title { font-family: var(--font-handwriting); font-size: clamp(2rem, 6vw, 2.6rem); color: var(--gold-accent); text-align: center; }
.letter-body { font-size: clamp(1rem, 3.5vw, 1.15rem); line-height: 1.85; color: #eee4ff; display: flex; flex-direction: column; gap: 16px; }
.letter-signature-area { margin-top: 10px; text-align: right; }
.handwritten-sig { font-family: var(--font-handwriting); font-size: clamp(1.8rem, 5vw, 2.4rem); color: var(--primary-rose); }

/* 4. KARDEŞLİK SÖZLERİ (GÜVENCE KARTLARI) */
.promises-section {
    width: 100%;
    text-align: center;
}

.promises-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.promise-card {
    background: rgba(22, 14, 42, 0.85);
    border: 1px solid rgba(255, 209, 102, 0.25);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
}

.promise-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-rose);
    box-shadow: 0 15px 35px rgba(255, 78, 121, 0.3);
}

.promise-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px rgba(255, 209, 102, 0.5));
}

.promise-card-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--gold-accent);
    font-weight: 700;
}

.promise-card-text {
    font-size: 0.95rem;
    color: #e2d9f3;
    line-height: 1.6;
}

/* 5. ALT BİLGİ */
.main-footer { text-align: center; padding-top: 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.love-symbol { font-size: 2rem; }
.signature-text { font-family: var(--font-handwriting); font-size: 1.6rem; color: var(--gold-accent); }

@keyframes flameFlicker {
    0% { transform: scale(1) rotate(-2deg); opacity: 0.95; }
    50% { transform: scale(1.1) rotate(2deg); opacity: 1; }
    100% { transform: scale(0.95) rotate(-1deg); opacity: 0.9; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    #main-experience { padding-top: 80px; }
    .audio-btn {
        top: calc(env(safe-area-inset-top, 12px) + 6px);
        right: 14px;
        width: 42px;
        height: 42px;
    }
    .glass-panel {
        background: rgba(20, 12, 38, 0.9);
        border: 1px solid rgba(255, 255, 255, 0.22);
    }
    .envelope { width: 250px; height: 160px; }
    .envelope-top { border-left-width: 125px; border-right-width: 125px; border-top-width: 90px; }
    .envelope-front { border-left-width: 125px; border-right-width: 125px; border-bottom-width: 90px; }
}
