/*
 * style.css — SITE-WIDE STYLES (used by every page)
 * COLORS: all the main colors are listed here; to re-theme, find & replace them in this file:
 *   page background #071a2e | cards #0a2038 | borders #14385c | accent cyan #12b5f2
 *   gold #f5a623 | announcement bar #1e78d4 | muted text #9db2c8 / #a9bcd0
 * (Inline colors also appear in script.js, shop.js, dashboard.js/css and merch.html.)
 * SECTIONS (search for the comment names): Header, Navigation, Hero, Support cards, Merch, About page,
 *   Footer, Schedule & Support, Membership feed, Auth forms, Hero banner image.
 * NOTE: .btn-card is defined twice on purpose-ish; the LATER rule wins. Edit the lower one for button looks.
 * Mobile layouts are in the @media blocks.
 */
/* Color Scheme & Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

body {
    background-color: #071a2e; /* Deep dark blue background */
    color: #ffffff;
}

/* Announcement Bar */
/* Blue strip at the very top of every page. */
.announcement-bar {
    background-color: #1e78d4;
    color: #ffffff;
    text-align: center;
    padding: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Header */
/* LAYOUT: three columns. Left (social icons) and right (currency, account, cart) take equal shares,
   and the logo sits in the middle column, so it stays centred even when the two sides are different widths. */
header {
    background-color: #071a2e;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    padding: 15px 30px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
header .header-left { justify-self: start; }                     /* social icons hug the left edge */
header .logo { justify-self: center; text-align: center; }       /* logo in the middle */
header .shop-tools, header .header-right, header .account-link { justify-self: end; }   /* tools hug the right edge */
.social-icons { display: flex; align-items: center; flex-wrap: wrap; }
/* Phones: three centred rows — logo, then social icons, then currency/account/cart. */
@media (max-width: 600px) {
    header { grid-template-columns: 1fr; gap: 10px; padding: 12px 16px; }
    header .logo { grid-row: 1; }
    header .header-left { grid-row: 2; justify-self: center; }
    header .shop-tools, header .header-right, header .account-link { grid-row: 3; justify-self: center; }
    .social-icons { justify-content: center; }
}

/* Social icons drawn in the page (inline SVG). 1em = they follow the link's font size; currentColor = the link colour. */
.si { width: 1.25em; height: 1.25em; fill: currentColor; vertical-align: middle; display: inline-block; }
.social-icons a:hover, .footer-right a:hover { color: #12b5f2; }

.social-icons a, .header-right a, .header-right span, .header-right i {
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    margin-right: 12px;
    font-weight: 600;
}

.logo {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 2px;
}

.logo-yellow { color: #f5a623; }
.logo-cyan { color: #12b5f2; }

/* Navigation */
/* Menu bar under the header. .active (see below) highlights the current page. */
.main-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 12px 0;
    background-color: #071a2e;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.main-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.main-nav a:hover {
    color: #12b5f2;
}

/* Hero Section */
/* CLEANUP: the old .hero-banner rule that was here (height 480px) was overridden by the rule further down,
   so it was removed. Its background colour is now kept in the rule below. */

/* General Layout */
/* Standard centered content wrapper (max 1100px). */
.content-section {
    max-width: 1100px;
    margin: 50px auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 35px;
}

.cyan-text {
    color: #12b5f2;
}

/* Grid Framework */
.cards-grid {
    display: grid;
    gap: 20px;
}

/* Column layouts: 3 and 2 columns. They collapse to 1 on phones (see @media at the bottom). */
.three-cols { grid-template-columns: repeat(3, 1fr); }
.two-cols { grid-template-columns: repeat(2, 1fr); }

/* Support Cards */
/* Base box used all over: support cards, login boxes, post cards. */
.card {
    background-color: #0a2038;
    border: 1px solid #14385c;
    border-radius: 6px;
    padding: 30px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.3s;
}

.card:hover {
    border-color: #12b5f2;
}

.support-card h3 {
    font-size: 15px;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.support-card p {
    font-size: 12px;
    color: #9db2c8;
    line-height: 1.5;
    margin-bottom: 25px;
}

.btn-card {
    display: block;
    border: 1px solid #12b5f2;
    color: #12b5f2;
    background-color: transparent;
    padding: 10px;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    border-radius: 3px;
    transition: 0.2s;
}

.btn-card:hover {
    background-color: #12b5f2;
    color: #071a2e;
}

/* Merch Section */
/* Featured Merch tiles on the home page. */
.merch-item {
    text-align: left;
}

.merch-img-box {
    background-color: #0a2038;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
}

.merch-img-box img {
    width: 100%;
    display: block;
}

.merch-item h4 {
    font-size: 12px;
    color: #ffffff;
    font-weight: 600;
}

/* Stream Embed */
.stream-wrapper {
    text-align: center;
}

.unmute-notice {
    color: #12b5f2;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.stream-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border: 1.5px solid #12b5f2;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(18, 181, 242, 0.15);
}

.stream-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* About Section */
/* About cards on the home page. */
.about-card {
    padding: 0;
    overflow: hidden;
    text-align: left;
}

.about-img-box img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.about-content {
    padding: 20px;
}

.about-header {
    color: #12b5f2;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 10px;
}

.about-content p {
    font-size: 12px;
    color: #a9bcd0;
    line-height: 1.6;
}

/* Responsive Scaling for Smaller Screens */
/* Tablets/phones: stack the grids into one column. */
@media (max-width: 850px) {
    .three-cols, .two-cols {
        grid-template-columns: 1fr;
    }
}
/* About Page Specific Styles */
/* About page (about.html) layout. */
.about-page-container {
    max-width: 1000px;
    margin: 50px auto;
    padding: 0 20px;
}

.about-page-title {
    text-align: center;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 2px;
    color: #ffffff;
}

.about-page-subtitle {
    text-align: center;
    font-size: 14px;
    color: #9db2c8;
    margin-top: 8px;
    margin-bottom: 50px;
}

.about-rows {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-row-card {
    background-color: #0a2038;
    border: 1px solid #14385c;
    border-radius: 8px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 40px;
    transition: border-color 0.3s;
}

.about-row-card:hover {
    border-color: #12b5f2;
}

.about-row-text {
    flex: 1;
}

.about-row-text h2 {
    font-size: 20px;
    color: #ffffff;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.about-row-text p {
    font-size: 13px;
    color: #a9bcd0;
    line-height: 1.7;
    margin-bottom: 15px;
}

.about-row-text p:last-child {
    margin-bottom: 0;
}

.about-row-img {
    width: 320px;
    flex-shrink: 0;
}

.about-row-img img {
    width: 100%;
    border-radius: 6px;
    display: block;
}

.main-nav a.active {
    color: #12b5f2;
}

/* Footer Styling */
/* Footer bar. */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #071a2e;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 80px;
}

.footer-left a, .footer-left span {
    color: #9db2c8;
    text-decoration: none;
    font-size: 11px;
    margin-right: 15px;
}

.footer-right a {
    color: #ffffff;
    margin-left: 15px;
    font-size: 14px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .about-row-card {
        flex-direction: column;
        padding: 20px;
    }
    
    .about-row-img {
        width: 100%;
    }
}
/* Schedule & Support Additions */
.subtitle-text { color: #a9bcd0; font-size: 13px; margin-bottom: 20px; }
.tip-box { background: #0a2038; border-left: 3px solid #f5a623; padding: 12px 20px; color: #d0dbe7; font-size: 12px; margin: 20px auto; max-width: 700px; text-align: left; }
.btn-discord { display: inline-block; background: #0c2440; border: 1px solid #16385a; color: #fff; padding: 12px 24px; font-weight: bold; text-decoration: none; font-size: 11px; margin-bottom: 30px; border-radius: 4px; }
.calendar-wrapper { border: 1px solid #12b5f2; border-radius: 8px; overflow: hidden; margin-top: 20px; }

/* Featured Support Card */
.featured-support-card { background: #081a2f; border: 1px solid #12b5f2; padding: 40px; margin-bottom: 30px; text-align: left; }
.perks-list { list-style: none; margin: 20px 0; }
.perks-list li { color: #a9bcd0; font-size: 13px; margin-bottom: 10px; }
.perks-list i { color: #f5a623; margin-right: 8px; }
.btn-yellow { background: #f5a623; color: #071a2e; border: none; padding: 12px 24px; font-weight: bold; font-size: 12px; cursor: pointer; border-radius: 4px; width: 100%; display: inline-block; text-align: center; text-decoration: none; }

/* Support Rows */
.support-links-list { display: flex; flex-direction: column; gap: 12px; }
.support-row-item { background: #0a2038; border: 1px solid #14385c; padding: 20px; text-decoration: none; display: flex; justify-content: space-between; align-items: center; border-radius: 6px; transition: border-color 0.2s; }
.support-row-item:hover { border-color: #12b5f2; }
.support-row-item h3 { color: #fff; font-size: 15px; margin-bottom: 4px; text-align: left; }
.support-row-item p { color: #9db2c8; font-size: 12px; text-align: left; }
.support-row-item i { color: #12b5f2; }

/* Membership Feed Layout */
/* Account page: feed on the left, login box on the right. */
.membership-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; text-align: left; }
.post-card { padding: 25px; margin-bottom: 20px; }
.post-date { color: #9db2c8; font-size: 11px; }
.post-card h2 { font-size: 18px; margin: 8px 0 15px 0; color: #fff; }
.post-img { width: 100%; border-radius: 6px; margin-bottom: 15px; }
.locked-banner { background: #081a2f; border: 1px dashed #12b5f2; padding: 30px; text-align: center; border-radius: 6px; margin-top: 15px; }
.locked-banner i { font-size: 24px; color: #12b5f2; margin-bottom: 10px; }
.auth-box { text-align: center; padding: 30px; }
.user-avatar-placeholder { width: 60px; height: 60px; background: #14385c; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 15px auto; font-size: 24px; color: #12b5f2; }
.login-subtext { font-size: 12px; color: #9db2c8; margin-top: 15px; }

@media (max-width: 768px) {
    .membership-layout { grid-template-columns: 1fr; }
}
.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

/* The rounded category buttons above the member feed. */
.filter-chip {
    background-color: #0a2038;
    border: 1px solid #14385c;
    color: #a9bcd0;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.2s ease;
}

.filter-chip:hover, .filter-chip.active {
    border-color: #12b5f2;
    color: #ffffff;
    background-color: #0d2a47;
}
/* Text boxes in login / signup forms. */
.auth-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    background-color: #071a2e;
    border: 1px solid #14385c;
    border-radius: 4px;
    color: #ffffff;
    font-size: 13px;
    box-sizing: border-box;
}

.auth-input:focus {
    outline: none;
    border-color: #12b5f2;
}

.auth-sub {
    font-size: 12px;
    color: #9db2c8;
    margin-bottom: 20px;
}

.auth-message {
    font-size: 12px;
    margin-top: 12px;
    min-height: 16px;
}

.btn-card {
    background-color: #0b2c4d;
    color: #ffffff;
    border: 1px solid #1a86d9;
    padding: 12px 20px;
    font-weight: 800;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    text-align: center;
}
/* BUTTON LOOK: this rule + the second .btn-card above it are the live styles (a later rule overrides an earlier one). */
.btn-card:hover { background-color: #12b5f2; color: #071a2e; }

/* Top accent edge on cards, like the reference design */
.support-card, .merch-card { border-top: 3px solid #12b5f2; }
/* Centers the login and signup boxes on the page. */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 20px;
}

.auth-box {
    background-color: #0a2038;
    border: 1px solid #14385c;
    border-radius: 8px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.auth-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    background-color: #071a2e;
    border: 1px solid #14385c;
    border-radius: 4px;
    color: #ffffff;
    font-size: 13px;
    box-sizing: border-box;
}

.auth-input:focus {
    outline: none;
    border-color: #12b5f2;
}

.auth-sub {
    font-size: 12px;
    color: #9db2c8;
    margin-bottom: 20px;
}

.auth-message {
    font-size: 12px;
    margin-top: 15px;
    min-height: 18px;
}

.login-subtext {
    font-size: 12px;
    color: #9db2c8;
    margin-top: 20px;
}
/* Home page photo banner. This is the ONLY .hero-banner rule now. Change the height here. */
.hero-banner {
    width: 100%;
    max-width: 1200px;          /* Never wider than 1200px on large screens */
    height: 420px;              /* Fixed banner height. Lower it to make the photo shorter. */
    margin: 0 auto;             /* Centres the banner on the page */
    overflow: hidden;           /* Crops any part of the photo that doesn't fit */
    border-radius: 4px;         /* Slightly rounded corners */
    background-color: #071a2e;  /* Dark blue shown while the photo loads (moved here from the removed rule) */
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fits and crops nicely without stretching */
    object-position: center; /* Keeps the center of your setup focused */
    display: block;
}

/* Form feedback boxes (login / signup / account). Set by showMsg() in script.js */
.auth-message.ok  { background: rgba(18,181,242,.12); border: 1px solid #12b5f2; color: #bfeaff; padding: 10px 12px; border-radius: 6px; font-size: 13px; line-height: 1.5; }
.auth-message.err { background: rgba(255,77,77,.12);  border: 1px solid #ff4d4d; color: #ffb3b3; padding: 10px 12px; border-radius: 6px; font-size: 13px; line-height: 1.5; }
.auth-message.info { color: #9db2c8; }
button:disabled { opacity: .6; cursor: not-allowed; }

/* Phones: let the 6 nav links wrap instead of pushing the page wider than the screen. */
@media (max-width: 480px) {
    .main-nav { flex-wrap: wrap; gap: 8px 16px; padding: 10px 12px; }
}

/* ---------- LIVE STREAM SECTION (home page, above Featured Merch). Shown by twitch.js only while live. ---------- */
.live-section { max-width: 1000px; margin: 0 auto; }
.live-head { text-align: center; }
.live-head .section-title { margin-top: 10px; }
.live-badge { display: inline-flex; align-items: center; gap: 8px; background: #e11d48; color: #fff; font-size: 11px; font-weight: 900; letter-spacing: 2px; padding: 5px 12px; border-radius: 999px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: live-pulse 1.4s ease-in-out infinite; }
@keyframes live-pulse { 50% { opacity: .3; } }
.live-sub { color: #9db2c8; font-size: 13px; margin: -6px 0 18px; }
/* 16:9 player box with a cyan glow. */
.live-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #0a2038; border: 1.5px solid #12b5f2; border-radius: 8px; overflow: hidden; box-shadow: 0 0 18px rgba(18,181,242,.2); }
.live-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.live-actions { display: flex; justify-content: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.live-btn { display: inline-block; padding: 11px 22px; border-radius: 6px; font-size: 13px; font-weight: 800; letter-spacing: .5px; text-decoration: none; cursor: pointer; background: #9146ff; color: #fff; border: 1px solid #9146ff; font-family: inherit; }
.live-btn:hover { filter: brightness(1.12); }
.live-btn.ghost { background: transparent; color: #9db2c8; border-color: #14385c; }
.live-btn.ghost:hover { color: #fff; border-color: #12b5f2; filter: none; }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* The hidden attribute must win over any display rule from .content-section. */
.live-section[hidden] { display: none !important; }

/* ---------- SEO helpers ---------- */
/* Text that screen readers and Google read, but that isn't shown on screen. */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* The home page logo is an h1: keep it looking exactly like the logo on other pages. */
h1.logo { margin: 0; font-size: 26px; line-height: normal; }


/* Icons: each is a small built-in SVG inside <i class="ico">. Size follows font-size, colour follows text colour. */
.ico { display: inline-block; line-height: 1; }
