@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Playfair+Display:wght@600;700;900&display=swap');

:root {
    /* Autumn Palette */
    --bg-gradient: linear-gradient(135deg, #3e1e14, #5d2e1e, #8b4513);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --text-primary: #ffecd1;
    --text-secondary: rgba(255, 236, 209, 0.7);
    --accent-color: #ff9f1c;
    /* Pumpkin Orange */
    --accent-glow: 0 0 20px rgba(255, 159, 28, 0.4);
    --success-color: #2ec4b6;
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    overflow-x: hidden;
    position: relative;
}

/* ==================== Falling Leaves ==================== */
.leaves-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.leaf {
    position: absolute;
    top: -40px;
    font-size: 1.5rem;
    opacity: 0;
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(105vh) translateX(var(--drift, 100px)) rotate(720deg);
        opacity: 0;
    }
}

.container {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

/* ==================== Entrance Animations ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== Header & Countdown Section ==================== */
.hero-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 159, 28, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-transform: none;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #ffd700, #ff9f1c, #ff6b1a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 20px rgba(255, 159, 28, 0.15);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 16px;
    min-width: 100px;
    border: 1px solid var(--glass-border);
    transition: border-color 0.3s ease;
}

.time-unit:hover {
    border-color: rgba(255, 159, 28, 0.3);
}

.time-value {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
    font-variant-numeric: tabular-nums;
    color: var(--accent-color);
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        text-shadow: 0 0 5px rgba(255, 159, 28, 0.2);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 159, 28, 0.5);
    }
}

.time-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

/* ==================== Potluck Section ==================== */
.potluck-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .potluck-grid {
        grid-template-columns: 1fr;
    }
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.8s ease-out backwards;
}

.glass-card:nth-child(1) { animation-delay: 0.15s; }
.glass-card:nth-child(2) { animation-delay: 0.3s; }
.glass-card:nth-child(3) { animation-delay: 0.45s; }

h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}

/* ==================== Form Styling ==================== */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

input {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(255, 159, 28, 0.2);
    background: rgba(0, 0, 0, 0.3);
}

button {
    width: 100%;
    background: var(--accent-color);
    color: #3e1e14;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: var(--accent-glow);
    filter: brightness(1.1);
}

/* ==================== List Styling ==================== */
.dishes-list {
    list-style: none;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.category-header {
    padding: 0.5rem 1rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.category-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
    font-weight: 600;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.3rem;
    display: inline-block;
}

.dish-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.dish-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--glass-border);
}

.dish-name {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.dish-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.remove-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: auto;
    height: auto;
    padding: 0.3rem 0.6rem;
    background: rgba(255, 0, 0, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: normal;
}

.remove-btn:hover {
    background: rgba(255, 0, 0, 0.4);
    color: #ff4444;
    border-color: rgba(255, 0, 0, 0.6);
    transform: none;
    box-shadow: none;
    filter: none;
}

/* ==================== Custom Select Arrow ==================== */
select {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ff9f1c' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 2.5rem;
}

select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(255, 159, 28, 0.2);
    background-color: rgba(0, 0, 0, 0.3);
}

/* ==================== Cocktail Cards ==================== */
.cocktail-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cocktail-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 1.2rem 1.4rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.cocktail-card:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 159, 28, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 159, 28, 0.1);
}

.cocktail-icon {
    font-size: 1.4rem;
    line-height: 1.3;
    flex-shrink: 0;
}

.cocktail-body {
    flex: 1;
}

.cocktail-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.3rem;
}

.cocktail-ingredients {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* ==================== Cocktail Suggestion Section ==================== */
.cocktail-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 1.5rem 0;
}

.cocktail-section-label {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.cocktail-suggestions {
    margin-bottom: 1.5rem;
}

.cocktail-suggested {
    position: relative;
}

.cocktail-suggested-by {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.4rem;
    opacity: 0.8;
}

.cocktail-empty {
    text-align: center;
    opacity: 0.5;
    font-size: 0.9rem;
    padding: 1rem;
}

.cocktail-form {
    margin-top: 0.5rem;
}

/* ==================== Scrollbar ==================== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ==================== Turkey Hot Tub Video ==================== */
.video-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.video-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}

.video-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.3);
}

.video-wrapper video {
    width: 100%;
    display: block;
    border-radius: 16px;
}

.video-unmute-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.video-unmute-btn:hover {
    background: var(--accent-color);
    color: #3e1e14;
    transform: scale(1.1);
}

.video-caption {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.7;
}