/* ═══════════════════════════════════════════════════════════════
   Kill Zone Clock — OXY ALGO
   Design System: Dark theme, glass-morphism, mission control
   ═══════════════════════════════════════════════════════════════ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #050508;
    --surface: #0c0c16;
    --surface2: #111120;
    --border: rgba(255,255,255,0.06);
    --border2: rgba(255,255,255,0.12);
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --green: #00FF88;
    --gold: #f59e0b;
    --blue: #3b82f6;
    --purple: #8b5cf6;
    --red: #ef4444;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ---------- Ambient Background ---------- */
.ambient-bg {
    position: fixed; inset: 0;
    pointer-events: none; z-index: 0;
    overflow: hidden;
}
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
}
.blob-1 {
    width: 600px; height: 600px;
    background: var(--green);
    top: -200px; left: -100px;
    animation: blobFloat 20s ease-in-out infinite;
}
.blob-2 {
    width: 500px; height: 500px;
    background: var(--blue);
    top: 40%; right: -150px;
    animation: blobFloat 25s ease-in-out infinite reverse;
}
.blob-3 {
    width: 400px; height: 400px;
    background: var(--purple);
    bottom: -100px; left: 30%;
    animation: blobFloat 22s ease-in-out infinite 5s;
}
@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ---------- Glass Card ---------- */
.glass-card {
    background: rgba(12, 12, 22, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border2);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.glass-card:hover {
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

/* ---------- Navigation ---------- */
.nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
}
.nav-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    height: 56px;
}
.nav-logo {
    font-family: var(--font-heading);
    font-weight: 700; font-size: 18px;
    color: var(--text); text-decoration: none;
}
.logo-green { color: var(--green); }
.nav-links { display: flex; gap: 24px; }
.nav-links a {
    font-size: 14px; color: var(--text-muted);
    text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: var(--green); }

/* ---------- Main ---------- */
.main {
    position: relative; z-index: 1;
    max-width: 1200px; margin: 0 auto;
    padding: 32px 24px 64px;
}
.section-title {
    font-family: var(--font-heading);
    font-size: 22px; font-weight: 600;
    margin-bottom: 20px;
    color: var(--text);
}

/* ---------- Weekend Banner ---------- */
.weekend-banner {
    text-align: center;
    background: linear-gradient(135deg, rgba(239,68,68,0.1), rgba(239,68,68,0.05));
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: 16px;
    padding: 32px 24px;
    margin-bottom: 32px;
}
.weekend-banner.hidden { display: none; }
.weekend-icon { font-size: 48px; margin-bottom: 12px; }
.weekend-banner h2 {
    font-family: var(--font-heading);
    font-size: 28px; color: var(--red);
    margin-bottom: 8px;
}
.weekend-banner p { color: var(--text-muted); margin-bottom: 16px; }
.weekend-countdown { font-size: 14px; color: var(--text-muted); }
.countdown-value {
    font-family: var(--font-mono);
    font-size: 22px; font-weight: 700;
    color: var(--gold);
}

/* ---------- Live Clock ---------- */
.clock-section { margin-bottom: 24px; }
.clock-card {
    display: flex; align-items: center; justify-content: center;
    gap: 40px; padding: 32px 40px;
    text-align: center;
    flex-wrap: wrap;
}
.clock-label {
    font-family: var(--font-mono);
    font-size: 11px; font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-dim);
    margin-bottom: 8px;
}
.clock-time {
    font-family: var(--font-mono);
    font-size: 52px; font-weight: 700;
    color: var(--green);
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.3), 0 0 60px rgba(0, 255, 136, 0.1);
    letter-spacing: 2px;
    line-height: 1;
}
.clock-time-local {
    font-size: 36px;
    color: var(--text);
    text-shadow: none;
}
.clock-date {
    font-size: 13px; color: var(--text-muted);
    margin-top: 8px;
}
.clock-divider {
    width: 1px; height: 60px;
    background: var(--border2);
}
.day-name {
    font-family: var(--font-heading);
    font-size: 24px; font-weight: 600;
    margin-bottom: 8px;
}
.market-badge {
    font-family: var(--font-mono);
    font-size: 12px; font-weight: 600;
    padding: 4px 14px; border-radius: 20px;
    letter-spacing: 1px;
}
.badge-open {
    background: rgba(0, 255, 136, 0.15);
    color: var(--green);
    border: 1px solid rgba(0, 255, 136, 0.3);
}
.badge-closed {
    background: rgba(239, 68, 68, 0.15);
    color: var(--red);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ---------- Next Kill Zone Countdown ---------- */
.next-kz-section { margin-bottom: 32px; }
.next-kz {
    text-align: center;
    padding: 28px;
    border: 1px solid rgba(0, 255, 136, 0.15);
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.03), rgba(12, 12, 22, 0.7));
}
.next-kz.kz-active-now {
    border-color: rgba(0, 255, 136, 0.4);
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.08), rgba(12, 12, 22, 0.7));
}
.next-kz-label {
    font-family: var(--font-mono);
    font-size: 11px; font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-dim);
    margin-bottom: 8px;
}
.next-kz-info { margin-bottom: 8px; }
.next-kz-name {
    font-family: var(--font-heading);
    font-size: 20px; font-weight: 600;
    margin-right: 8px;
}
.next-kz-in {
    font-size: 14px; color: var(--text-muted);
}
.next-kz-countdown {
    font-family: var(--font-mono);
    font-size: 44px; font-weight: 700;
    color: var(--green);
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.25);
    letter-spacing: 3px;
}

/* ---------- Kill Zone Cards ---------- */
.kz-cards-section { margin-bottom: 40px; }
.kz-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.kz-card {
    padding: 20px;
    transition: border-color 0.4s, box-shadow 0.4s, transform 0.3s;
}
.kz-card.active {
    transform: translateY(-2px);
}
.kz-card[data-zone="asia"].active {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 24px rgba(139, 92, 246, 0.15);
}
.kz-card[data-zone="london"].active {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 24px rgba(59, 130, 246, 0.15);
}
.kz-card[data-zone="newyork"].active {
    border-color: rgba(0, 255, 136, 0.5);
    box-shadow: 0 0 24px rgba(0, 255, 136, 0.15);
}
.kz-card[data-zone="londonclose"].active {
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 0 24px rgba(245, 158, 11, 0.15);
}

.kz-card-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 12px;
}
.kz-name {
    font-family: var(--font-heading);
    font-size: 18px; font-weight: 600;
    display: flex; align-items: center; gap: 8px;
}
.kz-emoji { font-size: 20px; }
.kz-status {
    display: flex; align-items: center; gap: 6px;
    font-family: var(--font-mono);
    font-size: 11px; font-weight: 600;
    letter-spacing: 1px;
}
.status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--text-dim);
    transition: background 0.3s;
}
.kz-status.active .status-dot {
    animation: pulse 1.5s ease-in-out infinite;
}
.kz-status.active .status-text { color: var(--green); }

[data-zone="asia"] .kz-status.active .status-dot { background: var(--purple); box-shadow: 0 0 8px var(--purple); }
[data-zone="london"] .kz-status.active .status-dot { background: var(--blue); box-shadow: 0 0 8px var(--blue); }
[data-zone="newyork"] .kz-status.active .status-dot { background: var(--green); box-shadow: 0 0 8px var(--green); }
[data-zone="londonclose"] .kz-status.active .status-dot { background: var(--gold); box-shadow: 0 0 8px var(--gold); }

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.kz-time {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.kz-countdown {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 12px;
    min-height: 20px;
}
.kz-progress-wrap {
    width: 100%; height: 4px;
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
    overflow: hidden;
}
.kz-progress-bar {
    height: 100%; width: 0%;
    border-radius: 2px;
    transition: width 1s linear;
}
[data-zone="asia"] .kz-progress-bar { background: linear-gradient(90deg, var(--purple), rgba(139,92,246,0.4)); }
[data-zone="london"] .kz-progress-bar { background: linear-gradient(90deg, var(--blue), rgba(59,130,246,0.4)); }
[data-zone="newyork"] .kz-progress-bar { background: linear-gradient(90deg, var(--green), rgba(0,255,136,0.4)); }
[data-zone="londonclose"] .kz-progress-bar { background: linear-gradient(90deg, var(--gold), rgba(245,158,11,0.4)); }

/* ---------- Session Overlap Banner ---------- */
.overlap-section { margin-bottom: 32px; }
.overlap-section.hidden { display: none; }
.overlap-banner {
    display: flex; align-items: center; gap: 20px;
    padding: 20px 28px;
    border: 1px solid rgba(0, 255, 136, 0.3);
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.06), rgba(59, 130, 246, 0.04));
    overflow: hidden;
}
.overlap-pulse {
    width: 12px; height: 12px; flex-shrink: 0;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px var(--green);
    animation: pulse 1.5s ease-in-out infinite;
}
.overlap-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px; font-weight: 700;
    letter-spacing: 2px;
    padding: 3px 12px; border-radius: 4px;
    background: rgba(0, 255, 136, 0.15);
    color: var(--green);
    margin-bottom: 4px;
}
.overlap-text {
    font-family: var(--font-heading);
    font-size: 16px; font-weight: 600;
}
.overlap-note {
    font-size: 13px; color: var(--text-muted);
    margin-top: 4px;
}

/* ---------- Visual Timeline ---------- */
.timeline-section { margin-bottom: 40px; }
.timeline-card { padding: 28px 24px 20px; overflow: hidden; }
.timeline-labels {
    position: relative; height: 28px;
    margin-bottom: 4px;
}
.timeline-label {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 10px; font-weight: 600;
    letter-spacing: 1px;
    top: 0; transform: translateX(-50%);
    white-space: nowrap;
}
.timeline-bar-wrap {
    position: relative;
    margin-bottom: 8px;
}
.timeline-bar {
    position: relative;
    width: 100%; height: 32px;
    background: rgba(255,255,255,0.04);
    border-radius: 6px;
    overflow: visible;
}
.timeline-segment {
    position: absolute;
    top: 0; height: 100%;
    border-radius: 4px;
    opacity: 0.7;
    transition: opacity 0.3s;
}
.timeline-segment:hover { opacity: 1; }
.timeline-segment.seg-asia { background: var(--purple); }
.timeline-segment.seg-london { background: var(--blue); }
.timeline-segment.seg-newyork { background: var(--green); }
.timeline-segment.seg-londonclose { background: var(--gold); }
.timeline-segment.seg-active { opacity: 1; }

.timeline-needle {
    position: absolute;
    top: -6px; bottom: -6px;
    width: 2px;
    background: var(--red);
    box-shadow: 0 0 8px var(--red);
    z-index: 10;
    transition: left 1s linear;
    border-radius: 1px;
}
.timeline-needle::after {
    content: '';
    position: absolute;
    top: -4px; left: -4px;
    width: 10px; height: 10px;
    background: var(--red);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--red);
}

.timeline-hours {
    display: flex; justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-dim);
    padding: 0 0;
}
.timeline-hour {
    width: 0; text-align: center;
}

/* ---------- Trading Sessions ---------- */
.sessions-section { margin-bottom: 40px; }
.sessions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}
.session-card { padding: 20px; }
.session-header {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 10px;
}
.session-emoji { font-size: 20px; }
.session-name {
    font-family: var(--font-heading);
    font-size: 16px; font-weight: 600;
}
.session-hours {
    font-family: var(--font-mono);
    font-size: 14px; color: var(--text);
    margin-bottom: 4px;
}
.session-kz {
    font-size: 12px; color: var(--text-dim);
    margin-bottom: 10px;
}
.session-status {
    font-family: var(--font-mono);
    font-size: 11px; font-weight: 600;
    letter-spacing: 1px;
}
.session-status.active { color: var(--green); }
.session-status.inactive { color: var(--text-dim); }

.overlaps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.overlap-card { padding: 16px 20px; }
.overlap-card-label {
    font-family: var(--font-heading);
    font-size: 14px; font-weight: 600;
    margin-bottom: 4px;
}
.overlap-card-time {
    font-family: var(--font-mono);
    font-size: 13px; color: var(--text-muted);
    margin-bottom: 8px;
}
.overlap-card-status {
    font-family: var(--font-mono);
    font-size: 11px; font-weight: 600;
    letter-spacing: 1px;
}

/* ---------- Best Times to Trade ---------- */
.best-times-section { margin-bottom: 40px; }
.best-times-card { padding: 28px; }
.best-times-note {
    font-size: 14px; color: var(--text-muted);
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(0, 255, 136, 0.04);
    border-left: 3px solid var(--green);
    border-radius: 0 8px 8px 0;
    line-height: 1.7;
}
.best-times-table-wrap { overflow-x: auto; }
.best-times-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.best-times-table th {
    font-family: var(--font-heading);
    font-weight: 600; font-size: 13px;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border2);
    color: var(--text-muted);
    letter-spacing: 0.5px;
}
.best-times-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}
.best-times-table tbody tr:hover {
    background: rgba(255,255,255,0.02);
}
.kz-dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}
.dot-asia { background: var(--purple); }
.dot-london { background: var(--blue); }
.dot-ny { background: var(--green); }
.dot-lc { background: var(--gold); }

/* ---------- CTA ---------- */
.cta-section { margin-bottom: 32px; }
.cta-card {
    text-align: center;
    padding: 48px 32px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.04), rgba(12, 12, 22, 0.7));
}
.cta-title {
    font-family: var(--font-heading);
    font-size: 26px; font-weight: 700;
    margin-bottom: 12px;
}
.cta-text {
    font-size: 15px; color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 500px; margin-left: auto; margin-right: auto;
}
.cta-button {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 15px; font-weight: 600;
    padding: 14px 36px;
    background: var(--green);
    color: #050508;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.3s;
}
.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 255, 136, 0.3);
}

/* ---------- Footer ---------- */
.footer {
    text-align: center;
    padding: 24px;
    font-size: 13px;
    color: var(--text-dim);
    border-top: 1px solid var(--border);
}
.footer span {
    color: var(--green);
    font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .kz-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .sessions-grid { grid-template-columns: repeat(2, 1fr); }
    .clock-card { gap: 24px; padding: 24px 20px; }
    .clock-time { font-size: 38px; }
    .clock-time-local { font-size: 28px; }
    .next-kz-countdown { font-size: 34px; }
}
@media (max-width: 600px) {
    .kz-cards-grid { grid-template-columns: 1fr; }
    .sessions-grid { grid-template-columns: 1fr; }
    .overlaps-grid { grid-template-columns: 1fr; }
    .clock-card {
        flex-direction: column; gap: 20px;
        padding: 20px 16px;
    }
    .clock-divider { width: 60px; height: 1px; }
    .clock-time { font-size: 32px; }
    .clock-time-local { font-size: 24px; }
    .next-kz-countdown { font-size: 28px; }
    .nav-links { gap: 16px; }
    .nav-links a { font-size: 12px; }
    .cta-title { font-size: 20px; }
    .timeline-label { font-size: 8px; }
    .overlap-banner { flex-direction: column; text-align: center; }
}
@media (max-width: 400px) {
    .nav-inner { flex-direction: column; height: auto; padding: 12px 0; gap: 8px; }
}
