/* =============================================
   PNW Gather — Custom Styles & Animations
   ============================================= */

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #050d09; }
::-webkit-scrollbar-thumb { background: #2d4a38; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #3d6a53; }
html { scrollbar-color: #2d4a38 #050d09; }

/* Page system */
.page { display: none; opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
.page.active { display: block; opacity: 1; transform: translateY(0); }

/* Title glow */
.title-glow {
    text-shadow: 0 0 80px rgba(212,160,48,0.15), 0 0 160px rgba(212,160,48,0.05);
}

/* Glass morphism panels */
.glass-panel {
    background: rgba(13,31,23,0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.glass-card {
    background: rgba(13,31,23,0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}
.glass-card:hover {
    background: rgba(13,31,23,0.6);
    border-color: rgba(255,255,255,0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* Buttons */
.glass-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; border-radius: 12px;
    background: rgba(212,160,48,0.1);
    border: 1px solid rgba(212,160,48,0.25);
    color: #D4A030; font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
}
.glass-btn:hover {
    background: rgba(212,160,48,0.2);
    border-color: rgba(212,160,48,0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(212,160,48,0.15);
}

.glass-btn-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7); font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
}
.glass-btn-secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-1px);
}

.glass-btn-cta {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px; border-radius: 12px;
    background: linear-gradient(135deg, rgba(212,160,48,0.2), rgba(232,115,42,0.15));
    border: 1px solid rgba(212,160,48,0.3);
    color: #D4A030; font-weight: 600;
    transition: all 0.3s ease;
}
.glass-btn-cta:hover {
    background: linear-gradient(135deg, rgba(212,160,48,0.3), rgba(232,115,42,0.25));
    border-color: rgba(212,160,48,0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 24px rgba(212,160,48,0.2);
}

/* Form inputs */
.form-input {
    width: 100%; padding: 10px 14px; border-radius: 10px;
    background: rgba(5,13,9,0.6);
    border: 1px solid rgba(255,255,255,0.08);
    color: white; font-size: 14px;
    transition: all 0.2s ease;
    outline: none;
}
.form-input:focus {
    border-color: rgba(212,160,48,0.4);
    box-shadow: 0 0 0 3px rgba(212,160,48,0.1);
}
.form-input::placeholder { color: rgba(255,255,255,0.2); }
.form-input[readonly] { opacity: 0.5; cursor: not-allowed; }

select.form-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.3)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

/* Navigation links */
.nav-link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 8px;
    font-size: 13px; font-weight: 500;
    color: rgba(255,255,255,0.5);
    transition: all 0.2s ease;
}
.nav-link:hover { color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.05); }
.nav-link.active { color: #D4A030; background: rgba(212,160,48,0.1); }

.mobile-nav-link {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; border-radius: 10px;
    font-size: 15px; font-weight: 500;
    color: rgba(255,255,255,0.6);
    transition: all 0.2s ease;
}
.mobile-nav-link:hover { color: white; background: rgba(255,255,255,0.05); }

/* Countdown */
.countdown-unit {
    display: flex; flex-direction: column; align-items: center;
    padding: 12px 16px; border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    min-width: 72px;
}
.countdown-num {
    font-family: 'Playfair Display', serif;
    font-size: 28px; font-weight: 700;
    color: #D4A030;
    line-height: 1;
}
.countdown-label {
    font-size: 10px; text-transform: uppercase;
    letter-spacing: 0.1em; color: rgba(255,255,255,0.3);
    margin-top: 4px;
}

/* Schedule tabs */
.schedule-tab {
    padding: 8px 20px; border-radius: 10px;
    font-size: 13px; font-weight: 500;
    color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.03);
    border: 1px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}
.schedule-tab:hover { color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.06); }
.schedule-tab.active { color: #D4A030; background: rgba(212,160,48,0.1); border-color: rgba(212,160,48,0.2); }

.cat-tab {
    padding: 5px 14px; border-radius: 20px;
    font-size: 12px; font-weight: 500;
    color: rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.03);
    border: 1px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}
.cat-tab:hover { color: rgba(255,255,255,0.6); }
.cat-tab.active { color: #6b8f60; background: rgba(74,103,65,0.15); border-color: rgba(74,103,65,0.3); }

/* Schedule item */
.sched-item {
    background: rgba(13,31,23,0.4);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 16px 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}
.sched-item:hover { background: rgba(13,31,23,0.6); border-color: rgba(255,255,255,0.1); }
.sched-item.expanded { background: rgba(13,31,23,0.7); border-color: rgba(212,160,48,0.15); }
.sched-item .sched-desc { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, opacity 0.3s ease; opacity: 0; }
.sched-item.expanded .sched-desc { max-height: 100px; opacity: 1; }
.sched-item .expand-icon { transition: transform 0.3s ease; }
.sched-item.expanded .expand-icon { transform: rotate(180deg); }

/* Activity card */
.activity-card {
    background: rgba(13,31,23,0.4);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
}
.activity-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212,160,48,0.2);
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.activity-card img { transition: transform 0.6s ease, opacity 0.4s ease; }
.activity-card:hover img { transform: scale(1.05); opacity: 0.9; }

/* Gallery */
.gallery-item {
    break-inside: avoid;
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}
.gallery-item img {
    width: 100%; display: block;
    transition: transform 0.5s ease, opacity 0.3s ease;
    opacity: 0.75;
}
.gallery-item:hover img { transform: scale(1.03); opacity: 1; }
.gallery-item::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(5,13,9,0.4), transparent 50%);
    pointer-events: none;
    opacity: 0; transition: opacity 0.3s ease;
}
.gallery-item:hover::after { opacity: 1; }

/* FAQ */
.faq-item { border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,0.05); }
.faq-question {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 16px; cursor: pointer;
    font-size: 14px; font-weight: 500;
    color: rgba(255,255,255,0.7);
    transition: all 0.2s ease;
    background: rgba(255,255,255,0.02);
}
.faq-question:hover { color: white; background: rgba(255,255,255,0.04); }
.faq-answer {
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 16px;
    font-size: 13px; color: rgba(255,255,255,0.4);
    line-height: 1.6;
}
.faq-item.open .faq-answer { max-height: 200px; padding: 12px 16px; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-chevron { transition: transform 0.3s ease; }

/* Profile badges */
.badge-seeker { background: rgba(74,103,65,0.2); color: #6b8f60; border: 1px solid rgba(74,103,65,0.3); }
.badge-explorer { background: rgba(212,160,48,0.15); color: #D4A030; border: 1px solid rgba(212,160,48,0.3); }
.badge-guardian { background: rgba(232,115,42,0.15); color: #E8732A; border: 1px solid rgba(232,115,42,0.3); }
.rsvp-pending { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.4); border: 1px solid rgba(255,255,255,0.1); }
.rsvp-confirmed { background: rgba(74,103,65,0.2); color: #6b8f60; border: 1px solid rgba(74,103,65,0.3); }
.rsvp-declined { background: rgba(196,69,26,0.15); color: #C4451A; border: 1px solid rgba(196,69,26,0.3); }

/* ============= FOG ANIMATION ============= */
.fog-layer {
    position: absolute;
    width: 200%;
    height: 40%;
    background: radial-gradient(ellipse at center, rgba(200,210,200,0.04) 0%, transparent 70%);
    filter: blur(50px);
    pointer-events: none;
}
.fog-1 { top: 20%; animation: fogDrift 70s linear infinite; }
.fog-2 { top: 40%; animation: fogDrift 90s linear infinite reverse; opacity: 0.7; }
.fog-3 { top: 10%; animation: fogDrift 110s linear infinite; opacity: 0.5; }

@keyframes fogDrift {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0%); }
}

/* ============= EMBER PARTICLES ============= */
.ember-particle {
    position: fixed;
    width: 3px; height: 3px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    animation: emberFloat linear infinite;
}

@keyframes emberFloat {
    0% { opacity: 0; transform: translateY(0) translateX(0); }
    10% { opacity: 1; }
    90% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(-100vh) translateX(30px); }
}

/* Slow bounce for landing arrow */
@keyframes bounceSlow {
    0%, 100% { transform: translateY(0) translateX(-50%); }
    50% { transform: translateY(8px) translateX(-50%); }
}
.animate-bounce-slow { animation: bounceSlow 3s ease-in-out infinite; }

/* ============= TOAST ============= */
.toast {
    pointer-events: auto;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(20px);
    animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
    max-width: 360px;
}
.toast-success { background: rgba(74,103,65,0.8); border: 1px solid rgba(107,143,96,0.3); color: #c5d6cc; }
.toast-error { background: rgba(196,69,26,0.8); border: 1px solid rgba(232,115,42,0.3); color: #f8e6b0; }
.toast-info { background: rgba(13,31,23,0.8); border: 1px solid rgba(212,160,48,0.2); color: #f0d07a; }

@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; transform: translateY(-10px); } }

/* ============= RESPONSIVE ============= */
@media (max-width: 640px) {
    .countdown-unit { min-width: 60px; padding: 10px 12px; }
    .countdown-num { font-size: 22px; }
}

/* ============= AMBIENT GLOW PULSE ============= */
@keyframes glowPulse {
    0%, 100% { opacity: 0.05; }
    50% { opacity: 0.1; }
}
.glow-pulse { animation: glowPulse 8s ease-in-out infinite; }

/* Checkbox styling */
input[type="checkbox"] {
    accent-color: #D4A030;
}