/* ============================
   GENEL AYARLAR & RESET
   ============================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --pink-light: #ffe4ec;
    --pink-soft: #ffb6c1;
    --pink-main: #ff7eb3;
    --pink-deep: #ff4081;
    --red-soft: #e84393;
    --white: #fff;
    --text-dark: #4a2040;
    --text-medium: #6b3a5d;
    --text-light: #8e5577;
    --card-bg: rgba(255, 255, 255, 0.85);
    --shadow-soft: 0 8px 32px rgba(255, 105, 135, 0.2);
    --shadow-medium: 0 12px 40px rgba(255, 105, 135, 0.3);
    --font-fancy: 'Dancing Script', cursive;
    --font-body: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-tap-highlight-color: transparent;
}

.screen {
    min-height: 100vh;
    position: relative;
}

/* ============================
   BÖLÜM 1: KİLİT EKRANI
   ============================ */
.lock-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 30%, #f48fb1 60%, #f06292 100%);
    overflow: hidden;
}

.lock-content {
    text-align: center;
    z-index: 10;
    padding: 2rem;
    max-width: 600px;
    animation: fadeInUp 1s ease-out;
}

.lock-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.lock-title {
    font-family: var(--font-fancy);
    font-size: clamp(1.8rem, 5vw, 3rem);
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);
}

.lock-subtitle {
    font-size: clamp(0.95rem, 2.5vw, 1.15rem);
    color: var(--text-medium);
    font-weight: 300;
    margin-bottom: 2.5rem;
    font-style: italic;
}

/* Geri Sayım */
.countdown-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.countdown-item {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.2rem 1.5rem;
    min-width: 90px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: transform 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-4px);
}

.countdown-number {
    display: block;
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 700;
    color: var(--pink-deep);
    font-family: var(--font-body);
    line-height: 1;
}

.countdown-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.4rem;
    font-weight: 500;
}

.countdown-separator {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--pink-deep);
    animation: blink 1s step-end infinite;
    align-self: flex-start;
    margin-top: 1rem;
}

.lock-hint {
    font-size: 0.95rem;
    color: var(--text-light);
    font-style: italic;
    animation: fadeInUp 1.5s ease-out;
}

/* Arka plan süzülen kalpler */
.floating-hearts-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.float-heart {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.15;
    animation: floatUp 8s ease-in-out infinite;
    animation-delay: calc(var(--i) * 1.2s);
    left: calc(var(--i) * 12.5%);
    bottom: -50px;
}

/* ============================
   BÖLÜM 2: ANA İÇERİK
   ============================ */
.main-screen {
    background: linear-gradient(180deg, #fff5f8 0%, #ffe4ec 40%, #fce4ec 100%);
    padding: 2rem 1rem 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
}

/* Düşen kalpler */
.hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.falling-heart {
    position: absolute;
    top: -50px;
    animation: heartFall linear forwards;
    opacity: 0.6;
    pointer-events: none;
}

.content-wrapper {
    position: relative;
    z-index: 5;
    max-width: 650px;
    width: 100%;
    animation: fadeInUp 1s ease-out;
}

.romantic-header {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.heart-icon {
    font-size: 2rem;
    animation: pulse 1.5s ease-in-out infinite;
}

.main-title {
    font-family: var(--font-fancy);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    color: var(--pink-deep);
    text-shadow: 0 2px 15px rgba(255, 64, 129, 0.3);
}

/* Mektup kartı */
.letter-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(255, 182, 193, 0.4);
    margin-bottom: 3rem;
}

.letter-text {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1.2rem;
    font-weight: 300;
    text-align: center;
}

.letter-text:last-child {
    margin-bottom: 0;
}

.highlight-text {
    font-family: var(--font-fancy);
    font-size: clamp(1.3rem, 3.5vw, 1.8rem) !important;
    color: var(--pink-deep);
    font-weight: 700 !important;
    margin-top: 1.5rem;
}

/* Teklif bölümü */
.proposal-section {
    text-align: center;
}

.proposal-question {
    font-family: var(--font-fancy);
    font-size: clamp(1.8rem, 6vw, 3rem);
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(255, 105, 135, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

/* Butonlar */
.buttons-area {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    min-height: 120px;
}

.btn {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 600;
    padding: 1rem 3rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-yes {
    background: linear-gradient(135deg, var(--pink-main), var(--pink-deep));
    color: var(--white);
    box-shadow: 0 6px 25px rgba(255, 64, 129, 0.4);
    font-size: 1.4rem;
    padding: 1.2rem 3.5rem;
    animation: glowPulse 2s ease-in-out infinite;
}

.btn-yes:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 35px rgba(255, 64, 129, 0.6);
}

.btn-yes:active {
    transform: scale(0.97);
}

.btn-yes .btn-icon {
    margin-right: 0.3rem;
}

.btn-no {
    background: #e0e0e0;
    color: #888;
    font-size: 0.95rem;
    padding: 0.8rem 2rem;
    position: absolute;
    transition: none;
    user-select: none;
    touch-action: none;
}

.btn-no:hover {
    cursor: not-allowed;
}

/* ============================
   BÖLÜM 3: KUTLAMA EKRANI
   ============================ */
.celebration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fff0f5 0%, #ffe4ec 50%, #fce4ec 100%);
}

#confettiCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.celebration-content {
    text-align: center;
    z-index: 10;
    padding: 2rem;
    animation: celebrationBounce 0.8s ease-out;
}

.celebration-emoji {
    font-size: clamp(3rem, 10vw, 5rem);
    margin-bottom: 1rem;
    animation: bounce 1s ease-in-out infinite;
}

.celebration-title {
    font-family: var(--font-fancy);
    font-size: clamp(2.5rem, 10vw, 5rem);
    color: var(--pink-deep);
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(255, 64, 129, 0.3);
}

.celebration-text {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    color: var(--text-dark);
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.celebration-subtext {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.celebration-hearts {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 2rem;
}

.celebration-hearts span {
    animation: pulse 1.5s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * 0.2s);
}

.celebration-hearts span:nth-child(1) { --i: 0; }
.celebration-hearts span:nth-child(2) { --i: 1; }
.celebration-hearts span:nth-child(3) { --i: 2; }
.celebration-hearts span:nth-child(4) { --i: 3; }
.celebration-hearts span:nth-child(5) { --i: 4; }

/* ============================
   ANİMASYONLAR
   ============================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.15;
    }
    90% {
        opacity: 0.15;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg) scale(0.5);
        opacity: 0;
    }
}

@keyframes heartFall {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.7;
    }
    100% {
        transform: translateY(110vh) rotate(360deg) scale(0.3);
        opacity: 0;
    }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 6px 25px rgba(255, 64, 129, 0.4);
    }
    50% {
        box-shadow: 0 6px 40px rgba(255, 64, 129, 0.7), 0 0 60px rgba(255, 64, 129, 0.3);
    }
}

@keyframes celebrationBounce {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(50px);
    }
    50% {
        transform: scale(1.05) translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Kilit ekranı kapanış animasyonu */
.lock-screen.fade-out {
    animation: lockFadeOut 1.2s ease-in-out forwards;
}

@keyframes lockFadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.1);
        pointer-events: none;
    }
}

/* Ana içerik açılış animasyonu */
.main-screen.fade-in {
    animation: mainFadeIn 1s ease-out 0.3s both;
}

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

/* ============================
   MOBİL UYUMLULUK
   ============================ */
@media (max-width: 600px) {
    .countdown-wrapper {
        gap: 0.4rem;
    }

    .countdown-item {
        min-width: 70px;
        padding: 0.9rem 0.8rem;
        border-radius: 12px;
    }

    .countdown-separator {
        font-size: 1.8rem;
        margin-top: 0.7rem;
    }

    .letter-card {
        border-radius: 18px;
    }

    .btn-yes {
        padding: 1rem 2.5rem;
        font-size: 1.2rem;
    }

    .buttons-area {
        min-height: 150px;
        flex-direction: column;
    }

    .romantic-header {
        flex-wrap: wrap;
    }
}

@media (max-width: 380px) {
    .countdown-item {
        min-width: 60px;
        padding: 0.7rem 0.6rem;
    }

    .countdown-number {
        font-size: 1.6rem;
    }
}
