/* ===================== RESET & BASE ===================== */
:root {
    --primary: #ff2d6b;
    --card-gap: 80vh;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    /* Koyu derin kırmızı arka plan - Premium görünüm */
    background: linear-gradient(160deg, #2d0010 0%, #6b0025 40%, #2d0010 100%);
    min-height: 100vh;
    overflow-x: hidden;
    color: white;
}

/* ===================== ARKA PLAN ===================== */
.background-animation {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 200%;
    height: 200px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 320" xmlns="http://www.w3.org/2000/svg"><path fill="%23ff2d6b" fill-opacity="0.12" d="M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: 50% 100%;
    animation: waveAnim 15s linear infinite;
}
.wave1 { opacity: 0.8; }
.wave2 { opacity: 0.5; animation: waveAnim 20s linear infinite reverse; bottom: -30px; }
.wave3 { opacity: 0.3; animation: waveAnim 10s linear infinite; bottom: -10px; }

@keyframes waveAnim {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.floating-hearts { position: absolute; inset: 0; }
.heart {
    position: absolute;
    color: #ff2d6b;
    opacity: 0;
    animation: floatHeart linear forwards;
    filter: drop-shadow(0 0 6px rgba(255,45,107,0.5));
}

@keyframes floatHeart {
    0%   { transform: translateY(100vh) scale(0); opacity: 0; }
    10%  { opacity: 0.9; }
    90%  { opacity: 0.9; }
    100% { transform: translateY(-100px) scale(1.5); opacity: 0; }
}

/* ===================== GİRİŞ EKRANları ===================== */
.overlay-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #1a0008 0%, #6b0025 50%, #1a0008 100%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
.overlay-screen.active { opacity: 1; visibility: visible; }

.screen-card {
    text-align: center;
    padding: 50px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 500px;
    width: 90%;
}

.lock-icon { font-size: 4rem; animation: pulse 2s ease-in-out infinite; }
.heart-burst { font-size: 5rem; animation: heartBeat 1s ease-in-out infinite; }

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.screen-card h1 {
    color: white;
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    text-shadow: 0 0 30px rgba(255,45,107,0.8);
}
.screen-card .subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 1.15rem;
}

.input-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-top: 5px;
}
#password-input {
    padding: 14px 22px;
    font-size: 1.2rem;
    font-family: 'Poppins', sans-serif;
    border: 2px solid rgba(255,45,107,0.4);
    border-radius: 30px;
    outline: none;
    background: rgba(255,255,255,0.08);
    color: white;
    letter-spacing: 3px;
    width: 180px;
    backdrop-filter: blur(10px);
    transition: border-color 0.3s;
}
#password-input::placeholder { color: rgba(255,255,255,0.4); letter-spacing: 1px; }
#password-input:focus { border-color: rgba(255,45,107,0.9); background: rgba(255,255,255,0.12); }

.action-btn {
    padding: 14px 32px;
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    background: linear-gradient(135deg, #ff2d6b, #ff6b9e);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255,45,107,0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}
.action-btn:hover { transform: scale(1.05) translateY(-2px); box-shadow: 0 12px 30px rgba(255,45,107,0.6); }
.error-msg { color: rgba(255,180,180,0.9); font-size: 1rem; font-weight: 600; }

/* ===================== KART YIĞINI ===================== */
.container {
    position: relative;
    z-index: 10;
    max-width: 820px;
    margin: 0 auto;
    padding: 0 20px 50vh;
}

.card {
    position: sticky;
    min-height: 82vh;
    border-radius: 28px;
    padding: 50px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 18px;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 25px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.1);
    margin-bottom: var(--card-gap);
    transition: transform 0.1s linear, filter 0.1s linear;
    will-change: transform, filter;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Her kart biraz farklı ton - giderek koyulaşıyor */
.card-1 { background: rgba(255,45,107,0.15);  z-index: 11; top: 5vh; }
.card-2 { background: rgba(200,20,70,0.30);   z-index: 12; top: 7vh; }
.card-3 { background: rgba(160,10,50,0.45);   z-index: 13; top: 9vh; }
.card-4 { background: rgba(120,5,35,0.55);    z-index: 14; top: 11vh; }
.card-5 { background: rgba(90,0,25,0.65);     z-index: 15; top: 13vh; }
.card-6 { background: rgba(60,0,15,0.75);     z-index: 16; top: 15vh; }
.card-7 { background: rgba(40,0,10,0.82);     z-index: 17; top: 17vh; }
.card-8 { background: rgba(20,0,5,0.90);      z-index: 18; top: 19vh; margin-bottom: 0; }

/* ===================== TİPOGRAFİ ===================== */
h1 {
    font-family: 'Dancing Script', cursive;
    color: white;
    font-size: 4rem;
    text-shadow: 0 0 30px rgba(255,45,107,0.6), 0 2px 10px rgba(0,0,0,0.3);
    line-height: 1.2;
}
h2 {
    font-family: 'Dancing Script', cursive;
    color: white;
    font-size: 2.8rem;
    position: relative;
    display: inline-block;
    text-shadow: 0 0 20px rgba(255,45,107,0.5);
}
h2::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 20%;
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,45,107,0.8), transparent);
    border-radius: 3px;
}
p.subtitle { font-size: 1.2rem; color: rgba(255,255,255,0.75); letter-spacing: 0.3px; }
.tagline { font-size: 1.05rem; font-style: italic; color: rgba(255,255,255,0.5); }

/* Sparkles */
.sparkles {
    position: absolute;
    font-size: 2rem;
    opacity: 0.5;
    animation: sparkle 3s ease-in-out infinite;
}
.top-left  { top: 20px; left: 20px; }
.top-right { top: 20px; right: 20px; animation-delay: 1s; }
@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.4; }
    50%       { transform: scale(1.3) rotate(20deg); opacity: 0.9; }
}

/* ===================== SAYAÇ ===================== */
.counter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    width: 100%;
    max-width: 560px;
}
.time-box {
    background: rgba(255,45,107,0.15);
    border: 1px solid rgba(255,45,107,0.3);
    border-radius: 18px;
    padding: 18px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}
.time-box span {
    font-size: 2.8rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    text-shadow: 0 0 20px rgba(255,45,107,0.8);
}
.time-box label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-top: 6px;
    color: rgba(255,255,255,0.55);
}
.counter-note { font-style: italic; color: rgba(255,255,255,0.6); font-size: 1rem; }

/* ===================== MESAJ ===================== */
.message-content {
    background: rgba(255,45,107,0.1);
    border: 1px solid rgba(255,45,107,0.2);
    border-radius: 20px;
    padding: 32px 28px;
    max-width: 640px;
    text-align: left;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.message-content::before {
    content: '"';
    position: absolute;
    top: -12px;
    left: 16px;
    font-family: 'Dancing Script', cursive;
    font-size: 6rem;
    color: rgba(255,45,107,0.5);
    line-height: 1;
}
.msg-line {
    font-size: 1.2rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.9);
    opacity: 0;
    transform: translateY(12px);
    animation: msgFadeIn 0.8s ease forwards;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.msg-line.delay-1 { animation-delay: 0.7s; }
.msg-line.delay-2 { animation-delay: 1.5s; }
.msg-line.delay-3 { animation-delay: 2.3s; }
.msg-line.delay-4 { animation-delay: 3.1s; }
@keyframes msgFadeIn { to { opacity: 1; transform: translateY(0); } }

/* ===================== SEBEPLER ===================== */
.reason-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 500px;
}
.reason-item {
    background: rgba(255,45,107,0.12);
    border: 1px solid rgba(255,45,107,0.25);
    border-radius: 14px;
    padding: 14px 20px;
    font-size: 1.05rem;
    color: rgba(255,255,255,0.9);
    text-align: left;
    transition: transform 0.2s, background 0.2s;
}
.reason-item:hover { transform: translateX(8px); background: rgba(255,45,107,0.22); }

/* ===================== HARİTA ===================== */
.map-wrap {
    width: 100%;
    max-width: 650px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,45,107,0.3);
    margin-top: 5px;
}

.map-note {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: rgba(255,255,255,0.85);
    text-shadow: 0 0 15px rgba(255,45,107,0.5);
    margin-top: 10px;
}

/* ===================== BUKET (SVG) ===================== */
.bouquet-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 320px;
    margin: 5px auto;
}

.bouquet-svg {
    width: 100%;
    max-width: 280px;
    height: auto;
    animation: bouquetSway 5s ease-in-out infinite alternate;
    filter: drop-shadow(0 10px 30px rgba(255,45,107,0.3));
}

@keyframes bouquetSway {
    0%   { transform: rotate(-3deg) scale(1); }
    100% { transform: rotate(3deg) scale(1.04); }
}

.flower-note {
    font-family: 'Dancing Script', cursive;
    font-size: 2.6rem;
    color: white;
    text-shadow: 0 0 20px rgba(255,45,107,0.6);
    margin-top: 30px;
}

/* ===================== GALERİ ===================== */
.album-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    width: 100%;
    max-width: 500px;
}
.image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,45,107,0.2);
}
.gallery-img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform 0.5s ease;
}
.image-wrapper:hover .gallery-img { transform: scale(1.06); }
.img-overlay {
    position: absolute; inset: 0;
    background: rgba(255,45,107,0.2);
    display: flex; justify-content: center; align-items: center;
    font-size: 3rem; opacity: 0;
    transition: opacity 0.3s ease;
}
.image-wrapper:hover .img-overlay { opacity: 1; }

/* ===================== SON KART ===================== */
.final-heart {
    font-size: 5rem;
    animation: heartBeatFinal 1.2s ease-in-out infinite;
}
@keyframes heartBeatFinal {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 15px rgba(255,45,107,0.6)); }
    50%       { transform: scale(1.25); filter: drop-shadow(0 0 30px rgba(255,45,107,1)); }
}

/* ===================== MÜZİK ===================== */
.music-btn {
    background: rgba(255,45,107,0.25);
    color: white;
    border: 1px solid rgba(255,45,107,0.5);
    padding: 12px 28px;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.3s;
    margin-top: 10px;
}
.music-btn:hover { background: rgba(255,45,107,0.45); transform: translateY(-2px); }

/* ===================== SCROLL HINT ===================== */
.scroll-hint {
    position: absolute;
    bottom: 25px; left: 50%;
    transform: translateX(-50%);
    font-size: 0.88rem;
    color: rgba(255,255,255,0.45);
    animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* ===================== FADE IN ===================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(22px);
    animation: fadeInUp 0.8s forwards;
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.45s; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* ===================== ARKA PLAN ÇİÇEKLERİ ===================== */
.bg-flower { position: fixed; pointer-events: none; z-index: 1; transform: scale(0); animation: bgBloom 4s ease-out forwards; }
.bg-flower .petal {
    position: absolute;
    width: 16px; height: 40px;
    background: radial-gradient(circle at 50% 30%, rgba(255,100,140,0.7), rgba(255,45,107,0.5));
    border-radius: 50% 50% 10% 10%;
    transform-origin: bottom center;
    bottom: 50%; left: -4px;
}
.bg-flower .flower-center {
    position: absolute;
    width: 13px; height: 13px;
    background: #ffdb58;
    border-radius: 50%;
    top: -6px; left: -1px; z-index: 2;
}
@keyframes bgBloom {
    0%   { transform: scale(0) rotate(0deg); opacity: 0; }
    15%  { opacity: 0.8; }
    80%  { opacity: 0.8; transform: scale(1.3) rotate(50deg); }
    100% { transform: scale(1.4) rotate(80deg); opacity: 0; }
}

/* ===================== KONFETİ ===================== */
#confetti-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    border-radius: 28px;
}

.konfeti-btn {
    background: linear-gradient(135deg, #ff2d6b, #ffaa00);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255,45,107,0.5);
    transition: transform 0.2s, box-shadow 0.2s;
    animation: pulse 2s ease-in-out infinite;
    letter-spacing: 0.5px;
}
.konfeti-btn:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 15px 35px rgba(255,45,107,0.7);
}

/* ===================== RESPONSIVE — TABLET ===================== */
@media (max-width: 768px) {
    h1 { font-size: 3.2rem; }
    h2 { font-size: 2.4rem; }
    .card { padding: 40px 24px; min-height: 90vh; border-radius: 20px; }
    .card-1 { top: 3vh; } .card-2 { top: 4vh; } .card-3 { top: 5vh; }
    .card-4 { top: 6vh; } .card-5 { top: 7vh; } .card-6 { top: 8vh; } .card-7 { top: 9vh; }
    .counter-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 340px; }
    .time-box span { font-size: 2.2rem; }
    .bouquet-wrap { height: 250px; }
    .bouquet { width: 210px; height: 240px; }
}

/* ===================== RESPONSIVE — MOBİL ===================== */
@media (max-width: 480px) {
    :root { --card-gap: 60vh; }

    .screen-card { padding: 40px 20px; gap: 16px; }
    .screen-card h1 { font-size: 3rem; }
    .lock-icon { font-size: 3rem; }
    .heart-burst { font-size: 4rem; }

    .input-group { flex-direction: column; width: 100%; gap: 12px; }
    #password-input { width: 90%; max-width: 260px; font-size: 1.1rem; text-align: center; }
    .action-btn { width: 90%; max-width: 260px; padding: 14px 20px; font-size: 1rem; }

    .card { padding: 30px 18px; min-height: 92vh; border-radius: 18px; gap: 14px; }
    .card-1 { top: 2vh; } .card-2 { top: 3vh; } .card-3 { top: 4vh; }
    .card-4 { top: 5vh; } .card-5 { top: 6vh; } .card-6 { top: 7vh; } .card-7 { top: 8vh; }

    h1 { font-size: 2.6rem; line-height: 1.2; }
    h2 { font-size: 2rem; }
    p.subtitle { font-size: 1rem; }
    .tagline { font-size: 0.92rem; }

    .counter-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: 300px; }
    .time-box { padding: 14px 8px; border-radius: 14px; }
    .time-box span { font-size: 2rem; }
    .time-box label { font-size: 0.7rem; }

    .message-content { padding: 24px 18px; }
    .message-content::before { font-size: 4.5rem; }
    .msg-line { font-size: 1rem; line-height: 1.65; }

    .reason-list { gap: 10px; }
    .reason-item { padding: 12px 16px; font-size: 0.92rem; }

    .bouquet-wrap { height: 200px; }
    .bouquet { width: 170px; height: 195px; }
    .flower-note { font-size: 2rem; }

    .album-grid { gap: 10px; max-width: 340px; }
    .final-heart { font-size: 4rem; }
    .card-7 h1 { font-size: 2.8rem; }
    .scroll-hint { font-size: 0.8rem; bottom: 18px; }
    .container { padding: 0 12px 50vh; }
    .sparkles { display: none; }
}

/* ===================== ÇOK KÜÇÜK (iPhone SE) ===================== */
@media (max-width: 360px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .card { padding: 24px 14px; }
    .time-box span { font-size: 1.7rem; }
    .msg-line { font-size: 0.92rem; }
    .screen-card h1 { font-size: 2.5rem; }
    .bouquet-wrap { height: 160px; }
    .bouquet { width: 140px; height: 160px; }
}
