/* ============================================
   CHRISTMAS CATERING LIST - CUSTOM STYLES
   ============================================ */

/* === ROOT VARIABLES === */
:root {
    --christmas-red: #c41e3a;
    --christmas-green: #165b33;
    --christmas-gold: #ffd700;
    --christmas-white: #f8f9fa;
    --christmas-dark: #0f2027;
    --christmas-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --winter-gradient: linear-gradient(to bottom, #0f2027, #203a43, #2c5364);
    --festive-gradient: linear-gradient(135deg, #c41e3a 0%, #165b33 100%);
}

/* === GLOBAL STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--winter-gradient);
    color: var(--christmas-white);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* === SNOWFLAKES ANIMATION === */
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

/* === NAVIGATION === */
.navbar {
    background: rgba(15, 32, 39, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 1rem 0;
}

.navbar-brand {
    font-family: 'Mountains of Christmas', cursive;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--christmas-gold) !important;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.navbar-brand i {
    color: var(--christmas-red);
    margin: 0 0.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.brand-text {
    display: inline-block;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.nav-link {
    color: var(--christmas-white) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
}

.nav-link:hover {
    color: var(--christmas-gold) !important;
    transform: translateY(-2px);
}

/* === HERO SECTION === */
.hero-section {
    position: relative;
    z-index: 2;
    animation: fadeInDown 0.8s ease-out;
}

.christmas-title {
    font-family: 'Mountains of Christmas', cursive;
    color: var(--christmas-gold);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    margin-bottom: 1rem;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 10px rgba(255, 215, 0, 0.3); }
    to { text-shadow: 0 0 20px rgba(255, 215, 0, 0.6); }
}

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

/* === PROGRESS BAR === */
.progress-container {
    max-width: 600px;
}

.progress-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.progress {
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.progress-bar {
    border-radius: 15px;
    font-weight: 600;
    transition: width 0.6s ease;
}

/* === BUTTONS === */
.btn-christmas {
    background: linear-gradient(135deg, var(--christmas-red) 0%, var(--christmas-green) 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-christmas::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-christmas:hover::before {
    left: 100%;
}

.btn-christmas:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(196, 30, 58, 0.6);
    color: white;
}

.btn-christmas:active {
    transform: translateY(-1px);
}

.btn-claim {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-claim:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.6);
    color: white;
}

/* === DISH CARDS === */
.dish-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dish-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

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

.dish-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--christmas-gold);
}

.dish-card.claimed {
    background: rgba(22, 91, 51, 0.3);
    border-color: rgba(34, 139, 34, 0.5);
}

.dish-card.available {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
}

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

/* Stagger animation for cards */
.dish-card:nth-child(1) { animation-delay: 0.1s; }
.dish-card:nth-child(2) { animation-delay: 0.2s; }
.dish-card:nth-child(3) { animation-delay: 0.3s; }
.dish-card:nth-child(4) { animation-delay: 0.4s; }
.dish-card:nth-child(5) { animation-delay: 0.5s; }
.dish-card:nth-child(6) { animation-delay: 0.6s; }

.dish-card-header {
    text-align: center;
    margin-bottom: 1rem;
}

.dish-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.dish-card.claimed .dish-icon {
    color: #4ade80;
}

.dish-card.available .dish-icon {
    color: var(--christmas-gold);
}

.dish-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.dish-card-body {
    flex: 1;
    margin-bottom: 1rem;
}

.dish-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.6;
}

.dish-card-footer {
    margin-top: auto;
}

.claimed-by {
    background: rgba(74, 222, 128, 0.2);
    padding: 0.75rem;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    text-align: center;
    font-size: 0.95rem;
}

.claimed-by i {
    color: #4ade80;
    margin-right: 0.5rem;
}

/* === FORM CARDS === */
.form-card,
.dish-preview-card,
.tip-card,
.encouragement-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.6s ease-out;
}

.dish-preview-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
    border-color: rgba(102, 126, 234, 0.5);
}

.dish-preview-header {
    text-align: center;
    color: white;
}

.dish-preview-body {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.form-label {
    color: white;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-control {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--christmas-gold);
    color: white;
    box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, 0.25);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-text {
    color: rgba(255, 255, 255, 0.7);
}

/* === TIPS SECTION === */
.tips-section {
    animation: fadeInUp 0.8s ease-out;
}

.tips-section h4 {
    color: var(--christmas-gold);
    font-weight: 600;
}

.tip-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 1.25rem;
    height: 100%;
    transition: all 0.3s ease;
}

.tip-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-5px);
}

.tip-card h6 {
    color: var(--christmas-gold);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.tip-card ul {
    list-style: none;
    padding-left: 0;
}

.tip-card li {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.25rem 0;
}

.tip-card li::before {
    content: '🎄 ';
    margin-right: 0.5rem;
}

/* === ENCOURAGEMENT SECTION === */
.encouragement-section {
    animation: fadeInUp 1s ease-out;
}

.encouragement-card {
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.2) 0%, rgba(22, 91, 51, 0.2) 100%);
    border-color: rgba(255, 215, 0, 0.3);
}

.encouragement-card i {
    color: var(--christmas-red);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.encouragement-card h4 {
    color: var(--christmas-gold);
    font-weight: 600;
}

.encouragement-card p {
    color: rgba(255, 255, 255, 0.9);
}

/* === FLASH MESSAGES === */
.flash-message {
    animation: slideInDown 0.5s ease-out;
    border-radius: 15px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.9) 0%, rgba(34, 197, 94, 0.9) 100%);
    color: white;
}

.alert-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(37, 99, 235, 0.9) 100%);
    color: white;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9) 0%, rgba(220, 38, 38, 0.9) 100%);
    color: white;
}

/* === EMPTY STATE === */
.empty-state {
    animation: fadeInUp 0.8s ease-out;
}

.empty-state i {
    color: var(--christmas-gold);
    opacity: 0.5;
    animation: float 3s ease-in-out infinite;
}

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

.empty-state h3 {
    color: white;
    font-weight: 600;
}

.empty-state .lead {
    color: rgba(255, 255, 255, 0.7);
}

/* === FLOATING ACTION BUTTON === */
.fab-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--christmas-red) 0%, var(--christmas-green) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(196, 30, 58, 0.5);
    transition: all 0.3s ease;
    z-index: 1000;
    text-decoration: none;
}

.fab-button:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 30px rgba(196, 30, 58, 0.7);
    color: white;
}

/* === MUSIC TOGGLE === */
.music-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--christmas-gold) 0%, #DAA520 100%);
    color: white;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5),
                0 0 30px rgba(255, 215, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
    animation: musicBounce 2s ease-in-out infinite;
}

.music-toggle:hover {
    transform: scale(1.15) translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.7),
                0 0 40px rgba(255, 215, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.5);
}

.music-toggle.playing {
    animation: musicPlayingPulse 0.8s ease-in-out infinite;
    border-color: rgba(255, 255, 255, 0.6);
}

.music-toggle.playing i {
    animation: musicNote 0.5s ease-in-out infinite;
}

/* Gentle bounce animation for idle state */
@keyframes musicBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5),
                    0 0 30px rgba(255, 215, 0, 0.3);
    }
    50% {
        transform: translateY(-5px) scale(1.05);
        box-shadow: 0 10px 25px rgba(255, 215, 0, 0.6),
                    0 0 40px rgba(255, 215, 0, 0.4);
    }
}

/* Stronger pulse when playing */
@keyframes musicPlayingPulse {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6),
                    0 0 40px rgba(255, 215, 0, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 8px 30px rgba(255, 215, 0, 0.8),
                    0 0 50px rgba(255, 215, 0, 0.6);
        transform: scale(1.08);
    }
}

/* Icon bounce when playing */
@keyframes musicNote {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.15) rotate(-5deg); }
    75% { transform: scale(1.15) rotate(5deg); }
}

/* === SANTA FLYBY === */
.santa-flyby {
    position: fixed;
    top: 15%;
    right: -400px;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}

.santa-flyby .sleigh-group {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 3rem;
    white-space: nowrap;
}

.santa-flyby .reindeer {
    display: inline-block;
}

.santa-flyby .sleigh {
    display: inline-block;
    margin: 0 5px;
}

.santa-flyby .santa {
    display: inline-block;
}

.santa-flyby.flying {
    animation: santaFly 12s ease-in-out forwards;
}

@keyframes santaFly {
    0% {
        right: -400px;
        top: 15%;
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
    20% {
        top: 10%;
        transform: translateY(-10px) rotate(-2deg);
    }
    40% {
        top: 12%;
        transform: translateY(5px) rotate(1deg);
    }
    60% {
        top: 18%;
        transform: translateY(10px) rotate(-1deg);
    }
    80% {
        top: 12%;
        transform: translateY(-5px) rotate(1deg);
    }
    100% {
        right: calc(100% + 100px);
        top: 8%;
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
}

/* === FOOTER === */
.footer {
    background: rgba(15, 32, 39, 0.8);
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer .heart {
    color: var(--christmas-red);
    animation: pulse 1.5s ease-in-out infinite;
}

/* === CONFETTI CANVAS === */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .christmas-title {
        font-size: 2rem;
    }

    .dish-card {
        margin-bottom: 1rem;
    }

    .navbar-brand {
        font-size: 1.4rem;
    }

    .fab-button {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
    *:not(.snowflake),
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    /* Hide snowflakes for users who prefer reduced motion */
    .snowflakes {
        display: none;
    }
}

/* === LOADING STATE === */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* === BADGE CUSTOMIZATION === */
.badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* === HOVER EFFECTS === */
.btn:focus,
.form-control:focus {
    outline: none;
}

/* === WINTER THEME === */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
    z-index: 0;
}

main.container {
    position: relative;
    z-index: 2;
}

/* === MODALS === */
.delete-modal {
    background: linear-gradient(135deg, rgba(15, 32, 39, 0.98) 0%, rgba(32, 58, 67, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.delete-modal .modal-header {
    padding: 1.5rem;
}

.delete-modal .modal-title {
    font-weight: 600;
    color: white;
}

.delete-modal .modal-body {
    padding: 1rem 1.5rem;
}

.delete-modal .modal-footer {
    padding: 1.5rem;
}

.delete-modal .text-warning {
    color: #fbbf24 !important;
}

.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.7);
}

/* === DISH CARD ACTION BUTTONS === */
.dish-card-footer .btn-sm {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.btn-outline-danger {
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.btn-outline-danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #fee2e2;
    transform: translateY(-2px);
}

.btn-outline-warning {
    border: 1px solid rgba(251, 191, 36, 0.5);
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
}

.btn-outline-warning:hover {
    background: rgba(251, 191, 36, 0.2);
    border-color: #fbbf24;
    color: #fef3c7;
    transform: translateY(-2px);
}

.btn-outline-secondary {
    border: 1px solid rgba(156, 163, 175, 0.5);
    color: #9ca3af;
    background: rgba(156, 163, 175, 0.1);
}

.btn-outline-secondary:hover {
    background: rgba(156, 163, 175, 0.2);
    border-color: #9ca3af;
    color: #e5e7eb;
    transform: translateY(-2px);
}

/* === NOT THIS YEAR SECTION === */
.not-this-year-section {
    animation: fadeInUp 0.8s ease-out;
}

.accordion-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
}

.accordion-button {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-weight: 600;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, 0.25);
    border-color: var(--christmas-gold);
}

.accordion-button::after {
    filter: invert(1);
}

.accordion-body {
    background: rgba(255, 255, 255, 0.03);
    color: white;
    padding: 1.5rem;
}

.not-this-year-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
    height: 100%;
}

.not-this-year-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
}

.not-this-year-card .dish-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.not-this-year-card .dish-description {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.75rem;
}
