:root {
    --bg-light: #FDFBF7; /* Açık Krem / Fildişi */
    --bg-accent: #FDF1F4; /* Uçuk Pembe */
    --text-primary: #4A4036; /* Koyu kahverengi / Toprak tonu */
    --text-secondary: #8C7C6D; /* Yumuşak kahve */
    --rose-gold: #B76E79; /* Gül kurusu / Rose gold */
    --rose-gold-glow: rgba(183, 110, 121, 0.4);
    
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(183, 110, 121, 0.2);
    
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Lora', serif;
}

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

body {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-accent) 100%);
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Floral Arka Plan & Yapraklar */
#petals-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.petal {
    position: absolute;
    background-color: #F8D8E3;
    border-radius: 15px 0 15px 0;
    opacity: 0.7;
    box-shadow: 0 0 5px rgba(248, 216, 227, 0.5);
    animation: fall linear infinite, sway ease-in-out infinite alternate;
}

@keyframes fall {
    0% { top: -10%; }
    100% { top: 110%; }
}

@keyframes sway {
    0% { transform: translateX(0) rotate(0deg); }
    100% { transform: translateX(30px) rotate(45deg); }
}

.floral-corner {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    opacity: 0.5;
}

#floral-bg-left {
    top: -100px;
    left: -100px;
    background: radial-gradient(circle, #F8D8E3 0%, transparent 70%);
}

#floral-bg-right {
    bottom: -100px;
    right: -100px;
    background: radial-gradient(circle, #D8E3D8 0%, transparent 70%);
}

/* Ekran Yönetimi */
.screen {
    width: 100%;
    max-width: 650px;
    padding: 2rem;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 1;
    transform: translateY(0) scale(1);
    z-index: 10;
}

.screen.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(40px) scale(0.95);
    pointer-events: none;
}

.hidden {
    display: none !important;
}

/* Glassmorphism Panel (Aydınlık) */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px rgba(74, 64, 54, 0.05);
    position: relative;
    width: 100%;
}

.rose-gold-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(183, 110, 121, 0.1);
    border-radius: 24px;
    transform: translate(-50%, -50%) scale(1.05);
    pointer-events: none;
}

/* Tipografi & Staggered Fade */
.main-text {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    line-height: 2;
    font-weight: 400;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.fade-line {
    display: inline-block;
    opacity: 0;
    transform: translateY(15px);
    animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Zarif Buton */
.button-container {
    position: relative;
    z-index: 2;
}

.floral-btn {
    position: relative;
    background: transparent;
    border: 1px solid var(--rose-gold);
    color: var(--rose-gold);
    padding: 14px 40px;
    border-radius: 40px;
    font-size: 1.1rem;
    font-family: var(--font-serif);
    font-style: italic;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s ease;
    outline: none;
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--rose-gold);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 1;
}

.floral-btn:hover {
    color: white;
    box-shadow: 0 5px 15px var(--rose-gold-glow);
    transform: translateY(-2px);
}

.floral-btn:hover .btn-glow {
    opacity: 1;
}

/* Giriş Kutuları */
.sub-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin-bottom: 2rem;
    font-weight: 400;
    color: var(--rose-gold);
}

/* ─── Gün / Ay Select Dropdown ───────────────────────────────── */
.date-picker-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2.5rem;
}

.select-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.select-sep {
    font-size: 1.8rem;
    color: var(--text-secondary);
    font-family: var(--font-serif);
    opacity: 0.5;
}

.select-wrap {
    position: relative;
}

/* Ok ikonu */
.select-wrap::after {
    content: '▾';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--rose-gold);
    pointer-events: none;
    font-size: 0.9rem;
}

.date-select {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(183,110,121,0.35);
    color: var(--text-primary);
    font-size: 1.5rem;
    font-family: var(--font-serif);
    padding: 6px 32px 6px 8px;
    outline: none;
    cursor: pointer;
    transition: border-color 0.3s, color 0.3s;
    min-width: 90px;
    text-align: center;
}

.date-select:focus,
.date-select:hover {
    border-bottom-color: var(--rose-gold);
    color: var(--rose-gold);
}

.date-select option {
    color: var(--text-primary);
    background: #fdfbf7;
    font-size: 1rem;
}

.error-text {
    color: #D47A7A;
    margin-bottom: 2rem;
    font-style: italic;
    font-family: var(--font-serif);
}

.success-text {
    color: var(--rose-gold);
    font-family: var(--font-serif);
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Sıralı Oda (Hikaye) Tasarımı */
.story-panel {
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.story-panel.transitioning {
    opacity: 0;
    transform: scale(1.05); /* Kapıdan geçiyormuş gibi bir ileri kayma hissi */
}

.floral-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    color: var(--rose-gold);
    text-align: center;
}

.floral-body {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-primary);
    text-align: left; /* Okunabilirliği artırmak için metinleri sola veya ortaya alıyoruz */
    padding: 0 10px;
}

.floral-body strong {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.2rem;
    display: block;
    margin-bottom: 12px;
    color: var(--rose-gold);
}

.floral-body p {
    margin-bottom: 12px;
}

.floral-body ul {
    list-style-type: none;
    margin-bottom: 15px;
}

.floral-body li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.floral-body li::before {
    content: '✿';
    position: absolute;
    left: 0;
    color: var(--rose-gold);
    font-size: 0.9rem;
}

/* ─── Kapanış Sayacı ─────────────────────────────────────────── */
.closing-countdown-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0;
}

.closing-intro {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 0.5rem;
    text-align: center;
}

.closing-outro {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--rose-gold);
    font-style: italic;
    font-weight: 600;
    text-align: center;
    margin-top: 0.5rem;
    animation: fadeUp 1.2s cubic-bezier(0.16,1,0.3,1) both;
    animation-delay: 0.4s;
    opacity: 0;
}


.envelope-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1.8rem;
}

.envelope {
    position: relative;
    width: 110px;
    height: 75px;
    filter: drop-shadow(0 6px 18px rgba(183,110,121,0.25));
    transition: transform 0.4s ease;
}

.envelope:hover {
    transform: translateY(-4px) scale(1.04);
}

/* Zarf gövdesi */
.envelope-body {
    position: absolute;
    bottom: 0;
    width: 110px;
    height: 65px;
    background: linear-gradient(160deg, #fce8ed 0%, #fdf1f4 100%);
    border: 1px solid rgba(183,110,121,0.35);
    border-radius: 4px 4px 8px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Üçgen kapak */
.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-left: 55px solid transparent;
    border-right: 55px solid transparent;
    border-top: 42px solid rgba(183,110,121,0.25);
    z-index: 2;
    transform-origin: top center;
    transition: transform 0.6s cubic-bezier(0.34,1.56,0.64,1);
}

/* Açık zarf durumu */
.envelope.open .envelope-flap {
    transform: rotateX(180deg);
}

/* İçindeki mektup simgesi */
.envelope-letter {
    font-size: 1.8rem;
    opacity: 0.55;
    color: var(--rose-gold);
    transition: transform 0.5s ease 0.3s, opacity 0.5s ease 0.3s;
}

.envelope.open .envelope-letter {
    transform: translateY(-28px) scale(1.15);
    opacity: 1;
}

/* ─── Mektup satır süsü (oda geçişleri) ──────────────────────── */
.page-indicator {
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    opacity: 0.6;
}

.small-note {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
    margin-top: 20px;
    display: block;
}

/* ─── Muzik Butonu ───────────────────────────────────────────── */
#music-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--rose-gold);
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px var(--rose-gold-glow);
    cursor: pointer;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    outline: none;
    animation: pulse-ring 2.5s infinite;
}

#music-toggle:hover {
    transform: scale(1.12);
    background: var(--rose-gold);
}

#music-toggle.playing {
    background: var(--rose-gold);
    animation: none;
    box-shadow: 0 0 0 0 transparent;
}

@keyframes pulse-ring {
    0%   { box-shadow: 0 0 0 0 rgba(183,110,121,0.5); }
    70%  { box-shadow: 0 0 0 10px rgba(183,110,121,0); }
    100% { box-shadow: 0 0 0 0 rgba(183,110,121,0); }
}

/* ─── Sayaç (Countdown) ─────────────────────────────────────── */
.countdown-display {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.cd-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(183, 110, 121, 0.08);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 14px 18px;
    min-width: 68px;
}

.cd-num {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--rose-gold);
    line-height: 1;
}

.cd-label {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-top: 4px;
    font-family: var(--font-sans);
}

.cd-sep {
    font-size: 2rem;
    color: var(--rose-gold);
    opacity: 0.5;
    padding-bottom: 8px;
    font-family: var(--font-serif);
}

/* ─── Kilitli Fotoğraf Odası ────────────────────────────────── */
.locked-photo-room {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 1.5rem 0;
}

.lock-icon {
    font-size: 3.5rem;
    opacity: 0.6;
    animation: float-icon 3s ease-in-out infinite;
}

@keyframes float-icon {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

.lock-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--rose-gold);
    font-style: italic;
    font-weight: 600;
}

.lock-desc {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-secondary);
    text-align: center;
}

.lock-deco {
    font-size: 1.5rem;
    margin-top: 6px;
    opacity: 0.7;
    animation: float-icon 3s ease-in-out infinite 1.5s;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — Mobil / Tablet
═══════════════════════════════════════════════════════════════ */

/* Tablet ve altı */
@media (max-width: 650px) {
    .screen {
        padding: 1rem;
        align-items: flex-start;
        padding-top: 2rem;
        min-height: 100vh;
    }

    .glass-panel {
        padding: 2rem 1.4rem;
        border-radius: 18px;
    }

    /* Karşılama metni */
    .main-text {
        font-size: 1.2rem;
        line-height: 1.8;
        margin-bottom: 2rem;
    }

    /* Butonlar */
    .floral-btn {
        padding: 12px 28px;
        font-size: 1rem;
    }

    /* Zarf */
    .envelope-wrap {
        margin-bottom: 1.2rem;
    }
    .envelope {
        width: 85px;
        height: 58px;
    }
    .envelope-body {
        width: 85px;
        height: 50px;
    }
    .envelope-flap {
        border-left-width: 42px;
        border-right-width: 42px;
        border-top-width: 32px;
    }

    /* Şifre ekranı */
    .sub-title {
        font-size: 1.15rem;
        margin-bottom: 1.5rem;
    }

    .select-group {
        gap: 8px;
    }

    .date-select {
        font-size: 1.2rem;
        min-width: 75px;
        padding: 6px 26px 6px 6px;
    }

    /* Oda başlıkları */
    .floral-title {
        font-size: 1.4rem;
        margin-bottom: 1.2rem;
    }

    /* Oda içerikleri */
    .floral-body {
        font-size: 1rem;
        line-height: 1.7;
    }
    .floral-body strong {
        font-size: 1.05rem;
        margin-bottom: 10px;
    }

    /* Sayaç */
    .countdown-display {
        gap: 5px;
    }
    .cd-unit {
        padding: 10px 10px;
        min-width: 54px;
        border-radius: 10px;
    }
    .cd-num {
        font-size: 1.6rem;
    }
    .cd-label {
        font-size: 0.6rem;
    }
    .cd-sep {
        font-size: 1.4rem;
        padding-bottom: 6px;
    }

    /* Kapanış */
    .closing-outro {
        font-size: 1.2rem;
    }

    /* Müzik butonu */
    #music-toggle {
        bottom: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    /* Geçiş butonu */
    .button-container {
        margin-top: 1.5rem !important;
    }
}

/* Çok küçük ekranlar (iPhone SE vb.) */
@media (max-width: 380px) {
    .glass-panel {
        padding: 1.5rem 1rem;
    }

    .main-text {
        font-size: 1.05rem;
    }

    .cd-unit {
        min-width: 46px;
        padding: 8px 6px;
    }
    .cd-num {
        font-size: 1.35rem;
    }

    .date-select {
        font-size: 1rem;
        min-width: 65px;
    }
}

