/* ========== Reset & Base ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --red-dark: #8B0000;
    --red: #C41E3A;
    --red-light: #E8453C;
    --gold: #D4A017;
    --gold-light: #F0C75E;
    --gold-pale: #FFF8E7;
    --cream: #FFFDF5;
    --text: #2D1B0E;
    --text-light: #5C3D2E;
    --white: #FFFFFF;
    --card-bg: rgba(255, 255, 255, 0.95);
    --shadow: 0 8px 32px rgba(196, 30, 58, 0.12);
    --shadow-hover: 0 12px 40px rgba(196, 30, 58, 0.2);
    --radius: 16px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #FFFDF5 0%, #FFF0E0 30%, #FFE8D6 60%, #FFFDF5 100%);
    color: var(--text);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ========== Background Decorations ========== */
.bg-decorations {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.lantern {
    position: absolute;
    font-size: 3rem;
    animation: swing 3s ease-in-out infinite;
    opacity: 0.6;
}

.lantern-1 { top: 5%; left: 5%; animation-delay: 0s; }
.lantern-2 { top: 8%; right: 5%; animation-delay: 0.5s; }
.lantern-3 { top: 60%; left: 3%; animation-delay: 1s; font-size: 2.5rem; }
.lantern-4 { top: 55%; right: 3%; animation-delay: 1.5s; font-size: 2.5rem; }

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

.cherry-blossom {
    position: absolute;
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
    opacity: 0.4;
}

.blossom-1 { top: 20%; left: 10%; animation-delay: 0s; }
.blossom-2 { top: 70%; right: 8%; animation-delay: 2s; }
.blossom-3 { top: 40%; left: 90%; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(5deg); }
    75% { transform: translateY(10px) rotate(-5deg); }
}

/* ========== Hero / Header ========== */
.hero {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 60px 20px 50px;
    background: linear-gradient(180deg, var(--red) 0%, var(--red-light) 100%);
    color: var(--white);
    clip-path: ellipse(150% 100% at 50% 0%);
    box-shadow: 0 8px 40px rgba(139, 0, 0, 0.3);
}

.hero-top {
    max-width: 700px;
    margin: 0 auto;
}

.year-badge {
    display: inline-block;
    background: var(--gold);
    color: var(--red-dark);
    padding: 6px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 8px;
}

.hero-year {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    color: var(--gold-light);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    line-height: 1;
    margin-bottom: 16px;
}

.hero-ornament {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 1.2rem;
    color: var(--gold-light);
}

/* ========== Countdown ========== */
.countdown-section {
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.countdown-heading {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold-pale);
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    padding: 14px 20px;
    min-width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s;
}

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

.countdown-number {
    font-size: 2.5rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.countdown-label {
    font-size: 0.8rem;
    opacity: 0.85;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-separator {
    font-size: 2rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.5);
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ========== Container & Cards ========== */
.container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(212, 160, 23, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 28px 0;
}

.card-icon {
    font-size: 1.5rem;
}

.card-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--red);
}

.card-body {
    padding: 20px 28px 24px;
    color: var(--text-light);
}

/* ========== Schedule ========== */
.schedule-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.schedule-item {
    flex: 1 1 250px;
    text-align: center;
    padding: 24px 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #FFF5F5, #FFE8E8);
    border: 2px dashed var(--red-light);
}

.schedule-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.schedule-date {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--red);
    margin-bottom: 4px;
}

.schedule-note {
    font-size: 0.85rem;
    color: var(--text-light);
    opacity: 0.7;
}

.schedule-arrow {
    font-size: 2rem;
    color: var(--gold);
    font-weight: 900;
}

.schedule-return {
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #FFF9E6, #FFF0C0);
    border: 2px solid var(--gold);
}

.schedule-return .schedule-date {
    color: #8B6914;
}

/* ========== Stats ========== */
.stats-grid {
    display: flex;
    justify-content: space-around;
    gap: 16px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    flex: 1 1 120px;
}

.stat-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--red);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 6px;
    line-height: 1.3;
}

/* ========== Makeup Table ========== */
.makeup-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.makeup-table th {
    background: var(--red);
    color: var(--white);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
}

.makeup-table th:first-child { border-radius: 8px 0 0 0; }
.makeup-table th:last-child { border-radius: 0 8px 0 0; }

.makeup-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(212, 160, 23, 0.15);
}

.makeup-table tbody tr:hover {
    background: var(--gold-pale);
}

.makeup-table tbody tr:last-child td:first-child {
    border-radius: 0 0 0 8px;
}

.makeup-table tbody tr:last-child td:last-child {
    border-radius: 0 0 8px 0;
}

/* ========== Notes List ========== */
.notes-list {
    list-style: none;
    padding: 0;
}

.notes-list li {
    position: relative;
    padding: 10px 0 10px 28px;
    border-bottom: 1px solid rgba(212, 160, 23, 0.1);
    font-size: 0.95rem;
}

.notes-list li:last-child {
    border-bottom: none;
}

.notes-list li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 16px;
    width: 10px;
    height: 10px;
    background: var(--red);
    border-radius: 50%;
}

/* ========== Wishes ========== */
.wishes-card {
    background: linear-gradient(135deg, #FFF5F5, #FFE8D6);
    border: 2px solid var(--gold);
}

.wishes-content {
    text-align: center;
}

.wishes-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.wishes-content h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--red);
    margin-bottom: 16px;
}

.wishes-text {
    font-size: 1.05rem;
    line-height: 2;
    color: var(--text-light);
    margin-bottom: 20px;
}

.wishes-text strong {
    color: var(--red);
}

.wishes-signature {
    padding-top: 16px;
    border-top: 1px solid rgba(212, 160, 23, 0.3);
    color: var(--text-light);
}

.wishes-signature strong {
    color: var(--red-dark);
    font-size: 1.1rem;
}

/* ========== Footer ========== */
.footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 32px 20px;
    color: var(--text-light);
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ========== Fireworks Canvas ========== */
#fireworksCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ========== Responsive ========== */
@media (max-width: 600px) {
    .hero {
        padding: 40px 16px 36px;
    }

    .countdown-item {
        min-width: 60px;
        padding: 10px 14px;
    }

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

    .countdown-separator {
        font-size: 1.4rem;
    }

    .card-body {
        padding: 16px 18px 20px;
    }

    .card-header {
        padding: 20px 18px 0;
    }

    .schedule-grid {
        flex-direction: column;
    }

    .schedule-arrow {
        transform: rotate(90deg);
    }

    .makeup-table {
        font-size: 0.8rem;
    }

    .makeup-table th,
    .makeup-table td {
        padding: 8px 10px;
    }

    .stats-grid {
        gap: 20px;
    }

    .stat-number {
        font-size: 2.2rem;
    }
}

/* ========== Print Styles ========== */
@media print {
    body {
        background: white;
        color: black;
    }

    .hero {
        background: none !important;
        color: black;
        clip-path: none;
        box-shadow: none;
        padding: 20px;
    }

    .hero-year, .hero-title {
        color: var(--red-dark);
        text-shadow: none;
    }

    .countdown-section {
        display: none;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }

    .bg-decorations, #fireworksCanvas {
        display: none;
    }

    .footer {
        border-top: 1px solid #ccc;
    }
}
