:root {
    --rose: #e8b4bc;
    --blush: #f5d5d0;
    --cream: #fdf4ef;
    --gold: #c9a96e;
    --gold-bright: #e8c988;
    --deep: #4a2c3a;
    --ink: #2d1b25;
    --glass: rgba(255, 255, 255, 0.14);
    --glass-border: rgba(255, 255, 255, 0.35);
}

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

html, body {
    min-height: 100vh;
    font-family: 'Cormorant Garamond', serif;
    color: var(--ink);
    overflow-x: hidden;
    background: #1a0f14;
}

body {
    position: relative;
    padding: 4rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.bg-gradient {
    position: fixed;
    inset: -20%;
    z-index: -2;
    background:
        radial-gradient(circle at 20% 15%, rgba(232, 180, 188, 0.7), transparent 50%),
        radial-gradient(circle at 80% 85%, rgba(201, 169, 110, 0.55), transparent 55%),
        radial-gradient(circle at 50% 50%, rgba(245, 213, 208, 0.6), transparent 70%),
        linear-gradient(135deg, #3b1f2d 0%, #6b3d4a 45%, #2a1620 100%);
    background-size: 200% 200%;
    animation: drift 22s ease-in-out infinite alternate;
    filter: blur(2px);
}

@keyframes drift {
    0%   { background-position: 0% 0%, 100% 100%, 50% 50%, 0% 0%; }
    100% { background-position: 100% 50%, 0% 30%, 60% 40%, 100% 100%; }
}

.particles {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    color: var(--gold-bright);
    opacity: 0;
    animation: floatUp linear infinite;
    filter: drop-shadow(0 0 6px rgba(232, 201, 136, 0.6));
    user-select: none;
}

@keyframes floatUp {
    0%   { transform: translateY(110vh) rotate(0deg) scale(0.6); opacity: 0; }
    10%  { opacity: 0.9; }
    90%  { opacity: 0.8; }
    100% { transform: translateY(-15vh) rotate(360deg) scale(1.1); opacity: 0; }
}

.stage {
    position: relative;
    max-width: 980px;
    width: 100%;
    text-align: center;
    padding: 3.5rem 2.5rem;
    border-radius: 28px;
    background: rgba(253, 244, 239, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: rise 1.4s cubic-bezier(.2,.8,.2,1) both;
}

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

.intro { margin-bottom: 3rem; }

.eyebrow {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-bright);
    opacity: 0.85;
    margin-bottom: 1.5rem;
}

.couple {
    font-family: 'Great Vibes', cursive;
    font-weight: 400;
    font-size: clamp(2rem, 5.5vw, 4rem);
    line-height: 1.4;
    padding: 0.25em 0 0.1em;
    color: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.5rem, 1.5vw, 1rem);
    flex-wrap: nowrap;
    white-space: nowrap;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, #fff 0%, var(--gold-bright) 50%, var(--rose) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 18px rgba(232, 201, 136, 0.35));
    animation: shimmer 5s ease-in-out infinite;
    background-size: 200% auto;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

.couple .amp {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 0.55em;
    transform: translateY(-0.1em);
    opacity: 0.9;
}

.tagline {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(1.05rem, 2vw, 1.4rem);
    color: var(--cream);
    opacity: 0.82;
    letter-spacing: 0.02em;
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(0.75rem, 2vw, 1.5rem);
    margin: 2.5rem auto;
    max-width: 820px;
}

.card {
    position: relative;
    padding: clamp(1.25rem, 3vw, 2rem) 0.75rem;
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.25) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.9s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.card:hover::before { transform: translateX(100%); }

.card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, var(--gold-bright), transparent 40%, transparent 60%, var(--rose));
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    opacity: 0.7;
}

.value {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    line-height: 1;
    color: var(--cream);
    text-shadow: 0 2px 20px rgba(232, 201, 136, 0.35);
    font-variant-numeric: tabular-nums;
    transition: transform 0.25s ease;
}

.value.tick { animation: pulse 0.5s ease; }

@keyframes pulse {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.12); color: var(--gold-bright); }
    100% { transform: scale(1); }
}

.label {
    margin-top: 0.5rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(0.85rem, 1.5vw, 1.05rem);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold-bright);
    opacity: 0.85;
}

.meta {
    margin-top: 2.5rem;
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--gold-bright);
}

.divider::before,
.divider::after {
    content: "";
    flex: 0 1 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
}

.heart {
    font-size: 1.25rem;
    color: var(--rose);
    filter: drop-shadow(0 0 8px rgba(232, 180, 188, 0.8));
    animation: heartbeat 1.6s ease-in-out infinite;
    display: inline-block;
}

@keyframes heartbeat {
    0%, 50%, 100% { transform: scale(1); }
    20%, 70%      { transform: scale(1.2); }
}

.date {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    color: var(--cream);
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}

.save-the-date {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    color: var(--gold-bright);
    letter-spacing: 0.04em;
}

/* Şifre ekranı */
.lock {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
    z-index: 10;
    animation: rise 1.2s cubic-bezier(.2,.8,.2,1) both;
}

.lock.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.lock-card {
    max-width: 440px;
    width: 100%;
    padding: 3rem 2.5rem;
    text-align: center;
    border-radius: 24px;
    background: rgba(253, 244, 239, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.lock-eyebrow {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 0.95rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-bright);
    opacity: 0.9;
    margin-bottom: 1rem;
}

.lock-title {
    font-family: 'Great Vibes', cursive;
    font-weight: 400;
    font-size: clamp(2.25rem, 7vw, 3.5rem);
    line-height: 1.4;
    padding: 0.15em 0;
    background: linear-gradient(135deg, #fff 0%, var(--gold-bright) 50%, var(--rose) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 18px rgba(232, 201, 136, 0.35));
    animation: shimmer 5s ease-in-out infinite;
    margin-bottom: 1.75rem;
}

.lock-hint {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    color: var(--cream);
    opacity: 0.85;
    margin-bottom: 1.5rem;
}

.lock-form {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
}

.lock-input {
    flex: 1 1 200px;
    min-width: 0;
    padding: 0.85rem 1.1rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    text-align: center;
    color: var(--cream);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.lock-input::placeholder { color: rgba(253, 244, 239, 0.45); }

.lock-input:focus {
    border-color: var(--gold-bright);
    box-shadow: 0 0 0 4px rgba(232, 201, 136, 0.18);
}

.lock-btn {
    padding: 0.85rem 1.75rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.05rem;
    letter-spacing: 0.1em;
    color: var(--ink);
    background: linear-gradient(135deg, var(--gold-bright), var(--rose));
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lock-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(232, 201, 136, 0.35);
}

.lock-btn:active { transform: translateY(0); }

.lock-error {
    margin-top: 1rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 0.95rem;
    color: var(--rose);
    letter-spacing: 0.05em;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25%      { transform: translateX(-6px); }
    75%      { transform: translateX(6px); }
}

/* Kutlama modu: geri sayım ve giriş gizlenir, kutlama kahraman olur */
.stage.celebrating .intro,
.stage.celebrating .countdown,
.stage.celebrating .meta {
    display: none;
}

.stage.celebrating {
    padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3rem);
}

.celebration {
    text-align: center;
    animation: rise 1.2s cubic-bezier(.2,.8,.2,1) both;
}

.today-eyebrow {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(0.95rem, 1.6vw, 1.2rem);
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold-bright);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeIn 1.2s ease 0.2s forwards;
}

.ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--gold-bright);
    margin-bottom: 1.75rem;
    opacity: 0;
    animation: fadeIn 1.2s ease 0.5s forwards;
}

.ornament .line {
    flex: 0 1 140px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
}

.ornament svg {
    filter: drop-shadow(0 0 10px rgba(232, 201, 136, 0.5));
    animation: gentleSpin 14s linear infinite;
}

@keyframes gentleSpin {
    0%   { transform: rotate(-3deg); }
    50%  { transform: rotate(3deg); }
    100% { transform: rotate(-3deg); }
}

.celebration-title {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(4rem, 14vw, 9rem);
    line-height: 1.2;
    padding: 0.1em 0;
    background: linear-gradient(135deg, #fff 0%, var(--gold-bright) 45%, var(--rose) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 6px 28px rgba(232, 201, 136, 0.55));
    animation: shimmer 5s ease-in-out infinite, fadeIn 1.4s ease 0.7s both;
    margin-bottom: 0.5rem;
}

.celebration-message {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(1.1rem, 2.2vw, 1.55rem);
    line-height: 1.6;
    color: var(--cream);
    opacity: 0;
    animation: fadeIn 1.2s ease 1s forwards;
    margin-bottom: 2.5rem;
}

.celebration-date {
    display: inline-flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 2rem;
    border-radius: 18px;
    border: 1px solid rgba(232, 201, 136, 0.5);
    background: linear-gradient(135deg, rgba(232, 201, 136, 0.12), rgba(232, 180, 188, 0.12));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    margin-bottom: 1.75rem;
    opacity: 0;
    animation: fadeIn 1.2s ease 1.3s forwards;
}

.celebration-date .day {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: clamp(3rem, 7vw, 4.5rem);
    line-height: 1;
    color: var(--cream);
    text-shadow: 0 2px 20px rgba(232, 201, 136, 0.35);
}

.celebration-date .month-year {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    border-left: 1px solid rgba(232, 201, 136, 0.4);
    padding-left: 1.25rem;
}

.celebration-date .month {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--gold-bright);
    letter-spacing: 0.05em;
}

.celebration-date .year {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.3rem, 2.4vw, 1.7rem);
    letter-spacing: 0.3em;
    color: var(--cream);
    margin-top: 0.15rem;
}

.celebration-signature {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.4;
    padding: 0.1em 0;
    color: var(--gold-bright);
    opacity: 0;
    animation: fadeIn 1.2s ease 1.6s forwards;
}

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

@media (max-width: 560px) {
    body { padding: 2rem 1rem; }
    .stage { padding: 2.5rem 1.25rem; border-radius: 22px; }
    .countdown { grid-template-columns: repeat(2, 1fr); }
    .divider::before, .divider::after { flex-basis: 60px; }
    .ornament .line { flex-basis: 60px; }
    .celebration-date { padding: 1rem 1.25rem; gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
