/* Cherokee Braves Command Center - Live-Look Dashboard */

:root {
    --black: #050505;
    --panel: rgba(18, 18, 18, 0.94);
    --panel-soft: rgba(255, 255, 255, 0.055);
    --gold: #d6ad36;
    --gold-light: #f4d76f;
    --text: #ffffff;
    --muted: #cfcfcf;
    --border: rgba(214, 173, 54, 0.42);
    --green: #28ff55;
    --yellow: #ffd528;
    --red: #ff3b30;
    --shadow: 0 24px 70px rgba(0,0,0,.45);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 0%, rgba(214,173,54,.16), transparent 28rem),
        radial-gradient(circle at 86% 22%, rgba(214,173,54,.10), transparent 25rem),
        linear-gradient(135deg, #020202 0%, #101010 58%, #1a160a 100%);
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
}

.page-shell {
    width: min(1500px, calc(100% - 34px));
    margin: 0 auto;
}

.topbar {
    min-height: 132px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 24px 0 18px;
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand-mark {
    width: 88px;
    height: 88px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    color: #070707;
    font-size: 31px;
    font-weight: 950;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    box-shadow: 0 0 0 2px rgba(255,255,255,.08), 0 18px 44px rgba(214,173,54,.24);
}

.eyebrow {
    margin: 0 0 7px;
    color: var(--gold-light);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

h1, h2, h3, p {
    margin-top: 0;
}

h1 {
    margin-bottom: 2px;
    font-size: clamp(2.15rem, 5vw, 4.55rem);
    line-height: .92;
    letter-spacing: -.058em;
    color: var(--gold);
    text-transform: uppercase;
    text-shadow: 0 3px 0 rgba(0,0,0,.7);
}

.tagline {
    margin: 0;
    color: var(--gold-light);
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.portal-status {
    min-width: 250px;
    padding: 18px 22px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(0,0,0,.42);
    box-shadow: inset 0 0 22px rgba(214,173,54,.07);
}

.portal-status p {
    margin-bottom: 9px;
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 900;
}

.portal-status div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.portal-status strong {
    font-size: 1.55rem;
    text-transform: uppercase;
}

.nav-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    margin-bottom: 18px;
    border: 1px solid rgba(214,173,54,.3);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(0,0,0,.5);
}

.nav-strip a {
    padding: 18px 16px;
    color: var(--muted);
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 13px;
    font-weight: 900;
    border-right: 1px solid rgba(255,255,255,.07);
}

.nav-strip a:first-child {
    color: var(--gold-light);
    background: rgba(214,173,54,.14);
}

.nav-strip a:hover {
    color: #fff;
    background: rgba(214,173,54,.12);
}

.dashboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) 420px;
    gap: 18px;
    align-items: start;
}

.panel {
    border: 1px solid var(--border);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025)),
        var(--panel);
    box-shadow: var(--shadow);
}

.systems-panel {
    padding: 20px;
}

.panel-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.panel-header.compact {
    display: block;
}

.panel-header h2 {
    margin-bottom: 0;
    font-size: clamp(1.55rem, 3vw, 2.3rem);
    letter-spacing: -.04em;
}

.legend,
.footer-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.legend span,
.footer-legend span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.status-light {
    display: inline-block;
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    border-radius: 999px;
    position: relative;
    background: var(--green);
    color: var(--green);
    box-shadow: 0 0 14px rgba(40, 255, 85, .9), 0 0 26px rgba(40, 255, 85, .35);
    animation: statusPulseGreen 1.65s infinite;
}

.status-light::after {
    content: "";
    position: absolute;
    inset: -7px;
    border-radius: inherit;
    opacity: .45;
    background: currentColor;
    filter: blur(8px);
    z-index: -1;
}

.status-light--green {
    color: var(--green);
    background: var(--green);
    animation-name: statusPulseGreen;
}

.status-light--yellow {
    color: var(--yellow);
    background: var(--yellow);
    box-shadow: 0 0 14px rgba(255,213,40,.95), 0 0 28px rgba(255,213,40,.38);
    animation-name: statusPulseYellow;
}

.status-light--red {
    color: var(--red);
    background: var(--red);
    box-shadow: 0 0 14px rgba(255,59,48,.95), 0 0 30px rgba(255,59,48,.42);
    animation-name: statusPulseRed;
    animation-duration: 1.05s;
}

.portal-status .status-light {
    width: 30px;
    height: 30px;
}

@keyframes statusPulseGreen {
    0%, 100% { transform: scale(1); box-shadow: 0 0 12px rgba(40,255,85,.85), 0 0 26px rgba(40,255,85,.32); }
    50% { transform: scale(1.18); box-shadow: 0 0 20px rgba(40,255,85,1), 0 0 42px rgba(40,255,85,.55); }
}

@keyframes statusPulseYellow {
    0%, 100% { transform: scale(1); box-shadow: 0 0 12px rgba(255,213,40,.88), 0 0 26px rgba(255,213,40,.34); }
    50% { transform: scale(1.18); box-shadow: 0 0 20px rgba(255,213,40,1), 0 0 42px rgba(255,213,40,.58); }
}

@keyframes statusPulseRed {
    0%, 100% { transform: scale(1); box-shadow: 0 0 12px rgba(255,59,48,.88), 0 0 28px rgba(255,59,48,.4); }
    50% { transform: scale(1.25); box-shadow: 0 0 22px rgba(255,59,48,1), 0 0 48px rgba(255,59,48,.68); }
}

.system-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.system-tile {
    position: relative;
    min-height: 185px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 13px;
    overflow: hidden;
    text-align: center;
    text-decoration: none;
    border: 1px solid rgba(214,173,54,.52);
    border-radius: 14px;
    background:
        radial-gradient(circle at 50% 0%, rgba(255,255,255,.07), transparent 55%),
        rgba(255,255,255,.045);
    transition: transform .18s ease, border-color .18s ease, background .18s ease, opacity .18s ease, filter .18s ease;
}

.system-tile[href]:hover {
    transform: translateY(-4px);
    border-color: rgba(244,215,111,.85);
    background:
        radial-gradient(circle at 50% 0%, rgba(214,173,54,.18), transparent 58%),
        rgba(255,255,255,.065);
}

.system-tile--yellow {
    border-color: rgba(255,213,40,.48);
}

.system-tile--red {
    border-color: rgba(255,59,48,.52);
}

.system-tile--disabled {
    cursor: not-allowed;
    opacity: .82;
}

.system-tile--disabled::before {
    content: "LINK DISABLED";
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 8px;
    border-radius: 999px;
    color: #050505;
    background: var(--yellow);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .08em;
}

.system-tile--red.system-tile--disabled::before {
    background: var(--red);
    color: #fff;
}

.tile-icon {
    width: 58px;
    height: 58px;
    color: var(--gold);
    filter: drop-shadow(0 0 12px rgba(214,173,54,.26));
}

.system-tile h3 {
    margin-bottom: 3px;
    font-size: 1.32rem;
    letter-spacing: -.03em;
}

.system-tile p {
    margin-bottom: 0;
    min-height: 34px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.system-tile__status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.system-tile__status strong {
    color: var(--green);
}

.system-tile--yellow .system-tile__status strong {
    color: var(--yellow);
}

.system-tile--red .system-tile__status strong {
    color: var(--red);
}

.system-note {
    color: var(--muted);
    line-height: 1.35;
}

.overview-panel,
.announcement-panel,
.quick-panel {
    padding: 22px;
}

.overview-panel {
    grid-column: 2;
    grid-row: 1;
}

.overview-meter {
    width: 210px;
    height: 210px;
    margin: 18px auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
        radial-gradient(circle, #151515 0 43%, transparent 44%),
        conic-gradient(var(--green) 0 72%, var(--yellow) 72% 88%, var(--red) 88% 100%);
    border: 1px solid rgba(255,255,255,.08);
}

.meter-number {
    margin-top: 14px;
    font-size: 3.4rem;
    font-weight: 950;
    letter-spacing: -.06em;
}

.meter-label {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 900;
}

.overview-counts {
    display: grid;
    gap: 13px;
    margin: 14px 0 22px;
}

.overview-counts div {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.overview-counts strong {
    min-width: 44px;
    font-size: 2rem;
    font-weight: 950;
}

.overview-counts span {
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 900;
}

.green-text { color: var(--green); }
.yellow-text { color: var(--yellow); }
.red-text { color: var(--red); }

.status-meaning {
    display: grid;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.status-meaning p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.35;
}

.status-meaning strong {
    color: #fff;
}

.announcement-panel {
    grid-column: 1;
}

.quick-panel {
    grid-column: 2;
}

.announcement-list {
    display: grid;
    gap: 12px;
}

.announcement-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 14px;
    align-items: start;
    padding: 13px 0;
    border-top: 1px solid rgba(255,255,255,.08);
}

.date-box {
    width: 54px;
    min-height: 48px;
    display: grid;
    place-items: center;
    color: var(--gold-light);
    border: 1px solid rgba(214,173,54,.5);
    border-radius: 10px;
    font-weight: 950;
}

.announcement-item h3 {
    margin-bottom: 4px;
    font-size: 1rem;
}

.announcement-item p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.45;
}

code {
    color: var(--gold-light);
}

.quick-list {
    display: grid;
    gap: 10px;
}

.quick-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid rgba(255,255,255,.08);
    color: var(--muted);
    text-decoration: none;
}

.quick-list a:hover {
    color: #fff;
}

.quick-list strong {
    color: var(--gold-light);
    white-space: nowrap;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin: 18px 0 34px;
    padding: 20px 0 6px;
    color: var(--muted);
}

.site-footer strong {
    display: block;
    color: var(--gold-light);
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.site-footer span {
    font-size: 13px;
}

/* Admin */

.admin-shell {
    max-width: 1300px;
}

.admin-panel {
    padding: 24px;
    margin-bottom: 34px;
}

.admin-message {
    margin: 0 0 16px;
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 900;
}

.admin-message--success {
    color: var(--green);
    border: 1px solid rgba(40,255,85,.35);
    background: rgba(40,255,85,.08);
}

.admin-message--error {
    color: var(--red);
    border: 1px solid rgba(255,59,48,.35);
    background: rgba(255,59,48,.08);
}

.login-form {
    max-width: 460px;
    display: grid;
    gap: 14px;
}

.admin-status-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.admin-status-card {
    padding: 18px;
    border: 1px solid rgba(214,173,54,.32);
    border-radius: 16px;
    background: rgba(255,255,255,.045);
}

.admin-status-card h3 {
    margin-bottom: 14px;
    color: var(--gold-light);
}

.admin-status-card label,
.login-form label {
    display: grid;
    gap: 7px;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.admin-status-card input,
.admin-status-card select,
.login-form input {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 10px;
    color: #fff;
    background: rgba(0,0,0,.45);
    font: inherit;
}

.admin-status-card select option {
    color: #111;
}

.admin-help {
    color: var(--muted);
    line-height: 1.5;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.admin-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    color: #080808;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    font-weight: 950;
    text-decoration: none;
    cursor: pointer;
}

.admin-button-secondary {
    color: var(--gold-light);
    border: 1px solid var(--border);
    background: rgba(255,255,255,.06);
}

@media (max-width: 1180px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .overview-panel,
    .announcement-panel,
    .quick-panel {
        grid-column: auto;
        grid-row: auto;
    }

    .overview-panel {
        display: grid;
        grid-template-columns: 260px 1fr;
        gap: 20px;
        align-items: center;
    }

    .overview-panel .panel-header {
        grid-column: 1 / -1;
    }

    .status-meaning {
        align-self: stretch;
    }

    .admin-status-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .topbar,
    .panel-header,
    .site-footer {
        display: block;
    }

    .portal-status {
        margin-top: 20px;
    }

    .system-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nav-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .overview-panel {
        display: block;
    }
}

@media (max-width: 620px) {
    .page-shell {
        width: min(100% - 20px, 1500px);
    }

    .brand-row {
        align-items: flex-start;
    }

    .brand-mark {
        width: 58px;
        height: 58px;
        border-radius: 16px;
        font-size: 21px;
        flex: 0 0 auto;
    }

    .tagline {
        font-size: 12px;
        line-height: 1.35;
    }

    .system-grid,
    .nav-strip,
    .admin-status-grid {
        grid-template-columns: 1fr;
    }

    .systems-panel,
    .overview-panel,
    .announcement-panel,
    .quick-panel,
    .admin-panel {
        padding: 16px;
        border-radius: 15px;
    }

    .system-tile {
        min-height: 170px;
    }

    .tile-icon {
        width: 50px;
        height: 50px;
    }

    .overview-meter {
        width: 180px;
        height: 180px;
    }
}
