/* gabs.news - Retro-Futuristic Value Ticker */
/* Colors: #17d4a5 #1a3a4a #e8a832 #f0f6ff #0a1628 #e4e8ec #0d2847 #8b9eb0 */
/* Fonts: Josefin Sans (display), Space Mono (body), Inter (meta) */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    background: #0a1628;
}

body {
    font-family: "Space Mono", monospace;
    font-weight: 400;
    color: #e4e8ec;
    background: #0a1628;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

#crt-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(10, 22, 40, 0.15) 2px,
        rgba(10, 22, 40, 0.15) 4px
    );
    mix-blend-mode: overlay;
}

#broadcast-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 40px;
    background: linear-gradient(90deg, #0d2847, #1a3a4a);
    border-bottom: 2px solid #17d4a5;
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 20px rgba(23, 212, 165, 0.2);
}

.broadcast-inner {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 16px;
    gap: 16px;
}

.broadcast-label {
    font-family: "Josefin Sans", sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: #e8a832;
    white-space: nowrap;
    text-transform: uppercase;
    padding: 3px 8px;
    border: 1px solid #e8a832;
    background: rgba(232, 168, 50, 0.1);
}

.ticker-track {
    flex: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
}

.ticker-content {
    display: flex;
    align-items: center;
    gap: 16px;
    white-space: nowrap;
    animation: tickerScroll 40s linear infinite;
}

.ticker-item {
    font-family: "Space Mono", monospace;
    font-size: 12px;
    color: #17d4a5;
    letter-spacing: 0.05em;
}

.ticker-separator {
    color: #8b9eb0;
    font-size: 8px;
}

.broadcast-status {
    font-family: "Inter", sans-serif;
    font-weight: 300;
    font-size: 10px;
    color: #8b9eb0;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.05em;
}

.status-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #17d4a5;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 4px #17d4a5; }
    50% { opacity: 0.4; box-shadow: 0 0 8px #17d4a5; }
}

#main-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 5% 40px;
    gap: 0;
    position: relative;
}

#content-stream {
    width: 65%;
    flex-shrink: 0;
}

#masthead {
    padding: 80px 0 60px;
    position: relative;
}

.masthead-inner {
    position: relative;
}

#hex-prism {
    width: 120px; height: 120px;
    position: relative;
    margin-bottom: 30px;
    animation: hexRotate 12s linear infinite;
}

.hex-face {
    position: absolute;
    width: 100%; height: 100%;
    top: 0; left: 0;
}

.hex-face-1 {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(135deg, rgba(23,212,165,0.3), rgba(13,40,71,0.8));
    border: 2px solid rgba(23,212,165,0.4);
}

.hex-face-2 {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(225deg, rgba(232,168,50,0.2), rgba(13,40,71,0.6));
    transform: scale(0.75);
    animation: hexPulse 4s ease-in-out infinite;
}

.hex-face-3 {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(45deg, rgba(23,212,165,0.15), rgba(232,168,50,0.15));
    transform: scale(0.5);
    animation: hexPulse 4s ease-in-out infinite reverse;
}

@keyframes hexRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes hexPulse {
    0%, 100% { opacity: 0.6; transform: scale(0.75); }
    50% { opacity: 1; transform: scale(0.85); }
}

.masthead-title {
    font-family: "Josefin Sans", sans-serif;
    font-weight: 700;
    font-size: clamp(48px, 8vw, 96px);
    line-height: 1.1;
    letter-spacing: 0.02em;
    margin-bottom: 16px;
}

.title-korean {
    color: #17d4a5;
    text-shadow: 0 0 30px rgba(23, 212, 165, 0.4);
}

.title-dot {
    color: #e8a832;
}

.title-news {
    color: #f0f6ff;
}

.masthead-subtitle {
    font-family: "Space Mono", monospace;
    font-size: 14px;
    color: #8b9eb0;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.masthead-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.meta-item {
    font-family: "Inter", sans-serif;
    font-weight: 300;
    font-size: 11px;
    color: #8b9eb0;
    letter-spacing: 0.05em;
}

.meta-divider {
    color: #1a3a4a;
    font-size: 10px;
}

#tick-counter {
    font-family: "Space Mono", monospace;
    color: #17d4a5;
}

#value-stream {
    padding: 20px 0;
}

.section-label {
    font-family: "Josefin Sans", sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: #8b9eb0;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.label-indicator {
    width: 8px; height: 8px;
    background: #e8a832;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    display: inline-block;
    animation: pulse 3s ease-in-out infinite;
}

.value-card {
    margin-bottom: 24px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.value-card:hover {
    transform: translateX(8px);
}

.card-chrome {
    display: flex;
    background: linear-gradient(135deg, rgba(13, 40, 71, 0.9), rgba(26, 58, 74, 0.6));
    border: 1px solid rgba(23, 212, 165, 0.15);
    border-left: 3px solid #17d4a5;
    padding: 0;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover .card-chrome {
    border-color: rgba(23, 212, 165, 0.4);
    box-shadow: 0 4px 30px rgba(23, 212, 165, 0.1), inset 0 0 30px rgba(23, 212, 165, 0.03);
}

.card-chrome::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, #17d4a5, transparent 60%);
    opacity: 0.5;
}

.card-geo {
    width: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(23, 212, 165, 0.1);
    background: rgba(10, 22, 40, 0.4);
}

.geo-shape {
    width: 24px; height: 24px;
    transition: transform 0.3s ease;
}

.value-card:hover .geo-shape {
    transform: rotate(45deg) scale(1.2);
}

.geo-hexagon {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(135deg, #17d4a5, #0d2847);
}

.geo-triangle {
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    background: linear-gradient(180deg, #e8a832, #0d2847);
}

.geo-parallelogram {
    clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
    background: linear-gradient(135deg, #17d4a5, #e8a832);
}

.geo-trapezoid {
    clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
    background: linear-gradient(180deg, #8b9eb0, #0d2847);
}

.card-content {
    flex: 1;
    padding: 20px 24px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.card-freq {
    font-family: "Space Mono", monospace;
    font-size: 11px;
    color: #e8a832;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border: 1px solid rgba(232, 168, 50, 0.3);
    background: rgba(232, 168, 50, 0.05);
}

.card-timestamp {
    font-family: "Inter", sans-serif;
    font-weight: 300;
    font-size: 11px;
    color: #8b9eb0;
}

.card-title {
    font-family: "Josefin Sans", sans-serif;
    font-weight: 600;
    font-size: clamp(16px, 2vw, 22px);
    line-height: 1.3;
    color: #f0f6ff;
    margin-bottom: 10px;
    letter-spacing: 0.01em;
}

.card-body {
    font-family: "Space Mono", monospace;
    font-size: 13px;
    line-height: 1.7;
    color: #8b9eb0;
    margin-bottom: 14px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-tag {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 10px;
    letter-spacing: 0.15em;
    color: #17d4a5;
    padding: 3px 10px;
    border: 1px solid rgba(23, 212, 165, 0.25);
    background: rgba(23, 212, 165, 0.05);
}

.card-value-indicator {
    display: flex;
    gap: 3px;
}

.vi-bar {
    width: 4px; height: 14px;
    background: rgba(139, 158, 176, 0.2);
    transition: background 0.3s ease;
}

.vi-bar.active {
    background: #17d4a5;
    box-shadow: 0 0 4px rgba(23, 212, 165, 0.4);
}

#auxiliary-column {
    width: 25%;
    margin-left: auto;
    margin-top: 120px;
    position: relative;
    will-change: transform;
}

.aux-panel {
    background: linear-gradient(180deg, rgba(13, 40, 71, 0.8), rgba(10, 22, 40, 0.9));
    border: 1px solid rgba(23, 212, 165, 0.12);
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
}

.aux-panel::before {
    content: "";
    position: absolute;
    top: -1px; left: -1px; right: -1px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #17d4a5, transparent);
    opacity: 0.4;
}

.aux-title {
    font-family: "Josefin Sans", sans-serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.2em;
    color: #e8a832;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.meter-display {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 80px;
    padding-bottom: 8px;
}

.meter-bar-container {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: flex-end;
}

.meter-bar {
    width: 100%;
    background: linear-gradient(0deg, #17d4a5, rgba(23, 212, 165, 0.4));
    transition: height 1s ease;
    position: relative;
    min-height: 4px;
}

.meter-bar::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: #17d4a5;
    box-shadow: 0 0 6px #17d4a5;
}

.meter-labels {
    display: flex;
    justify-content: space-between;
    font-family: "Inter", sans-serif;
    font-weight: 300;
    font-size: 9px;
    color: #8b9eb0;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

.gauge-display {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.gauge-track {
    width: 24px;
    height: 160px;
    background: rgba(10, 22, 40, 0.6);
    border: 1px solid rgba(23, 212, 165, 0.15);
    position: relative;
    overflow: hidden;
}

.gauge-fill {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 0%;
    background: linear-gradient(0deg, #17d4a5, rgba(23, 212, 165, 0.3));
    transition: height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gauge-markers {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    position: relative;
    padding-left: 32px;
}

.marker {
    font-family: "Space Mono", monospace;
    font-size: 10px;
    color: #8b9eb0;
    white-space: nowrap;
    position: relative;
}

.marker::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 50%;
    width: 8px;
    height: 1px;
    background: rgba(23, 212, 165, 0.3);
}

.gauge-reading {
    font-family: "Space Mono", monospace;
    font-size: 24px;
    font-weight: 700;
    color: #17d4a5;
    margin-top: 12px;
    text-shadow: 0 0 10px rgba(23, 212, 165, 0.3);
}

.status-list {
    list-style: none;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(23, 212, 165, 0.06);
    font-family: "Inter", sans-serif;
    font-weight: 300;
    font-size: 11px;
}

.status-item:last-child { border-bottom: none; }

.status-indicator {
    width: 6px; height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-item.online .status-indicator { background: #17d4a5; box-shadow: 0 0 4px #17d4a5; }
.status-item.warning .status-indicator { background: #e8a832; box-shadow: 0 0 4px #e8a832; animation: pulse 2s ease-in-out infinite; }
.status-item.offline .status-indicator { background: #8b9eb0; }

.status-label {
    flex: 1;
    color: #e4e8ec;
}

.status-value {
    font-family: "Space Mono", monospace;
    font-size: 10px;
    color: #8b9eb0;
    letter-spacing: 0.05em;
}

.status-item.online .status-value { color: #17d4a5; }
.status-item.warning .status-value { color: #e8a832; }

.index-display {
    margin-bottom: 12px;
}

.index-value {
    font-family: "Space Mono", monospace;
    font-size: 28px;
    font-weight: 700;
    color: #f0f6ff;
    display: block;
    letter-spacing: 0.02em;
}

.index-change {
    font-family: "Space Mono", monospace;
    font-size: 12px;
    display: block;
    margin-top: 4px;
}

.index-change.positive { color: #17d4a5; }
.index-change.negative { color: #e8a832; }

.index-sparkline {
    height: 60px;
    background: rgba(10, 22, 40, 0.4);
    border: 1px solid rgba(23, 212, 165, 0.1);
    padding: 4px;
}

.index-sparkline svg {
    width: 100%;
    height: 100%;
}

#particle-field {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    opacity: 0.15;
    animation: particleDrift linear infinite;
}

.particle-hex {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: #17d4a5;
}

.particle-tri {
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    background: #e8a832;
}

.particle-diamond {
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    background: #8b9eb0;
}

@keyframes particleDrift {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.15; }
    90% { opacity: 0.15; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

#frequency-footer {
    background: linear-gradient(180deg, #0a1628, #0d2847);
    border-top: 2px solid rgba(23, 212, 165, 0.2);
    padding: 60px 5% 40px;
    position: relative;
    overflow: hidden;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-label {
    font-family: "Josefin Sans", sans-serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.2em;
    color: #e8a832;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.footer-text {
    font-family: "Space Mono", monospace;
    font-size: 12px;
    color: #8b9eb0;
    line-height: 1.7;
    margin-bottom: 8px;
}

.footer-text.small {
    font-size: 11px;
    opacity: 0.7;
}

.footer-freq-list {
    list-style: none;
}

.footer-freq-list li {
    font-family: "Space Mono", monospace;
    font-size: 11px;
    color: #8b9eb0;
    padding: 4px 0;
    border-bottom: 1px solid rgba(23, 212, 165, 0.06);
}

.freq-band {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 9px;
    letter-spacing: 0.1em;
    color: #17d4a5;
    padding: 1px 6px;
    border: 1px solid rgba(23, 212, 165, 0.2);
    margin-right: 8px;
    display: inline-block;
}

.footer-bars {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 12px;
}

.footer-bar {
    height: 3px;
    background: linear-gradient(90deg, #17d4a5, rgba(23, 212, 165, 0.2));
    transition: width 1s ease;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(23, 212, 165, 0.1);
}

.footer-copyright {
    font-family: "Inter", sans-serif;
    font-weight: 300;
    font-size: 11px;
    color: #8b9eb0;
}

.footer-signal {
    font-family: "Space Mono", monospace;
    font-size: 10px;
    color: #17d4a5;
    letter-spacing: 0.1em;
}

#footer-particles {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

@media (max-width: 900px) {
    #main-container {
        flex-direction: column;
        padding: 50px 4% 20px;
    }
    #content-stream { width: 100%; }
    #auxiliary-column {
        width: 100%;
        margin-top: 40px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .masthead-title {
        font-size: clamp(36px, 10vw, 64px);
    }
}

@media (max-width: 600px) {
    #auxiliary-column {
        grid-template-columns: 1fr;
    }
    .broadcast-label,
    .broadcast-status { display: none; }
    .masthead-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .meta-divider { display: none; }
}
