/**
 * Sci-Fi / Tech Landing Page — 青年隊管理系統
 * Dark cyberpunk theme with glassmorphism
 */

/* ===== CSS Variables ===== */
:root {
    --bg-void: #050810;
    --bg-deep: #0a0e1a;
    --bg-panel: rgba(10, 15, 30, 0.65);
    --neon-blue: #00d4ff;
    --neon-cyan: #00ffd5;
    --neon-purple: #a855f7;
    --neon-pink: #f472b6;
    --glow-blue: rgba(0, 212, 255, 0.35);
    --glow-purple: rgba(168, 85, 247, 0.25);
    --glass-border: rgba(0, 212, 255, 0.12);
    --glass-bg: rgba(10, 18, 40, 0.55);
    --text-bright: #e8f4f8;
    --text-dim: #94a3b8;
    --font-zh: 'PingFang TC', 'Microsoft JhengHei', 'Noto Sans TC', system-ui, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg-void);
    color: var(--text-bright);
    font-family: var(--font-zh);
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

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

.scan-line {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,212,255,0.015) 2px, rgba(0,212,255,0.015) 4px);
    pointer-events: none; z-index: 1;
}

.glow-orb { position: fixed; border-radius: 50%; filter: blur(120px); pointer-events: none; z-index: 0; }
.glow-orb-1 { width: 500px; height: 500px; background: var(--glow-blue); top: -150px; right: -100px; }
.glow-orb-2 { width: 400px; height: 400px; background: var(--glow-purple); bottom: -100px; left: -80px; }

/* ===== Navigation ===== */
.landing-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 24px;
    background: rgba(5, 8, 16, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.3s;
}
.landing-nav.scrolled { background: rgba(5, 8, 16, 0.95); }

.nav-logo-img { height: 44px; width: auto; filter: brightness(1.1); }

.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a {
    color: var(--text-dim); text-decoration: none;
    font-size: 0.9rem; letter-spacing: 1px;
    transition: color 0.3s, text-shadow 0.3s;
}
.nav-links a:hover { color: var(--neon-cyan); text-shadow: 0 0 12px var(--glow-blue); }

/* ===== Sections ===== */
section { position: relative; z-index: 2; }

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    text-align: center;
    padding: 100px 24px 60px;
}

.hero-logo-wrap {
    margin-bottom: 24px;
    opacity: 0; animation: fadeSlideUp 0.8s 0.3s forwards;
}
.hero-logo {
    max-width: min(400px, 70vw);
    height: auto;
    filter: drop-shadow(0 0 30px rgba(0,212,255,0.3));
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 18px; border-radius: 30px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    font-size: 0.8rem; color: var(--neon-cyan);
    letter-spacing: 2px;
    margin-bottom: 20px;
    opacity: 0; animation: fadeSlideUp 0.8s 0.6s forwards;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--neon-cyan); animation: pulse 2s infinite; }

.hero h1 {
    font-family: var(--font-zh);
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    font-weight: 900; letter-spacing: 6px;
    line-height: 1.3;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple), var(--neon-cyan));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    opacity: 0; animation: fadeSlideUp 0.8s 0.8s forwards;
}

.hero .subtitle {
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    color: var(--text-dim);
    max-width: 560px; line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0; animation: fadeSlideUp 0.8s 1s forwards;
}

/* ===== Hero Entry Pills (顯眼入口) ===== */
.hero-entries {
    display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
    opacity: 0; animation: fadeSlideUp 0.8s 1.2s forwards;
}

.entry-pill {
    display: flex; align-items: center; gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 1.05rem; font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s;
    position: relative; overflow: hidden;
    min-width: 160px; justify-content: center;
}
.entry-pill .pill-arrow { font-size: 0.85rem; transition: transform 0.3s; }
.entry-pill:hover .pill-arrow { transform: translateX(4px); }
.entry-pill::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.08), transparent);
    transform: translateX(-100%); transition: transform 0.5s;
}
.entry-pill:hover::before { transform: translateX(100%); }

.entry-pill-member {
    background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(0,212,255,0.05));
    border: 1.5px solid rgba(0,212,255,0.4);
    color: var(--neon-blue);
}
.entry-pill-member:hover {
    background: linear-gradient(135deg, rgba(0,212,255,0.3), rgba(0,212,255,0.1));
    box-shadow: 0 0 30px var(--glow-blue), 0 4px 20px rgba(0,0,0,0.3);
    transform: translateY(-3px);
}

.entry-pill-admin {
    background: linear-gradient(135deg, rgba(168,85,247,0.15), rgba(168,85,247,0.05));
    border: 1.5px solid rgba(168,85,247,0.4);
    color: var(--neon-purple);
}
.entry-pill-admin:hover {
    background: linear-gradient(135deg, rgba(168,85,247,0.3), rgba(168,85,247,0.1));
    box-shadow: 0 0 30px var(--glow-purple), 0 4px 20px rgba(0,0,0,0.3);
    transform: translateY(-3px);
}

.entry-pill-parent {
    background: linear-gradient(135deg, rgba(0,255,213,0.15), rgba(0,255,213,0.05));
    border: 1.5px solid rgba(0,255,213,0.4);
    color: var(--neon-cyan);
}
.entry-pill-parent:hover {
    background: linear-gradient(135deg, rgba(0,255,213,0.3), rgba(0,255,213,0.1));
    box-shadow: 0 0 30px rgba(0,255,213,0.3), 0 4px 20px rgba(0,0,0,0.3);
    transform: translateY(-3px);
}

.guide-spotlight {
    width: min(100%, 820px);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px 18px;
    margin: 1.2rem auto 0;
    padding: 1rem 1.2rem;
    border-radius: 24px;
    text-decoration: none;
    color: var(--text-bright);
    background: linear-gradient(135deg, rgba(255, 196, 102, 0.14), rgba(98, 216, 255, 0.08));
    border: 1px solid rgba(255, 196, 102, 0.2);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    animation: fadeSlideUp 0.8s 1.3s forwards;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.guide-spotlight:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 196, 102, 0.38);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.28), 0 0 24px rgba(255, 196, 102, 0.12);
}

.guide-spotlight-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 196, 102, 0.12);
    color: #ffe8b5;
    font-size: 0.84rem;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.guide-spotlight strong {
    display: block;
    font-size: 1.18rem;
    margin-bottom: 0.2rem;
}

.guide-spotlight-body {
    display: block;
}

.guide-spotlight-copy {
    display: block;
    color: rgba(234, 248, 255, 0.78);
    line-height: 1.6;
}

.guide-spotlight-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #ffe8b5;
    font-weight: 700;
    white-space: nowrap;
}

/* ===== Section Title ===== */
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 {
    font-family: var(--font-zh);
    font-size: clamp(1.3rem, 3.5vw, 2rem);
    font-weight: 700; letter-spacing: 3px;
    color: var(--neon-blue);
    text-shadow: 0 0 20px var(--glow-blue);
}
.section-title .line {
    width: 60px; height: 2px; margin: 14px auto 0;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    border-radius: 2px;
}
.section-title p { color: var(--text-dim); font-size: 0.95rem; margin-top: 10px; }

/* ===== Activity Calendar ===== */
.calendar-section {
    padding: 70px 24px 80px;
}

.calendar-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 24px;
}

.calendar-panel,
.upcoming-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background:
        linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(168, 85, 247, 0.07)),
        rgba(8, 14, 28, 0.72);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(18px);
}

.calendar-panel::before,
.upcoming-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 0%, rgba(0, 255, 213, 0.13), transparent 34%),
        linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.045) 45%, transparent 70%);
    pointer-events: none;
}

.calendar-panel > *,
.upcoming-panel > * {
    position: relative;
}

.calendar-panel-head,
.upcoming-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.calendar-kicker {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--neon-cyan);
    font-family: 'Rajdhani', var(--font-zh);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.calendar-panel h3,
.upcoming-panel h3 {
    margin: 0;
    font-size: clamp(1.35rem, 2.6vw, 2rem);
    letter-spacing: 0.05em;
}

.calendar-count-badge {
    flex: 0 0 auto;
    padding: 0.55rem 0.85rem;
    border: 1px solid rgba(0, 255, 213, 0.24);
    border-radius: 999px;
    color: var(--neon-cyan);
    background: rgba(0, 255, 213, 0.08);
    font-size: 0.86rem;
}

.calendar-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.calendar-month-controls {
    display: inline-flex;
    gap: 6px;
    padding: 4px;
    border: 1px solid rgba(0, 212, 255, 0.14);
    border-radius: 999px;
    background: rgba(4, 9, 18, 0.38);
}

.calendar-month-controls button {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    color: var(--neon-cyan);
    background: rgba(0, 255, 213, 0.08);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.calendar-month-controls button:hover {
    transform: translateY(-1px);
    color: var(--bg-void);
    background: var(--neon-cyan);
}

.calendar-month-controls button:focus-visible {
    outline: 2px solid var(--neon-cyan);
    outline-offset: 3px;
}

.calendar-weekdays,
.calendar-grid-month {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.calendar-weekdays {
    margin-bottom: 8px;
}

.calendar-weekdays span {
    color: rgba(232, 244, 248, 0.58);
    font-size: 0.82rem;
    text-align: center;
}

.calendar-day {
    min-height: 72px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 10px;
    border: 1px solid rgba(0, 212, 255, 0.09);
    border-radius: 16px;
    background: rgba(4, 9, 18, 0.42);
    color: rgba(232, 244, 248, 0.86);
    font: inherit;
    cursor: pointer;
    appearance: none;
    text-align: left;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.calendar-day:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 212, 255, 0.3);
    background: rgba(4, 9, 18, 0.62);
}

.calendar-day:focus-visible {
    outline: 2px solid var(--neon-cyan);
    outline-offset: 3px;
}

.calendar-day span {
    font-family: 'Rajdhani', var(--font-zh);
    font-size: 1.1rem;
    font-weight: 700;
}

.calendar-day small {
    align-self: flex-end;
    min-width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--neon-cyan);
    color: var(--bg-void);
    font-size: 0.78rem;
    font-weight: 800;
    box-shadow: 0 0 18px rgba(0, 255, 213, 0.42);
}

.calendar-day.is-empty {
    visibility: hidden;
}

.calendar-day.is-past {
    opacity: 0.34;
}

.calendar-day.is-today {
    border-color: rgba(255, 196, 102, 0.55);
    box-shadow: inset 0 0 0 1px rgba(255, 196, 102, 0.18);
}

.calendar-day.has-event {
    border-color: rgba(0, 255, 213, 0.4);
    background:
        linear-gradient(135deg, rgba(0, 255, 213, 0.14), rgba(0, 212, 255, 0.06)),
        rgba(4, 9, 18, 0.58);
}

.calendar-day.has-event:hover,
.calendar-day.has-event.is-selected {
    border-color: rgba(0, 255, 213, 0.75);
    box-shadow: 0 0 24px rgba(0, 255, 213, 0.18);
}

.calendar-day.is-selected {
    border-color: rgba(0, 212, 255, 0.72);
    background:
        linear-gradient(135deg, rgba(0, 212, 255, 0.22), rgba(0, 255, 213, 0.12)),
        rgba(4, 9, 18, 0.68);
    box-shadow: inset 0 0 0 1px rgba(0, 255, 213, 0.18), 0 0 24px rgba(0, 212, 255, 0.14);
}

.upcoming-panel {
    display: flex;
    flex-direction: column;
}

.upcoming-panel-title {
    min-width: 0;
}

.calendar-reset-btn {
    flex: 0 0 auto;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(0, 255, 213, 0.22);
    border-radius: 999px;
    color: var(--neon-cyan);
    background: rgba(0, 255, 213, 0.07);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.calendar-reset-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 255, 213, 0.42);
    background: rgba(0, 255, 213, 0.12);
}

.calendar-reset-btn:focus-visible {
    outline: 2px solid var(--neon-cyan);
    outline-offset: 3px;
}

.calendar-reset-btn[hidden] {
    display: none;
}

.upcoming-list {
    display: grid;
    gap: 12px;
    flex: 1;
}

.upcoming-card {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 14px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    background: rgba(4, 9, 18, 0.48);
}

.upcoming-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 74px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.18), rgba(0, 255, 213, 0.08));
    border: 1px solid rgba(0, 255, 213, 0.18);
}

.upcoming-date strong {
    color: var(--neon-cyan);
    font-size: 1rem;
}

.upcoming-date span,
.upcoming-detail p {
    color: var(--text-dim);
    font-size: 0.82rem;
}

.upcoming-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.upcoming-title-row h4 {
    margin: 0;
    color: var(--text-bright);
    font-size: 1rem;
    line-height: 1.45;
}

.upcoming-title-row span {
    flex: 0 0 auto;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    color: #ffe8b5;
    background: rgba(255, 196, 102, 0.1);
    border: 1px solid rgba(255, 196, 102, 0.18);
    font-size: 0.74rem;
}

.upcoming-detail p {
    margin-top: 7px;
    line-height: 1.55;
}

.upcoming-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.upcoming-meta-item {
    min-width: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 6px;
    row-gap: 2px;
    padding: 9px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(0, 212, 255, 0.08);
}

.upcoming-meta-item i {
    grid-row: span 2;
    align-self: center;
    color: var(--neon-cyan);
    font-size: 0.9rem;
}

.upcoming-meta-item span {
    color: rgba(232, 244, 248, 0.54);
    font-size: 0.72rem;
    line-height: 1.1;
}

.upcoming-meta-item strong {
    min-width: 0;
    color: rgba(232, 244, 248, 0.92);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.calendar-loading,
.calendar-empty {
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-dim);
    text-align: center;
    border: 1px dashed rgba(0, 212, 255, 0.18);
    border-radius: 18px;
    background: rgba(4, 9, 18, 0.34);
}

.calendar-empty i {
    color: var(--neon-cyan);
    font-size: 1.7rem;
}

.calendar-empty strong {
    color: var(--text-bright);
}

.calendar-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 18px;
    padding: 0.9rem 1rem;
    border-radius: 999px;
    color: var(--bg-void);
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 0 28px rgba(0, 212, 255, 0.24);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.calendar-action:hover {
    transform: translateY(-2px);
    color: var(--bg-void);
    box-shadow: 0 0 34px rgba(0, 255, 213, 0.34);
}

/* ===== Photo Gallery ===== */
.gallery-section { padding: 60px 24px 80px; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px; max-width: 1200px; margin: 0 auto;
}

.gallery-item {
    position: relative; overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 4/3;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: all 0.4s;
}
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s;
}
.gallery-item::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,212,255,0.12));
    opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.gallery-item:hover { transform: scale(1.03); border-color: var(--neon-blue); box-shadow: 0 0 24px var(--glow-blue); }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover::after { opacity: 1; }

/* ===== Entry Cards (詳細版) ===== */
.entries-section { padding: 80px 24px 100px; }

.entries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px; max-width: 1000px; margin: 0 auto;
}

.entry-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 36px 28px 32px;
    text-align: center;
    transition: all 0.4s;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex; flex-direction: column; align-items: center;
}
.entry-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    border-radius: 16px 16px 0 0; transition: height 0.4s;
}
.card-member::before { background: linear-gradient(90deg, var(--neon-blue), var(--neon-cyan)); }
.card-admin::before { background: linear-gradient(90deg, var(--neon-purple), var(--neon-pink)); }
.card-parent::before { background: linear-gradient(90deg, var(--neon-cyan), var(--neon-blue)); }

.entry-card:hover {
    transform: translateY(-6px);
    border-color: var(--neon-blue);
    box-shadow: 0 8px 40px var(--glow-blue);
}
.entry-card:hover::before { height: 4px; }

.entry-icon {
    width: 64px; height: 64px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; margin-bottom: 20px;
}
.card-member .entry-icon { background: rgba(0,212,255,0.1); color: var(--neon-blue); }
.card-admin .entry-icon { background: rgba(168,85,247,0.1); color: var(--neon-purple); }
.card-parent .entry-icon { background: rgba(0,255,213,0.1); color: var(--neon-cyan); }

.entry-card h3 {
    font-size: 1.15rem; font-weight: 700;
    letter-spacing: 2px; margin-bottom: 10px;
}
.entry-card p {
    color: var(--text-dim); font-size: 0.9rem;
    line-height: 1.6; margin-bottom: 24px; flex: 1;
}

.entry-card .btn-enter {
    padding: 10px 28px; border-radius: 8px;
    font-size: 0.9rem; font-weight: 600;
    cursor: pointer; border: 1px solid;
    transition: all 0.3s; text-decoration: none;
}
.card-member .btn-enter { border-color: var(--neon-blue); color: var(--neon-blue); background: transparent; }
.card-member .btn-enter:hover { background: var(--neon-blue); color: var(--bg-void); box-shadow: 0 0 20px var(--glow-blue); }
.card-admin .btn-enter { border-color: var(--neon-purple); color: var(--neon-purple); background: transparent; }
.card-admin .btn-enter:hover { background: var(--neon-purple); color: #fff; box-shadow: 0 0 20px var(--glow-purple); }
.card-parent .btn-enter { border-color: var(--neon-cyan); color: var(--neon-cyan); background: transparent; }
.card-parent .btn-enter:hover { background: var(--neon-cyan); color: var(--bg-void); box-shadow: 0 0 20px rgba(0,255,213,0.3); }

.entries-guide-callout {
    max-width: 1100px;
    margin: 1.5rem auto 0;
    padding: 1.4rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    text-decoration: none;
    color: inherit;
    border-radius: 20px;
    border: 1px solid rgba(255, 196, 102, 0.2);
    background: linear-gradient(135deg, rgba(255, 196, 102, 0.1), rgba(255, 255, 255, 0.02));
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.entries-guide-callout:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 196, 102, 0.36);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.24), 0 0 24px rgba(255, 196, 102, 0.12);
}

.entries-guide-copy {
    max-width: 760px;
}

.entries-guide-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.55rem;
    color: #ffe8b5;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
}

.entries-guide-callout h3 {
    margin: 0;
    font-size: 1.3rem;
    letter-spacing: 0.04em;
}

.entries-guide-callout p {
    margin: 0.55rem 0 0;
    color: var(--text-dim);
    line-height: 1.75;
}

.entries-guide-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.85rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 196, 102, 0.28);
    color: #ffe8b5;
    font-weight: 700;
    white-space: nowrap;
}

/* ===== Footer ===== */
.landing-footer {
    text-align: center; padding: 40px 24px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-dim); font-size: 0.85rem;
}
.landing-footer .footer-line {
    width: 40px; height: 2px; margin: 0 auto 16px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    border-radius: 2px;
}

/* ===== Animations ===== */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.reveal { opacity: 0; transform: translateY(40px); transition: all 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .landing-nav { padding: 10px 16px; }
    .nav-links { display: none; }
    .hero { padding: 90px 20px 50px; min-height: auto; }
    .hero-logo { max-width: 60vw; }
    .hero h1 { font-size: 1.6rem; letter-spacing: 3px; }
    .hero-entries { flex-direction: column; width: 100%; max-width: 320px; }
    .entry-pill { width: 100%; justify-content: center; padding: 14px 24px; }
    .guide-spotlight { grid-template-columns: 1fr; text-align: left; }
    .guide-spotlight-action { justify-content: flex-start; }
    .calendar-section { padding: 56px 18px 64px; }
    .calendar-shell { grid-template-columns: 1fr; }
    .calendar-panel,
    .upcoming-panel { padding: 18px; border-radius: 20px; }
    .calendar-panel-head { flex-direction: column; align-items: stretch; }
    .calendar-head-actions { justify-content: space-between; }
    .calendar-day { min-height: 54px; padding: 8px; border-radius: 12px; }
    .calendar-day span { font-size: 0.98rem; }
    .calendar-day small { min-width: 20px; height: 20px; font-size: 0.72rem; }
    .upcoming-card { grid-template-columns: 78px 1fr; padding: 12px; }
    .entries-grid { grid-template-columns: 1fr; }
    .entries-guide-callout { flex-direction: column; align-items: flex-start; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

@media (max-width: 480px) {
    .calendar-weekdays,
    .calendar-grid-month { gap: 5px; }
    .calendar-day { min-height: 46px; padding: 6px; }
    .calendar-day small { align-self: center; }
    .upcoming-card { grid-template-columns: 1fr; }
    .upcoming-date { min-height: 58px; }
    .upcoming-meta-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .hero h1 { letter-spacing: 2px; }
}

/* ===== Warm Institutional Theme Override =====
 * Keeps the existing homepage layout, photos, buttons, and JS behavior.
 */
:root {
    --bg-void: #fff7ed;
    --bg-deep: #ffedd5;
    --bg-panel: rgba(255, 255, 255, 0.82);
    --neon-blue: #c2410c;
    --neon-cyan: #f59e0b;
    --neon-purple: #b45309;
    --neon-pink: #dc2626;
    --glow-blue: rgba(194, 65, 12, 0.16);
    --glow-purple: rgba(180, 83, 9, 0.14);
    --glass-border: rgba(194, 65, 12, 0.18);
    --glass-bg: rgba(255, 255, 255, 0.78);
    --text-bright: #1f2937;
    --text-dim: #6b5f55;
    --warm-red: #c2410c;
    --warm-red-dark: #9a3412;
    --warm-gold: #f59e0b;
    --warm-cream: #fff7ed;
    --warm-card: rgba(255, 255, 255, 0.86);
    --warm-ink: #111827;
    --warm-muted: #6b5f55;
}

body {
    background:
        radial-gradient(circle at 12% 12%, rgba(245, 158, 11, 0.22), transparent 30%),
        radial-gradient(circle at 86% 10%, rgba(220, 38, 38, 0.11), transparent 28%),
        linear-gradient(180deg, #fff7ed 0%, #fff1df 48%, #fffaf4 100%);
    color: var(--text-bright);
}

#particleCanvas {
    opacity: 0.35;
}

.scan-line {
    background:
        linear-gradient(90deg, rgba(194, 65, 12, 0.035) 1px, transparent 1px),
        linear-gradient(0deg, rgba(245, 158, 11, 0.028) 1px, transparent 1px);
    background-size: 72px 72px;
    opacity: 0.55;
}

.glow-orb-1 {
    background: rgba(245, 158, 11, 0.22);
}

.glow-orb-2 {
    background: rgba(220, 38, 38, 0.12);
}

.landing-nav {
    background: rgba(255, 247, 237, 0.82);
    border-bottom-color: rgba(194, 65, 12, 0.14);
    box-shadow: 0 10px 30px rgba(154, 52, 18, 0.08);
}

.landing-nav.scrolled {
    background: rgba(255, 255, 255, 0.94);
}

.nav-logo-img {
    filter: drop-shadow(0 8px 18px rgba(154, 52, 18, 0.08));
}

.nav-links a {
    color: rgba(68, 64, 60, 0.82);
}

.nav-links a:hover {
    color: var(--warm-red);
    text-shadow: none;
}

.hero {
    background:
        linear-gradient(180deg, rgba(255, 247, 237, 0.18), rgba(255, 255, 255, 0.36)),
        radial-gradient(circle at 50% 16%, rgba(245, 158, 11, 0.14), transparent 32%);
}

.hero-logo {
    filter: drop-shadow(0 16px 30px rgba(154, 52, 18, 0.12));
}

.hero-badge {
    border-color: rgba(22, 163, 74, 0.2);
    background: rgba(255, 255, 255, 0.78);
    color: #166534;
    box-shadow: 0 12px 28px rgba(22, 101, 52, 0.08);
}

.hero-badge .dot {
    background: #22c55e;
}

.hero h1 {
    background: linear-gradient(135deg, #9a3412 0%, #dc2626 48%, #f59e0b 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero .subtitle {
    color: rgba(68, 64, 60, 0.86);
}

.entry-pill {
    box-shadow: 0 14px 30px rgba(154, 52, 18, 0.12);
}

.entry-pill::before {
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.36), transparent);
}

.entry-pill-member,
.entry-pill-parent {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 247, 237, 0.76));
    border-color: rgba(194, 65, 12, 0.26);
    color: var(--warm-red-dark);
}

.entry-pill-member:hover,
.entry-pill-parent:hover {
    background: linear-gradient(135deg, rgba(255, 247, 237, 0.98), rgba(254, 243, 199, 0.9));
    border-color: rgba(194, 65, 12, 0.44);
    box-shadow: 0 18px 36px rgba(154, 52, 18, 0.18);
}

.entry-pill-admin {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(255, 255, 255, 0.72));
    border-color: rgba(180, 83, 9, 0.26);
    color: #92400e;
}

.guide-spotlight,
.entries-guide-callout {
    color: var(--warm-ink);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(254, 243, 199, 0.7)),
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 44%);
    border-color: rgba(194, 65, 12, 0.16);
    box-shadow: 0 18px 42px rgba(154, 52, 18, 0.12);
}

.guide-spotlight:hover,
.entries-guide-callout:hover {
    border-color: rgba(194, 65, 12, 0.3);
    box-shadow: 0 22px 46px rgba(154, 52, 18, 0.16);
}

.guide-spotlight-tag,
.entries-guide-eyebrow,
.guide-spotlight-action,
.entries-guide-link {
    color: var(--warm-red-dark);
}

.guide-spotlight-tag {
    background: rgba(245, 158, 11, 0.14);
}

.guide-spotlight-copy,
.entries-guide-callout p {
    color: var(--warm-muted);
}

.section-title h2 {
    color: var(--warm-red-dark);
    text-shadow: none;
}

.section-title .line,
.landing-footer .footer-line {
    background: linear-gradient(90deg, #dc2626, #f59e0b);
}

.section-title p {
    color: var(--warm-muted);
}

.calendar-panel,
.upcoming-panel,
.entry-card {
    border-color: rgba(194, 65, 12, 0.16);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 247, 237, 0.78)),
        rgba(255, 255, 255, 0.78);
    box-shadow: 0 24px 60px rgba(154, 52, 18, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.calendar-panel::before,
.upcoming-panel::before {
    background:
        radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.18), transparent 34%),
        linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.5) 45%, transparent 70%);
}

.calendar-kicker {
    color: var(--warm-red);
}

.calendar-count-badge,
.calendar-reset-btn {
    border-color: rgba(194, 65, 12, 0.2);
    color: var(--warm-red-dark);
    background: rgba(254, 243, 199, 0.6);
}

.calendar-month-controls {
    border-color: rgba(194, 65, 12, 0.14);
    background: rgba(255, 255, 255, 0.68);
}

.calendar-month-controls button {
    color: var(--warm-red-dark);
    background: rgba(245, 158, 11, 0.12);
}

.calendar-month-controls button:hover {
    color: #fff;
    background: var(--warm-red);
}

.calendar-weekdays span {
    color: rgba(68, 64, 60, 0.58);
}

.calendar-day {
    border-color: rgba(194, 65, 12, 0.12);
    background: rgba(255, 255, 255, 0.72);
    color: rgba(31, 41, 55, 0.9);
}

.calendar-day:hover {
    border-color: rgba(194, 65, 12, 0.32);
    background: rgba(255, 247, 237, 0.92);
}

.calendar-day small {
    background: var(--warm-red);
    color: #fff;
    box-shadow: 0 10px 18px rgba(194, 65, 12, 0.2);
}

.calendar-day.is-today {
    border-color: rgba(245, 158, 11, 0.68);
    box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.26);
}

.calendar-day.has-event {
    border-color: rgba(194, 65, 12, 0.36);
    background:
        linear-gradient(135deg, rgba(254, 243, 199, 0.8), rgba(255, 237, 213, 0.56)),
        rgba(255, 255, 255, 0.78);
}

.calendar-day.has-event:hover,
.calendar-day.has-event.is-selected {
    border-color: rgba(194, 65, 12, 0.68);
    box-shadow: 0 16px 30px rgba(154, 52, 18, 0.14);
}

.calendar-day.is-selected {
    border-color: rgba(194, 65, 12, 0.72);
    background:
        linear-gradient(135deg, rgba(251, 146, 60, 0.26), rgba(254, 243, 199, 0.72)),
        rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 0 0 1px rgba(194, 65, 12, 0.16), 0 16px 30px rgba(154, 52, 18, 0.12);
}

.upcoming-card {
    border-color: rgba(194, 65, 12, 0.12);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 10px 24px rgba(154, 52, 18, 0.08);
}

.upcoming-date {
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.92), rgba(255, 237, 213, 0.78));
    border-color: rgba(245, 158, 11, 0.26);
}

.upcoming-date strong,
.upcoming-meta-item i,
.calendar-empty i {
    color: var(--warm-red);
}

.upcoming-date span,
.upcoming-detail p,
.upcoming-meta-item span {
    color: rgba(68, 64, 60, 0.66);
}

.upcoming-title-row h4,
.calendar-empty strong,
.upcoming-meta-item strong {
    color: var(--warm-ink);
}

.upcoming-title-row span {
    color: var(--warm-red-dark);
    background: rgba(254, 243, 199, 0.78);
    border-color: rgba(245, 158, 11, 0.24);
}

.upcoming-meta-item {
    background: rgba(255, 247, 237, 0.72);
    border-color: rgba(194, 65, 12, 0.1);
}

.calendar-loading,
.calendar-empty {
    color: var(--warm-muted);
    border-color: rgba(194, 65, 12, 0.18);
    background: rgba(255, 255, 255, 0.62);
}

.calendar-action {
    color: #fff;
    background: linear-gradient(135deg, #dc2626, #f59e0b);
    box-shadow: 0 14px 30px rgba(194, 65, 12, 0.2);
}

.calendar-action:hover {
    color: #fff;
    box-shadow: 0 18px 36px rgba(194, 65, 12, 0.25);
}

.gallery-item {
    border-color: rgba(194, 65, 12, 0.18);
    box-shadow: 0 12px 26px rgba(154, 52, 18, 0.1);
}

.gallery-item img {
    filter: saturate(1.05) brightness(1.05) contrast(0.98);
}

.gallery-item::after {
    background: linear-gradient(180deg, transparent 46%, rgba(194, 65, 12, 0.18));
}

.gallery-item:hover {
    border-color: rgba(194, 65, 12, 0.46);
    box-shadow: 0 18px 36px rgba(154, 52, 18, 0.18);
}

.entry-card:hover {
    border-color: rgba(194, 65, 12, 0.36);
    box-shadow: 0 18px 42px rgba(154, 52, 18, 0.16);
}

.card-member::before,
.card-parent::before {
    background: linear-gradient(90deg, #dc2626, #f59e0b);
}

.card-admin::before {
    background: linear-gradient(90deg, #b45309, #dc2626);
}

.card-member .entry-icon,
.card-parent .entry-icon,
.card-admin .entry-icon {
    background: rgba(254, 243, 199, 0.78);
    color: var(--warm-red);
}

.entry-card p {
    color: var(--warm-muted);
}

.card-member .btn-enter,
.card-parent .btn-enter,
.card-admin .btn-enter {
    border-color: rgba(194, 65, 12, 0.34);
    color: var(--warm-red-dark);
    background: rgba(255, 255, 255, 0.56);
}

.card-member .btn-enter:hover,
.card-parent .btn-enter:hover,
.card-admin .btn-enter:hover {
    background: linear-gradient(135deg, #dc2626, #f59e0b);
    color: #fff;
    box-shadow: 0 12px 24px rgba(194, 65, 12, 0.2);
}

.entries-guide-link {
    border-color: rgba(194, 65, 12, 0.22);
    background: rgba(255, 255, 255, 0.5);
}

.landing-footer {
    border-top-color: rgba(194, 65, 12, 0.14);
    color: rgba(68, 64, 60, 0.72);
}
