/* Matariki Stars — Site layout, navigation, typography for content pages
   Companion to scene.css. */

/* ─── CONTAINER ─── */
.container {
    position: relative; z-index: 9;
    max-width: 720px;
    margin: 0 auto;
    padding: 28px 24px 290px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.container.wide { max-width: 1100px; }
.container.kiosk { max-width: none; padding: 0; }

/* ─── HEADER / NAV ─── */
.site-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(201,149,30,0.18);
    margin-bottom: 4px;
}

.site-mark {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-mark img { width: 28px; height: 28px; opacity: 0.9; }

.site-nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.site-nav a {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.62rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}
.site-nav a:hover, .site-nav a.active { color: var(--gold-bright); }

/* ─── TYPOGRAPHY ─── */
.star-cluster-line {
    text-align: center;
    font-size: clamp(20px, 2.5vw, 28px);
    letter-spacing: 18px;
    color: var(--star-blue);
    filter: drop-shadow(0 0 12px rgba(140,190,255,1)) drop-shadow(0 0 32px rgba(100,160,255,0.65));
    padding-right: 18px;
}

h1, h2, h3, h4 {
    font-family: 'Cinzel', Georgia, serif;
    color: #ffffff;
    letter-spacing: 1.5px;
    line-height: 1.25;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 700;
    text-align: center;
    text-shadow:
        0 0 60px rgba(100,160,255,0.25),
        0 2px 4px rgba(0,0,0,0.5);
}

h2 {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 700;
    color: var(--gold-bright);
}

h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.tagline {
    text-align: center;
    font-size: 0.7rem;
    color: var(--gold);
    letter-spacing: 7px;
    text-transform: uppercase;
    font-family: 'Cinzel', Georgia, serif;
}

.subtitle, p.lede {
    text-align: center;
    color: var(--text-primary);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    line-height: 1.85;
    font-weight: 300;
    font-style: italic;
}

p { color: var(--text-primary); font-weight: 300; }

.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 6px 0;
}
.divider-line { flex: 1; height: 1px; background: linear-gradient(to right, transparent, rgba(201,149,30,0.5), transparent); }
.divider-dot { color: var(--gold); font-size: 7px; opacity: 0.7; }

.badge {
    align-self: center;
    display: inline-block;
    border: 1px solid rgba(201,149,30,0.45);
    color: var(--gold);
    font-size: 0.66rem;
    padding: 7px 22px;
    border-radius: 40px;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    font-family: 'Cinzel', Georgia, serif;
    background: rgba(201,149,30,0.05);
}

/* ─── BUTTONS ─── */
.btn-primary, button.btn-primary, a.btn-primary {
    display: inline-block;
    background: linear-gradient(160deg, #1d5298 0%, #0f3272 55%, #0a245a 100%);
    color: #ffffff;
    border: 1px solid rgba(130,175,255,0.38);
    padding: 18px 36px;
    border-radius: 60px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
    box-shadow:
        0 8px 36px rgba(14,72,210,0.45),
        0 1px 0 rgba(255,255,255,0.12) inset,
        0 -1px 0 rgba(0,0,0,0.25) inset;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: 'Cinzel', Georgia, serif;
    align-self: center;
}
.btn-primary:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow:
        0 14px 48px rgba(14,72,220,0.58),
        0 1px 0 rgba(255,255,255,0.15) inset;
    border-color: rgba(160,205,255,0.52);
}

.btn-secondary, a.btn-secondary {
    align-self: center;
    background: transparent;
    color: rgba(201,149,30,0.7);
    border: 1px solid rgba(201,149,30,0.28);
    padding: 12px 32px;
    border-radius: 60px;
    font-size: 0.66rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: 'Cinzel', Georgia, serif;
}
.btn-secondary:hover {
    color: var(--gold-bright);
    border-color: rgba(201,149,30,0.52);
    background: rgba(201,149,30,0.06);
}

/* ─── CARDS / PANELS ─── */
.panel {
    background: rgba(4,12,32,0.6);
    border: 1px solid rgba(130,165,220,0.13);
    border-left: 3px solid rgba(201,149,30,0.55);
    border-radius: 0 18px 18px 0;
    padding: 22px 26px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.panel.glow {
    box-shadow: 0 0 0 1px rgba(201,149,30,0.08) inset, 0 20px 60px rgba(0,0,0,0.3);
}

.karakia {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-weight: 300;
    font-size: 1.15rem;
    line-height: 2;
    white-space: pre-line;
    color: var(--text-primary);
    padding: 8px 4px 14px;
    text-shadow: 0 0 22px rgba(140,190,255,0.18);
}

.translation {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 300;
    font-size: 1.05rem;
    line-height: 1.85;
    white-space: pre-line;
    color: var(--text-secondary);
    border-top: 1px dashed rgba(201,149,30,0.22);
    padding-top: 14px;
    margin-top: 6px;
}

.description {
    font-size: 1.08rem;
    line-height: 1.9;
    color: var(--text-primary);
    font-weight: 300;
}

/* ─── STAR CHIP / DOMAIN ─── */
.star-domain {
    align-self: center;
    font-size: 0.68rem;
    color: rgba(244,238,223,0.65);
    text-transform: uppercase;
    letter-spacing: 4px;
    padding: 6px 20px;
    border: 1px solid rgba(201,149,30,0.28);
    border-radius: 40px;
    font-family: 'Cinzel', Georgia, serif;
}

/* ─── CLUSTER GRID (on /whetu) ─── */
.cluster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}
.star-tile {
    background: rgba(4,12,32,0.55);
    border: 1px solid rgba(130,165,220,0.13);
    border-radius: 18px;
    padding: 22px 22px 18px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
    position: relative;
    overflow: hidden;
}
.star-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(168,204,255,0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}
.star-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(201,149,30,0.45);
    box-shadow: 0 12px 36px rgba(14,72,210,0.3);
}
.star-tile:hover::before { opacity: 1; }

.star-tile .icon {
    font-size: 36px;
    filter: drop-shadow(0 0 14px rgba(140,190,255,0.6));
}
.star-tile .star-tile-name {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gold-bright);
    letter-spacing: 1px;
    margin-top: 6px;
}
.star-tile .star-tile-domain {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.62rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 4px;
}

/* Pōhutukawa tile — restrained */
.star-tile.pohutukawa {
    border-left: 3px solid rgba(138,36,24,0.65);
}
.star-tile.pohutukawa .star-tile-name { color: var(--text-primary); }

/* ─── ATTRIBUTION FOOTER ─── */
.attribution {
    margin-top: 28px;
    padding: 18px 22px;
    border-top: 1px solid rgba(201,149,30,0.18);
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.65;
    font-style: italic;
    text-align: center;
}
.attribution strong { color: var(--gold); font-style: normal; }

/* ─── AUDIO STUB ─── */
.audio-stub {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: rgba(4,12,32,0.6);
    border: 1px solid rgba(201,149,30,0.22);
    border-radius: 14px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}
.audio-stub .play {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(168,204,255,0.12);
    border: 1px solid rgba(168,204,255,0.35);
    display: flex; align-items: center; justify-content: center;
    color: var(--star-blue);
    font-size: 18px;
}

/* ─── QR DISPLAY (kiosk + acknowledgements) ─── */
.qr-card {
    background: rgba(244,238,223,0.95);
    border-radius: 18px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.qr-card img { width: 100%; max-width: 200px; height: auto; }
.qr-card .qr-label {
    font-family: 'Cinzel', Georgia, serif;
    color: var(--navy-deep);
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
}

/* ─── KIOSK ─── */
.kiosk-frame {
    position: relative; z-index: 9;
    width: 100vw; height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    gap: 24px;
}
.kiosk-tile {
    font-family: 'Cinzel', Georgia, serif;
    font-size: clamp(2rem, 6vw, 4.8rem);
    color: var(--gold-bright);
    letter-spacing: 4px;
    text-align: center;
    text-shadow: 0 0 60px rgba(224,176,48,0.6);
}
.kiosk-sub {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    color: var(--text-primary);
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    text-align: center;
    max-width: 800px;
    line-height: 1.7;
}
.kiosk-qr {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.kiosk-qr img { width: 180px; height: 180px; background: var(--text-primary); padding: 8px; border-radius: 12px; }
.kiosk-qr .kiosk-qr-label {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.72rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* ─── QUIZ specific (shrunken from Jay's) ─── */
.progress-wrap { display: flex; flex-direction: column; gap: 10px; }
.progress-meta { display: flex; justify-content: space-between; }
.progress-label {
    font-size: 0.66rem;
    color: rgba(201,149,30,0.6);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-family: 'Cinzel', Georgia, serif;
}
.progress-track {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    height: 2px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1d5298, var(--gold));
    border-radius: 10px;
    transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 0 10px rgba(201,149,30,0.55);
}
.question-text {
    font-family: 'Cinzel', Georgia, serif;
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.6;
    letter-spacing: 0.3px;
}
.options { display: flex; flex-direction: column; gap: 10px; }
.option {
    background: rgba(5,15,40,0.55);
    border: 1px solid rgba(130,165,220,0.13);
    border-left: 3px solid transparent;
    border-radius: 14px;
    padding: 16px 20px;
    cursor: pointer;
    font-size: 1.05rem;
    color: var(--text-primary);
    transition: all 0.22s cubic-bezier(0.16,1,0.3,1);
    text-align: left;
    line-height: 1.5;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    backdrop-filter: blur(8px);
}
.option:hover {
    background: rgba(16,42,110,0.62);
    border-left-color: var(--gold);
    transform: translateX(8px);
    box-shadow: 0 6px 24px rgba(12,50,170,0.22);
}
.option.selected {
    background: rgba(16,42,110,0.68);
    border-left-color: var(--gold-bright);
}

/* ─── RESULT (quiz/<star>) ─── */
.star-reveal {
    font-size: 80px;
    line-height: 1;
    text-align: center;
    filter: drop-shadow(0 0 20px rgba(140,190,255,0.85));
}
.you-are {
    text-align: center;
    font-size: 0.68rem;
    color: rgba(201,149,30,0.65);
    text-transform: uppercase;
    letter-spacing: 5px;
    font-family: 'Cinzel', Georgia, serif;
}
.star-name-big {
    font-family: 'Cinzel', Georgia, serif;
    font-size: clamp(2.4rem, 7vw, 3.8rem);
    font-weight: 900;
    color: var(--gold-bright);
    line-height: 1.1;
    letter-spacing: 2px;
    text-align: center;
    text-shadow:
        0 0 40px rgba(224,176,48,0.6),
        0 2px 4px rgba(0,0,0,0.4);
}

/* ─── STAR SCRUBBER STRIP (top of star pages) ─── */
.star-strip {
    position: sticky;
    top: 0;
    z-index: 30;
    margin: 0 -24px 18px;
    padding: 16px 24px 22px;
    background: linear-gradient(180deg,
        rgba(0,8,20,0.92) 0%,
        rgba(0,8,20,0.75) 60%,
        rgba(0,8,20,0) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.star-strip::-webkit-scrollbar { display: none; }

.star-strip-inner {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 18px;
    min-height: 64px;
    padding: 0 18px;
    min-width: max-content;
    margin: 0 auto;
}

.star-strip-item {
    flex-shrink: 0;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center bottom;
    padding: 4px 6px;
    position: relative;
    min-width: 52px;
}

.star-strip-item .dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffffff 0%, var(--star-color, #a8ccff) 45%, transparent 80%);
    box-shadow:
        0 0 10px var(--star-color, #a8ccff),
        0 0 22px rgba(168,204,255,0.45);
    margin: 0 auto 6px;
    transition: box-shadow 0.22s ease;
}

.star-strip-item .name {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.55rem;
    letter-spacing: 1.5px;
    color: rgba(244, 238, 223, 0.55);
    text-transform: uppercase;
    transition: color 0.22s ease;
    white-space: nowrap;
}

.star-strip-item:hover .name,
.star-strip-item:focus .name {
    color: #ffffff;
}
.star-strip-item:hover .dot {
    box-shadow:
        0 0 18px var(--star-color, #a8ccff),
        0 0 40px rgba(224,176,48,0.6);
}

.star-strip-item.current .name {
    color: var(--gold-bright);
    font-weight: 700;
}
.star-strip-item.current .dot {
    box-shadow:
        0 0 16px var(--star-color, #a8ccff),
        0 0 36px rgba(224,176,48,0.55),
        inset 0 0 0 2px var(--gold-bright);
}
.star-strip-item.current::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gold-bright);
    box-shadow: 0 0 10px var(--gold-bright);
}

/* Pōhutukawa item — restrained, no glow shimmer in the strip */
.star-strip-item.pohutukawa .dot {
    box-shadow:
        0 0 6px rgba(138, 36, 24, 0.6),
        inset 0 0 0 1px rgba(244, 238, 223, 0.3);
}

@media (max-width: 640px) {
    .star-strip { margin: 0 -16px 14px; padding: 12px 16px 18px; }
    .star-strip-inner { gap: 12px; padding: 0 8px; }
    .star-strip-item { min-width: 44px; }
    .star-strip-item .name { font-size: 0.5rem; }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
    .site-nav { gap: 10px; }
    .site-nav a { font-size: 0.58rem; letter-spacing: 1.8px; }
    .container { padding: 20px 16px 290px; }
}
