/* AP TRINETRA Heat Wave — shared styles */
:root {
    --bg: #0d0d10;
    --panel: #15181d;
    --border: #2a2a30;
    --hot-yellow: #ffe066;
    --hot-orange: #ff9966;
    --hot-red: #ff3030;
    --txt: #e6e6e6;
    --txt-dim: #aaaaaa;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background: var(--bg);
    color: var(--txt);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
    min-height: 100vh;
}

/* Header */
.header {
    background: linear-gradient(90deg, #1a0f0f 0%, #2a1a0f 100%);
    border-bottom: 2px solid #ff5050;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header h1 { color: var(--hot-yellow); font-size: 22px; font-weight: 700; letter-spacing: 0.5px; }
.header .tag { color: var(--txt-dim); font-size: 12px; margin-top: 2px; }
.header .meta { text-align: right; font-size: 12px; color: var(--txt-dim); }
.header .meta .live-dot {
    display: inline-block; width: 8px; height: 8px;
    background: #4caf50; border-radius: 50%;
    margin-right: 6px; animation: pulse 1.6s infinite;
}
@keyframes pulse { 50% { opacity: 0.4; } }

/* Nav */
.nav-bar {
    background: #15181d;
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    display: flex;
    gap: 24px;
}
.nav-bar a {
    color: var(--txt-dim); text-decoration: none;
    padding: 12px 0; font-size: 14px;
    border-bottom: 2px solid transparent;
}
.nav-bar a.active, .nav-bar a:hover {
    color: var(--hot-yellow);
    border-bottom-color: var(--hot-orange);
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 24px;
}

/* Hero card */
.hero {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0;
    margin-bottom: 24px;
    overflow: hidden;
}
.hero h2 { color: var(--hot-yellow); font-size: 20px; padding: 16px 20px 8px; }
.hero .source-strip {
    font-size: 12px; color: var(--txt-dim);
    padding: 0 20px 16px;
}
.hero video, .hero img {
    display: block; width: 100%; background: #000;
}
.hero .controls {
    background: #0a0a0d; padding: 12px 20px;
    display: flex; gap: 12px;
    border-top: 1px solid var(--border);
    font-size: 13px; flex-wrap: wrap;
}
.hero .controls a {
    color: var(--hot-yellow); text-decoration: none;
    padding: 6px 12px;
    border: 1px solid #ff9966;
    border-radius: 4px;
    transition: all 0.15s;
}
.hero .controls a:hover {
    background: #ff9966; color: #1a1a1a;
}

/* Stat cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 16px;
    border-left: 4px solid var(--hot-orange);
}
.stat-card.peak { border-left-color: var(--hot-red); }
.stat-card.hot { border-left-color: #ff5050; }
.stat-card.warn { border-left-color: var(--hot-yellow); }
.stat-card .label {
    font-size: 12px; color: var(--txt-dim);
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.stat-card .value {
    font-size: 28px; font-weight: 700;
    color: var(--hot-yellow); font-family: monospace;
}
.stat-card .sub { font-size: 12px; color: var(--txt-dim); margin-top: 6px; }

/* Section */
.section {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}
.section h2 { color: var(--hot-yellow); font-size: 18px; margin-bottom: 12px; }
.section img.full {
    width: 100%; display: block;
    border: 1px solid var(--border); border-radius: 6px;
}

/* Table */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
table th {
    background: #1a1d22; color: var(--hot-yellow);
    padding: 10px; text-align: left; font-weight: 600;
    border-bottom: 1px solid var(--border);
}
table td { padding: 8px 10px; border-bottom: 1px solid var(--border); }
table tr:hover td { background: #1a1d22; }

/* Source tags */
.src-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
}
.src-tag.des { background: #3a2a1a; color: #ffb066; }
.src-tag.imd { background: #1a2a3a; color: #80b4ff; }
.src-tag.nrsc { background: #2a1a3a; color: #c080ff; }
.src-tag.apsdps { background: #1a3a2a; color: #80ffb0; }

/* Buttons */
.toggle-btn {
    background: #1a1d22; color: var(--txt-dim);
    border: 1px solid var(--border); border-radius: 4px;
    padding: 8px 14px; cursor: pointer;
    font-size: 13px; font-weight: 600;
    transition: all 0.15s;
}
.toggle-btn:hover { color: var(--hot-yellow); border-color: var(--hot-orange); }
.toggle-btn.active {
    background: #ff9966; color: #1a1a1a;
    border-color: #ff9966;
}

/* Footer */
.footer {
    text-align: center;
    color: var(--txt-dim);
    font-size: 12px;
    padding: 24px;
    border-top: 1px solid var(--border);
}

/* "Coming soon" stub */
.coming-soon {
    text-align: center;
    padding: 80px 24px;
    color: var(--txt-dim);
}
.coming-soon h2 { color: var(--hot-yellow); margin-bottom: 16px; }
.coming-soon .icon { font-size: 64px; margin-bottom: 16px; }
.coming-soon ul {
    text-align: left;
    max-width: 600px;
    margin: 24px auto 0;
    padding-left: 20px;
    line-height: 1.8;
}
