/* ===================================================================
   Eckersley Family Lightshow — site styles
   Dark "night show" theme by default, light theme via toggle.
   Bulb palette pulled from the EFLS logo.
   =================================================================== */

:root {
    --bulb-yellow: #ffc72c;
    --bulb-green:  #2eb85c;
    --bulb-red:    #e5382e;
    --bulb-blue:   #2f7fe0;
    --bulb-purple: #8e44e0;

    /* Dark (default) theme — night sky */
    --bg: #0b1026;
    --bg-elevated: #141a38;
    --bg-card: #181f45;
    --text: #eef1fb;
    --text-muted: #a8b0d3;
    --border: #2a3260;
    --accent: var(--bulb-yellow);
    --nav-bg: rgba(11, 16, 38, 0.85);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

body.light-mode {
    --bg: #f5f6fb;
    --bg-elevated: #ffffff;
    --bg-card: #ffffff;
    --text: #1d2340;
    --text-muted: #5a6285;
    --border: #dde1f0;
    --accent: #c8102e;
    --nav-bg: rgba(255, 255, 255, 0.88);
    --shadow: 0 8px 24px rgba(29, 35, 64, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Fredoka", "Segoe UI", system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
}

/* ------------------------------------------------------------------
   String of lights along the top edge
   ------------------------------------------------------------------ */
.light-string {
    display: flex;
    justify-content: space-around;
    padding: 4px 0 0;
    border-top: 3px solid #123018;
    background: var(--bg);
}

.bulb {
    width: 12px;
    height: 18px;
    border-radius: 50% 50% 45% 45%;
    animation: twinkle 1.6s ease-in-out infinite;
}

.bulb.yellow { background: var(--bulb-yellow); box-shadow: 0 0 10px var(--bulb-yellow); }
.bulb.green  { background: var(--bulb-green);  box-shadow: 0 0 10px var(--bulb-green);  animation-delay: 0.3s; }
.bulb.red    { background: var(--bulb-red);    box-shadow: 0 0 10px var(--bulb-red);    animation-delay: 0.6s; }
.bulb.blue   { background: var(--bulb-blue);   box-shadow: 0 0 10px var(--bulb-blue);   animation-delay: 0.9s; }
.bulb.purple { background: var(--bulb-purple); box-shadow: 0 0 10px var(--bulb-purple); animation-delay: 1.2s; }

@keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
    .bulb { animation: none; }
    html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------------
   Navigation
   ------------------------------------------------------------------ */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 1.2rem;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
}

.site-nav nav {
    margin-left: auto;
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.site-nav nav a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-weight: 500;
    transition: color 0.2s, background 0.2s;
}

.site-nav nav a:hover {
    color: var(--text);
    background: var(--bg-card);
}

#theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 1.05rem;
    padding: 0.35rem 0.6rem;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s;
}

#theme-toggle:hover { transform: scale(1.12); }

/* ------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------ */
.hero {
    text-align: center;
    padding: 4rem 1.5rem 4.5rem;
    background:
        radial-gradient(ellipse 70% 55% at 50% 0%, rgba(47, 127, 224, 0.18), transparent),
        radial-gradient(ellipse 45% 40% at 20% 25%, rgba(142, 68, 224, 0.12), transparent),
        radial-gradient(ellipse 45% 40% at 80% 25%, rgba(229, 56, 46, 0.10), transparent);
}

body.light-mode .hero {
    background:
        radial-gradient(ellipse 70% 55% at 50% 0%, rgba(47, 127, 224, 0.10), transparent),
        radial-gradient(ellipse 45% 40% at 20% 25%, rgba(142, 68, 224, 0.07), transparent),
        radial-gradient(ellipse 45% 40% at 80% 25%, rgba(229, 56, 46, 0.06), transparent);
}

.hero-logo {
    width: min(220px, 55vw);
    height: auto;
    filter: drop-shadow(0 0 25px rgba(255, 199, 44, 0.35));
}

.hero h1 {
    font-size: clamp(2rem, 5.5vw, 3.4rem);
    font-weight: 700;
    margin: 1rem 0 0.5rem;
    letter-spacing: 0.5px;
}

.glow {
    background: linear-gradient(90deg,
        var(--bulb-yellow), var(--bulb-green), var(--bulb-red),
        var(--bulb-blue), var(--bulb-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tagline {
    font-size: clamp(1.05rem, 2.5vw, 1.3rem);
    color: var(--text-muted);
    max-width: 34em;
    margin: 0 auto 2rem;
}

.hero-actions {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------ */
.btn {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-family: inherit;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
    cursor: pointer;
}

.btn-primary {
    background: var(--bulb-red);
    color: #fff;
    box-shadow: 0 4px 16px rgba(229, 56, 46, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 56, 46, 0.55);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
}

.btn-ghost:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* ------------------------------------------------------------------
   Sections
   ------------------------------------------------------------------ */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

h2 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.mini-bulb {
    display: inline-block;
    width: 14px;
    height: 20px;
    border-radius: 50% 50% 45% 45%;
    flex-shrink: 0;
}

.mini-bulb.red    { background: var(--bulb-red);    box-shadow: 0 0 12px var(--bulb-red); }
.mini-bulb.green  { background: var(--bulb-green);  box-shadow: 0 0 12px var(--bulb-green); }
.mini-bulb.blue   { background: var(--bulb-blue);   box-shadow: 0 0 12px var(--bulb-blue); }
.mini-bulb.purple { background: var(--bulb-purple); box-shadow: 0 0 12px var(--bulb-purple); }

.section-sub {
    color: var(--text-muted);
    margin: 0 0 1.5rem;
}

/* ------------------------------------------------------------------
   Cards
   ------------------------------------------------------------------ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s, border-color 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.card-icon { font-size: 2rem; margin-bottom: 0.4rem; }

.card h3 { margin: 0 0 0.4rem; font-weight: 600; }

.card p { margin: 0; color: var(--text-muted); }

.card .map-link {
    color: inherit;
    text-decoration-color: var(--accent);
    text-underline-offset: 3px;
}

.card .map-link:hover strong { color: var(--accent); }

.card .fm {
    color: var(--accent);
    font-size: 1.15em;
    white-space: nowrap;
}

.download-card .card-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 1.2rem;
}

/* ------------------------------------------------------------------
   Playlist
   ------------------------------------------------------------------ */
.playlist {
    list-style: none;
    counter-reset: track;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0.6rem;
}

.playlist li {
    counter-increment: track;
    display: flex;
    align-items: baseline;
    gap: 0.7rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.7rem 1rem;
    transition: transform 0.15s, border-color 0.15s;
}

.playlist li:hover {
    transform: translateX(4px);
    border-color: var(--bulb-green);
}

.playlist li::before {
    content: counter(track, decimal-leading-zero);
    font-weight: 700;
    color: var(--accent);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.playlist .song { font-weight: 600; }

.playlist .artist {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-left: auto;
    text-align: right;
    flex-shrink: 0;
}

/* ------------------------------------------------------------------
   Gallery
   ------------------------------------------------------------------ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.media-card {
    margin: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.media-card img,
.media-card video {
    display: block;
    width: 100%;
    height: auto;
    background: #000;
}

.media-card figcaption {
    padding: 0.7rem 1rem;
    color: var(--text-muted);
    font-size: 0.92rem;
    text-align: center;
}

.media-card-full img {
    height: 100%;
    object-fit: cover;
}

.stream-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    border-style: dashed;
    border-width: 2px;
}

.stream-box {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.stream-box .stream-icon {
    display: block;
    font-size: 3rem;
    margin-bottom: 0.8rem;
}

.stream-box p {
    color: var(--text-muted);
    margin: 0.9rem 0 0;
}

/* ------------------------------------------------------------------
   Hub landing page
   ------------------------------------------------------------------ */
.hero-hub { padding: 5rem 1.5rem; }

.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.hub-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow);
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.hub-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
}

.hub-thumb {
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse 80% 90% at 50% 100%, rgba(47, 127, 224, 0.25), transparent),
        #0d1330;
}

.hub-thumb img { max-height: 150px; width: auto; }

.hub-thumb-prints {
    background:
        radial-gradient(ellipse 80% 90% at 50% 100%, rgba(217, 127, 22, 0.22), transparent),
        #0d1330;
}

.hub-thumb-prints img { max-height: 150px; width: auto; }

body.light-mode .hub-thumb { background-color: #e8ebf7; }

body.light-mode .hub-thumb-prints { background-color: #14161c; }

.hub-body { padding: 1.4rem 1.6rem 1.6rem; }

.hub-body h2 {
    font-size: 1.35rem;
    margin: 0 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.hub-body p { color: var(--text-muted); margin: 0 0 1rem; }

.hub-link { font-weight: 600; color: var(--accent); }

.badge {
    display: inline-block;
    background: var(--bulb-yellow);
    color: #3a2b00;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    vertical-align: middle;
}

.badge-big { font-size: 0.85rem; padding: 0.4rem 1rem; }

/* ------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */
footer {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--bg-elevated);
    margin-top: 2rem;
}

footer p { margin: 0.3rem 0; }

.footer-note { color: var(--text-muted); font-size: 0.92rem; }

/* ------------------------------------------------------------------
   Small screens
   ------------------------------------------------------------------ */
@media (max-width: 640px) {
    .brand span { display: none; }
    .site-nav nav a { padding: 0.35rem 0.55rem; font-size: 0.92rem; }
    .playlist .artist { font-size: 0.8rem; }
}
