/* ===== 기본 설정 ===== */
:root {
    --christmas-red: #c41e3a;
    --christmas-red-dark: #8b0000;
    --christmas-green: #228b22;
    --christmas-green-dark: #006400;
    --christmas-gold: #ffd700;
    --christmas-cream: #fffef0;
    --christmas-white: #ffffff;
    --christmas-dark: #1a1a2e;
    --gradient-festive: linear-gradient(135deg, #c41e3a 0%, #228b22 100%);
    --gradient-warm: linear-gradient(135deg, #ff6b6b 0%, #ffd93d 100%);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(255, 215, 0, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', 'Gowun Dodum', sans-serif;
    background: linear-gradient(180deg, #1a1a2e 0%, #2d1b3d 50%, #1a1a2e 100%);
    min-height: 100vh;
    color: var(--christmas-cream);
    overflow-x: hidden;
}

/* ===== 눈 내리는 효과 ===== */
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10%;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    animation: fall linear infinite;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.snowflake:nth-child(1) {
    left: 5%;
    animation-duration: 10s;
    animation-delay: 0s;
    font-size: 1.2rem;
}

.snowflake:nth-child(2) {
    left: 15%;
    animation-duration: 12s;
    animation-delay: 1s;
    font-size: 1.8rem;
}

.snowflake:nth-child(3) {
    left: 25%;
    animation-duration: 8s;
    animation-delay: 2s;
    font-size: 1rem;
}

.snowflake:nth-child(4) {
    left: 35%;
    animation-duration: 14s;
    animation-delay: 0.5s;
    font-size: 1.5rem;
}

.snowflake:nth-child(5) {
    left: 45%;
    animation-duration: 11s;
    animation-delay: 3s;
    font-size: 2rem;
}

.snowflake:nth-child(6) {
    left: 55%;
    animation-duration: 9s;
    animation-delay: 1.5s;
    font-size: 1.3rem;
}

.snowflake:nth-child(7) {
    left: 65%;
    animation-duration: 13s;
    animation-delay: 2.5s;
    font-size: 1.7rem;
}

.snowflake:nth-child(8) {
    left: 75%;
    animation-duration: 10s;
    animation-delay: 0.8s;
    font-size: 1.1rem;
}

.snowflake:nth-child(9) {
    left: 85%;
    animation-duration: 15s;
    animation-delay: 4s;
    font-size: 1.4rem;
}

.snowflake:nth-child(10) {
    left: 92%;
    animation-duration: 11s;
    animation-delay: 2s;
    font-size: 1.6rem;
}

.snowflake:nth-child(11) {
    left: 8%;
    animation-duration: 9s;
    animation-delay: 3.5s;
    font-size: 1.9rem;
}

.snowflake:nth-child(12) {
    left: 50%;
    animation-duration: 12s;
    animation-delay: 1.2s;
    font-size: 1rem;
}

@keyframes fall {
    0% {
        transform: translateY(-10vh) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0.3;
    }
}

/* ===== 헤더 ===== */
.header {
    text-align: center;
    padding: 80px 20px 60px;
    background: radial-gradient(ellipse at top, rgba(196, 30, 58, 0.3) 0%, transparent 70%);
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 4px;
    background: var(--gradient-festive);
    border-radius: 2px;
}

.title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b6b, #ffd93d, #ff6b6b);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
    margin-bottom: 10px;
    text-shadow: none;
}

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

.subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--christmas-cream);
    font-family: 'Gowun Dodum', serif;
    opacity: 0.9;
    margin-bottom: 20px;
}

.header-decoration {
    font-size: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* ===== 커플 사진 ===== */
.couple-photo-container {
    margin-bottom: 25px;
}

.couple-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--christmas-gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4), 0 8px 25px rgba(0, 0, 0, 0.3);
    animation: photoGlow 3s ease-in-out infinite;
}

@keyframes photoGlow {

    0%,
    100% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.4), 0 10px 40px rgba(0, 0, 0, 0.3);
    }

    50% {
        box-shadow: 0 0 50px rgba(255, 215, 0, 0.6), 0 10px 40px rgba(0, 0, 0, 0.3);
    }
}

/* ===== 메인 콘텐츠 ===== */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ===== 섹션 ===== */
.day-section {
    margin-bottom: 80px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-soft);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    color: var(--christmas-gold);
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.section-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Gowun Dodum', serif;
}

/* ===== 데이트 코스 버튼 ===== */
.date-course-container {
    text-align: center;
    margin-bottom: 50px;
}

.date-course-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 20px 50px;
    background: var(--gradient-festive);
    color: white;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(196, 30, 58, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.date-course-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: btnShine 3s infinite;
}

@keyframes btnShine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.date-course-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(196, 30, 58, 0.5);
}

.btn-icon {
    font-size: 1.8rem;
}

.btn-arrow {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.date-course-btn:hover .btn-arrow {
    transform: translateX(5px);
}

.btn-hint {
    margin-top: 15px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== 활동 카드 그리드 ===== */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.activity-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.activity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-warm);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.activity-card:hover::before {
    opacity: 1;
}

.activity-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), var(--shadow-glow);
}

.activity-card.gift:hover {
    box-shadow: 0 20px 40px rgba(196, 30, 58, 0.3);
}

.activity-card.cafe:hover {
    box-shadow: 0 20px 40px rgba(139, 69, 19, 0.3);
}

.activity-card.illumination:hover {
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.3);
}

.activity-card.photo:hover {
    box-shadow: 0 20px 40px rgba(255, 105, 180, 0.3);
}

.activity-card.cake:hover {
    box-shadow: 0 20px 40px rgba(255, 99, 71, 0.3);
}

.activity-card.movie:hover {
    box-shadow: 0 20px 40px rgba(100, 149, 237, 0.3);
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    display: block;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.activity-card h3 {
    font-size: 1.4rem;
    color: var(--christmas-cream);
    margin-bottom: 10px;
}

.activity-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.card-decoration {
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 1.2rem;
    opacity: 0.5;
}

/* ===== 레시피 카드 그리드 ===== */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.recipe-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.recipe-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.recipe-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    display: block;
}

.recipe-card h3 {
    font-size: 1.5rem;
    color: var(--christmas-gold);
    margin-bottom: 10px;
}

.recipe-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
    line-height: 1.5;
}

.recipe-btn {
    background: var(--gradient-festive);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.recipe-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(196, 30, 58, 0.4);
}

/* ===== 모달 ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(145deg, #2d2d4a, #1a1a2e);
    border-radius: 25px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    transform: scale(0.8) translateY(50px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: var(--christmas-red);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 10px;
}

.modal-header h2 {
    color: var(--christmas-gold);
    font-size: 1.8rem;
}

.modal-body h3 {
    color: var(--christmas-cream);
    font-size: 1.2rem;
    margin: 25px 0 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-body h3::before {
    content: '🔸';
}

.modal-body ul {
    list-style: none;
    padding-left: 10px;
}

.modal-body li {
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    padding-left: 25px;
}

.modal-body li::before {
    content: '•';
    position: absolute;
    left: 5px;
    color: var(--christmas-gold);
}

.modal-body ol {
    padding-left: 25px;
}

.modal-body ol li {
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.8);
    padding-left: 0;
}

.modal-body ol li::before {
    display: none;
}

.cooking-time {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 215, 0, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    color: var(--christmas-gold);
    font-size: 0.9rem;
    margin-top: 20px;
}

/* ===== 푸터 ===== */
.footer {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(180deg, transparent, rgba(196, 30, 58, 0.1));
}

.footer p {
    font-size: 1.3rem;
    color: var(--christmas-gold);
    margin-bottom: 10px;
}

.footer-small {
    font-size: 0.9rem !important;
    color: rgba(255, 255, 255, 0.5) !important;
}

/* ===== 반응형 ===== */
@media (max-width: 768px) {
    .header {
        padding: 60px 15px 40px;
    }

    .day-section {
        padding: 25px 20px;
        margin-bottom: 40px;
    }

    .date-course-btn {
        padding: 15px 35px;
        font-size: 1.1rem;
    }

    .activity-grid,
    .recipe-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 25px 20px;
    }

    .snowflake {
        font-size: 1rem;
    }
}

/* ===== 스크롤바 커스텀 ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--christmas-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--christmas-red);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--christmas-red-dark);
}

/* ===== 활동 모달 ===== */
.activity-modal-content {
    max-width: 450px;
}

.activity-message {
    font-size: 1.8rem;
    text-align: center;
    color: var(--christmas-cream);
    padding: 20px;
    font-family: 'Gowun Dodum', serif;
    line-height: 1.6;
    animation: messageAppear 0.5s ease-out;
}

@keyframes messageAppear {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== 투표 버튼 ===== */
.vote-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px 0;
}

.vote-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--christmas-cream);
    padding: 18px 25px;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 12px;
}

.vote-btn:hover {
    background: var(--gradient-festive);
    border-color: transparent;
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(196, 30, 58, 0.4);
}

.vote-btn.selected {
    background: var(--gradient-festive);
    border-color: var(--christmas-gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

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

.vote-result {
    text-align: center;
    padding: 20px;
    font-size: 1.3rem;
    color: var(--christmas-gold);
    animation: messageAppear 0.5s ease-out;
}

.vote-result .selected-option {
    display: block;
    font-size: 2rem;
    margin-top: 10px;
}

/* ===== 마음에 들어요 버튼 ===== */
.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
    position: relative;
    overflow: hidden;
}

.like-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: btnShine 2s infinite;
}

.like-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 107, 157, 0.5);
}

.like-btn:active {
    transform: scale(0.95);
}

.like-icon {
    font-size: 1.5rem;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.1);
    }

    50% {
        transform: scale(1);
    }

    75% {
        transform: scale(1.1);
    }
}

/* ===== 콘페티 ===== */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 12px;
    height: 12px;
    top: -20px;
    animation: confetti-fall linear forwards;
}

.confetti.circle {
    border-radius: 50%;
}

.confetti.square {
    border-radius: 2px;
}

.confetti.star {
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    width: 15px;
    height: 15px;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}