/* ==========================================================================
   ASLI'NIN PANELİ - GÜNCELLENMİŞ STİL DOSYASI (style.css)
   ========================================================================== */

/* DEĞİŞKENLER VE TASARIM SİSTEMİ */
:root {
    /* Arka plan: Tepede pembe/mor ışıma, aşağı doğru asil antrasit ve gece siyahı geçişi */
    --bg-gradient: radial-gradient(circle at top, #361740 0%, #181822 55%, #0a0a0f 100%);
    
    --accent-color: #ff4a83;
    --accent-hover: #ff759f;
    --accent-glow: rgba(255, 74, 131, 0.4);
    --accent-rgb: 255, 74, 131;
    
    --primary-color: #8c38c8;
    --primary-hover: #ab5ee3;
    --primary-glow: rgba(140, 56, 200, 0.3);
    
    /* Kartlar: Şık, yarı saydam antrasit (charcoal/slate) rengi */
    --card-bg: rgba(26, 26, 36, 0.65); 
    --card-border: rgba(255, 255, 255, 0.08);
    --card-border-hover: rgba(255, 74, 131, 0.3);
    --card-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.45);
    
    --text-main: #f5f0f8;
    --text-muted: #ad9bb8;
    
    /* Antrasit Yardımcı Renkleri */
    --anthracite-dark: #121218;
    --anthracite-light: #2c2c3a;
    
    --success-color: #00bfa5;
    --success-glow: rgba(0, 191, 165, 0.2);
    
    --font-main: 'Quicksand', sans-serif;
    --font-title: 'Fredoka', sans-serif;
    
    --transition-speed: 0.3s;
}

/* AÇIK RENK TEMASI (LIGHT MODE - Pastel Cotton Candy) */
[data-theme="light"] {
    --bg-gradient: linear-gradient(135deg, #fce4ec 0%, #f3e5f5 50%, #e8eaf6 100%);
    --accent-color: #d81b60;
    --accent-hover: #ec407a;
    --accent-glow: rgba(216, 27, 96, 0.25);
    --accent-rgb: 216, 27, 96;
    
    --primary-color: #7b1fa2;
    --primary-hover: #9c27b0;
    --primary-glow: rgba(123, 31, 162, 0.2);
    
    --card-bg: rgba(255, 255, 255, 0.8);
    --card-border: rgba(216, 27, 96, 0.12);
    --card-border-hover: rgba(216, 27, 96, 0.35);
    --card-shadow: 0 8px 32px 0 rgba(216, 27, 96, 0.08);
    
    --text-main: #3a2244;
    --text-muted: #7c6883;
    
    --anthracite-dark: #f5f5f7;
    --anthracite-light: #e1e1e6;
    
    --success-color: #1abc9c;
    --success-glow: rgba(26, 188, 156, 0.2);
}

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

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

/* Özel Kaydırma Çubuğu */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* ARKA PLAN NEON IŞIK KÜRELERİ (ORBS) */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
    transition: transform 5s ease, opacity var(--transition-speed) ease;
}
.orb-1 {
    width: 350px;
    height: 350px;
    background: var(--accent-color);
    top: -50px;
    left: 10%;
    animation: floatOrb1 25s infinite alternate ease-in-out;
}
.orb-2 {
    width: 450px;
    height: 450px;
    background: var(--primary-color);
    bottom: -100px;
    right: 5%;
    animation: floatOrb2 30s infinite alternate ease-in-out;
}
.orb-3 {
    width: 250px;
    height: 250px;
    background: #4a90e2;
    top: 40%;
    right: 25%;
    opacity: 0.12;
    animation: floatOrb3 20s infinite alternate ease-in-out;
}

@keyframes floatOrb1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 80px) scale(1.2); }
}
@keyframes floatOrb2 {
    0% { transform: translate(0, 0) scale(1.1); }
    100% { transform: translate(-80px, -120px) scale(0.9); }
}
@keyframes floatOrb3 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-50px, 50px); }
}

/* APP KONTEYNER */
.app-container {
    max-width: 960px; 
    margin: 0 auto;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    gap: 24px;
}

/* ÜST BAR */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    z-index: 10;
}

.love-emojis {
    font-size: 28px;
    letter-spacing: 4px;
    animation: heartBeat 2s infinite ease-in-out;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

/* ANA İÇERİK BÖLÜMÜ (Ekranın Dikey Ortalanması) */
.app-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1; /* Ekranın kalan yüksekliğini kaplar */
    width: 100%;
}

/* CAM KART (GLASS CARD) */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed) ease, border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    border-color: var(--card-border-hover);
    box-shadow: 0 12px 40px 0 rgba(var(--accent-rgb), 0.2);
}

/* AFİLLİ VE DEVASE DOĞUM GÜNÜ GERİ SAYIM KARTI (FULL WIDTH & BÜYÜTÜLDÜ) */
.countdown-card-large {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 40px; /* Büyütüldü */
    padding: 60px 40px; /* Büyütüldü */
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 45px rgba(var(--accent-rgb), 0.15);
    position: relative;
    overflow: hidden;
    text-align: center;
    border-color: rgba(var(--accent-rgb), 0.25);
    transition: all 0.4s ease;
    width: 100%;
    max-width: 800px; /* Büyütüldü */
}

.countdown-card-large:hover {
    border-color: rgba(var(--accent-rgb), 0.45);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7), 0 0 60px rgba(var(--accent-rgb), 0.25);
    transform: scale(1.01);
}

/* Sayacın arkasındaki hafif parlayan küre efekti */
.countdown-card-large::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    filter: blur(120px);
    opacity: 0.15;
    top: -50px;
    left: calc(50% - 150px);
    pointer-events: none;
}

.countdown-title-large {
    font-family: var(--font-title);
    font-size: 44px; /* Büyütüldü (44px) */
    font-weight: 700;
    margin-top: 14px;
    margin-bottom: 24px;
}

.gradient-text-pulse {
    background: linear-gradient(45deg, var(--accent-color), #c269ff, #ffd269, var(--accent-color));
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 8s infinite linear, textPulse 3s infinite alternate ease-in-out;
}

@keyframes gradientFlow {
    0% { background-position: 0% center; }
    100% { background-position: 300% center; }
}

@keyframes textPulse {
    0% { filter: drop-shadow(0 0 2px rgba(var(--accent-rgb), 0.1)); }
    100% { filter: drop-shadow(0 0 15px rgba(var(--accent-rgb), 0.5)); }
}

/* Büyük Sayaç Blok Yerleşimi */
.countdown-display-large {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 35px 0 45px 0;
    flex-wrap: wrap;
}

.time-block-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 140px; /* Büyütüldü */
}

/* Dairesel Cam Bloklar (Antrasit cam & Pembe sınır - Büyütüldü) */
.time-circle {
    width: 130px; /* Büyütüldü (130px) */
    height: 130px; /* Büyütüldü (130px) */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--anthracite-dark);
    border: 3px solid transparent;
    background-image: linear-gradient(var(--anthracite-dark), var(--anthracite-dark)), linear-gradient(135deg, var(--accent-color), var(--primary-color));
    background-origin: border-box;
    background-clip: content-box, border-box;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(var(--accent-rgb), 0.3);
    transition: all 0.3s ease;
}

[data-theme="light"] .time-circle {
    background-image: linear-gradient(var(--card-bg), var(--card-bg)), linear-gradient(135deg, var(--accent-color), var(--primary-color));
    box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.1);
}

.countdown-card-large:hover .time-circle {
    transform: scale(1.08);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.55), 0 0 35px rgba(var(--accent-rgb), 0.45);
}

.time-val-large {
    font-family: var(--font-title);
    font-size: 56px; /* Büyütüldü (56px) */
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 12px var(--accent-glow);
}

[data-theme="light"] .time-val-large {
    color: var(--accent-color);
}

.time-lbl-large {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    margin-top: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.time-divider-large {
    font-family: var(--font-title);
    font-size: 52px; /* Büyütüldü (52px) */
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 30px;
    animation: flashPulse 1s infinite alternate;
    text-shadow: 0 0 12px var(--accent-glow);
}

@keyframes flashPulse {
    0% { opacity: 0.25; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1.1); }
}

.countdown-actions-large {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* BUTON TASARIMLARI */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 14px;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-lg {
    padding: 18px 40px; /* Büyütüldü */
    font-size: 18px; /* Büyütüldü */
    border-radius: 20px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
    filter: brightness(1.1);
}

.btn-secondary {
    background: var(--anthracite-light);
    color: var(--text-main);
    border: 1px solid var(--card-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* ==========================================================================
   MODAL PENCERELER (SÜRPRİZLER)
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    width: 90%;
    max-width: 480px; /* Genişletildi */
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 40px 30px;
}

.modal-backdrop.open .modal-content {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close-btn:hover {
    color: var(--accent-color);
}

.modal-emoji {
    font-size: 48px;
    margin-bottom: 12px;
}

.smile-box {
    background: var(--anthracite-dark);
    border-radius: 16px;
    padding: 24px;
    margin: 20px 0;
    border: 1px solid rgba(255, 74, 131, 0.15);
}

[data-theme="light"] .smile-box {
    background: rgba(255, 255, 255, 0.9);
}

#smile-quote {
    font-size: 18px; /* Büyütüldü */
    font-style: italic;
    font-weight: 600;
    line-height: 1.6;
    color: #fff;
}

[data-theme="light"] #smile-quote {
    color: var(--text-main);
}

.surprise-box {
    border-radius: 16px;
    padding: 24px;
    margin: 20px 0;
    border: 2px dashed rgba(255, 74, 131, 0.35);
    background: var(--anthracite-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: all 0.5s ease;
}

.surprise-box.unlocked {
    border-style: solid;
    border-color: var(--success-color);
    background: rgba(0, 191, 165, 0.05);
    animation: boxOpen 0.5s ease forwards;
}

@keyframes boxOpen {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.lock-icon {
    font-size: 42px;
    animation: lockShake 1.5s infinite alternate ease-in-out;
}

.surprise-box.unlocked .lock-icon {
    animation: none;
    font-size: 48px;
}

@keyframes lockShake {
    0%, 100% { transform: rotate(0); }
    80%, 90% { transform: rotate(-5deg); }
    85%, 95% { transform: rotate(5deg); }
}

#surprise-status-text {
    font-size: 15px;
    line-height: 1.6;
}

.birthday-timer-mini {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 700;
}

/* FOOTER */
.app-footer {
    text-align: center;
    padding: 24px 0 12px 0;
    border-top: 1px solid var(--card-border);
    margin-top: auto;
    width: 100%;
}

.app-footer p {
    font-size: 12px;
    color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE UYUMLULUK (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 768px) {
    .app-container {
        gap: 16px;
    }
    
    .countdown-card-large {
        padding: 40px 20px;
        border-radius: 30px;
    }
    
    .countdown-title-large {
        font-size: 28px;
    }
    
    .countdown-display-large {
        gap: 12px;
        margin-bottom: 30px;
    }
    
    .time-block-large {
        width: 90px;
    }
    
    .time-circle {
        width: 85px;
        height: 85px;
        border-width: 2px;
    }
    
    .time-val-large {
        font-size: 32px;
    }
    
    .time-lbl-large {
        font-size: 12px;
        letter-spacing: 0.5px;
        margin-top: 8px;
    }
    
    .time-divider-large {
        font-size: 32px;
        margin-bottom: 24px;
    }
    
    .countdown-actions-large {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-lg {
        padding: 14px 28px;
        font-size: 16px;
        width: 100%;
    }
}
