/* ============================================
   CLAW6900 — Single Viewport Layout
   Accent: Orange #ff6b35
   ============================================ */

:root {
    --accent: #ff6b35;
    --accent-dark: #e85d26;
    --accent-glow: rgba(255, 107, 53, 0.3);
    --green: #22c55e;
    --red: #ef4444;
    --bg-dark: #0a0a0a;
    --bg-card: #111111;
    --bg-card-hover: #161616;
    --bg-elevated: #131313;
    --text-primary: #e0e0e0;
    --text-secondary: #777;
    --border-color: #1e1e1e;
    --ticker-bg: #050505;
    --terminal-bg: #0d0d0d;
    --terminal-border: #2a2a2a;
}

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

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
}

a { text-decoration: none; color: inherit; }
.accent-color { color: var(--accent) !important; }

.accent-link {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(255,107,53,0.3);
}
.accent-link:hover { text-decoration-color: var(--accent); }

/* ==================== TOP NAV ==================== */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 20px;
    background: #050505;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.nav-left { display: flex; align-items: center; gap: 20px; }
.logo-container { display: flex; align-items: center; gap: 8px; }

.nav-logo-img {
    width: 28px; height: 28px;
    border-radius: 50%; object-fit: cover;
    border: 2px solid var(--border-color);
}
.nav-logo-img:hover { border-color: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }

.logo-text {
    font-family: 'Oswald', sans-serif;
    font-size: 18px; font-weight: 700;
    letter-spacing: 2px; color: var(--accent);
}

.nav-links { display: flex; gap: 6px; }

.nav-btn {
    padding: 4px 12px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    font-size: 10px; font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-primary);
    transition: all 0.2s; cursor: pointer;
}
.nav-btn:hover { border-color: var(--accent); color: var(--accent); }

.nav-btn-accent {
    background: var(--accent); border: none;
    color: #000; font-weight: 700;
}
.nav-btn-accent:hover { background: var(--accent-dark); color: #000; }

.nav-right { display: flex; gap: 12px; align-items: center; }

.social-icon {
    display: flex; align-items: center;
    color: var(--text-secondary); transition: all 0.2s; cursor: pointer;
}
.social-icon svg { fill: var(--text-secondary); transition: fill 0.2s; }
.social-icon:hover svg { fill: var(--accent); }

/* ==================== TICKER ==================== */
.ticker-bar {
    background: var(--ticker-bg);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    padding: 4px 0;
    flex-shrink: 0;
}

.ticker-track { overflow: hidden; }

.ticker-content {
    display: flex; gap: 24px;
    animation: tickerScroll 35s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    font-size: 10px; font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-secondary); flex-shrink: 0;
}

.ticker-item.highlight {
    color: var(--accent);
    background: rgba(255,107,53,0.1);
    padding: 1px 8px; border-radius: 3px;
    border: 1px solid rgba(255,107,53,0.2);
}

.ticker-price { margin-left: 4px; }
.ticker-price.green { color: var(--green); }
.ticker-price.red { color: var(--red); }

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

/* ==================== MAIN GRID ==================== */
.main-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 380px 1fr 280px;
    gap: 0;
    min-height: 0;
    overflow: hidden;
}

/* ==================== LEFT COLUMN — Video ==================== */
.col-left {
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #050505;
    gap: 12px;
}

.video-top-text {
    text-align: center;
}

.vt-headline {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 3px;
    color: white;
    line-height: 1.1;
}

.vt-sub {
    font-size: 11px;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.video-bottom-text {
    text-align: center;
}

.vb-caption {
    font-size: 10px;
    color: var(--text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.vb-slogan {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 4px;
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 100%;
    background: #000;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.sound-toggle {
    position: absolute;
    bottom: 12px; right: 12px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.7);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
    z-index: 10;
}

.sound-toggle:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.sound-toggle svg { stroke: currentColor; }

/* ==================== CENTER COLUMN ==================== */
.col-center {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

/* Top: Headline */
.center-top {
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border-color);
}

.article-tag {
    display: inline-block;
    font-size: 10px; font-weight: 600;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--text-secondary); margin-bottom: 10px;
    border-bottom: 2px solid var(--accent); padding-bottom: 3px;
}

.hero-headline {
    font-family: 'Oswald', sans-serif;
    font-size: 34px; font-weight: 800;
    line-height: 1.12; margin-bottom: 14px; color: white;
}

.hero-body {
    font-size: 14px; color: var(--text-secondary);
    line-height: 1.65;
}

/* Bottom: Split in two halves */
.center-bottom {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 0;
    overflow: hidden;
}

.center-half {
    padding: 16px 20px;
    overflow-y: auto;
}

/* Agent half */
.agent-half {
    border-right: 1px solid var(--border-color);
}

.agent-invite-title {
    font-size: 16px; font-weight: 700;
    color: white; margin-bottom: 12px; text-align: center;
}

.claw-icon { animation: clawWiggle 2s ease-in-out infinite; display: inline-block; }

@keyframes clawWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    75% { transform: rotate(-10deg); }
}

.agent-tabs { display: flex; justify-content: center; margin-bottom: 12px; }

.agent-tab {
    display: flex; align-items: center; gap: 4px;
    padding: 6px 16px; font-size: 12px; font-weight: 600;
    color: var(--text-secondary); background: transparent;
    border: 1px solid var(--border-color); cursor: pointer;
    transition: all 0.2s;
}
.agent-tab:first-child { border-radius: 6px 0 0 6px; }
.agent-tab:last-child { border-radius: 0 6px 6px 0; border-left: none; }
.agent-tab.active { background: var(--accent); color: #000; border-color: var(--accent); font-weight: 700; }
.agent-tab.active svg { stroke: #000; }

.agent-tab-content { display: none; }
.agent-tab-content.active { display: block; }

.terminal-window {
    background: var(--terminal-bg);
    border: 1px solid var(--terminal-border);
    border-radius: 8px; overflow: hidden;
    margin-bottom: 8px;
}

.terminal-header {
    display: flex; align-items: center; gap: 6px;
    padding: 7px 12px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--terminal-border);
    color: var(--text-secondary);
    font-size: 11px; font-family: 'JetBrains Mono', monospace;
}
.terminal-header svg { stroke: var(--text-secondary); opacity: 0.6; }

.terminal-body { padding: 12px; }

.terminal-line {
    display: flex; align-items: center; gap: 8px;
    font-family: 'JetBrains Mono', monospace; font-size: 12px;
}

.terminal-prompt { color: var(--green); font-weight: 700; user-select: none; }
.terminal-cmd { color: var(--text-primary); flex: 1; }

.copy-inline-btn {
    background: none; border: none; cursor: pointer;
    padding: 2px; color: var(--text-secondary);
    display: flex; align-items: center;
}
.copy-inline-btn:hover { color: var(--accent); }
.copy-inline-btn svg { stroke: currentColor; }

.agent-hint { font-size: 11px; color: var(--text-secondary); margin-bottom: 10px; text-align: center; }

.btn-copy-main {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    width: 100%; padding: 11px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #000; border: none; border-radius: 8px;
    font-size: 14px; font-weight: 700; cursor: pointer;
    transition: all 0.2s;
}
.btn-copy-main:hover { box-shadow: 0 6px 20px var(--accent-glow); }
.btn-copy-main svg { stroke: #000; }

.manual-steps { text-align: left; margin-bottom: 8px; }

.manual-step {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 8px 0; border-bottom: 1px solid var(--border-color);
}
.manual-step:last-child { border-bottom: none; }

.step-num {
    width: 24px; height: 24px; min-width: 24px;
    border-radius: 50%; background: var(--accent);
    color: #000; font-size: 12px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}

.manual-step p { font-size: 12px; color: var(--text-secondary); line-height: 1.4; padding-top: 2px; }

.invite-divider { margin: 12px 0 10px; font-size: 11px; color: var(--text-secondary); text-align: center; }

.btn-invite {
    width: 100%; padding: 11px;
    background: transparent; color: var(--text-primary);
    border: 1px solid var(--border-color); border-radius: 8px;
    font-size: 14px; font-weight: 700; cursor: pointer;
    transition: all 0.2s;
}
.btn-invite:hover { border-color: var(--accent); color: var(--accent); }

.agent-footer-note { margin-top: 12px; font-size: 11px; color: var(--text-secondary); text-align: center; }
.info-icon { opacity: 0.5; }

/* Manifesto half */
.manifesto-half {
    display: flex;
    flex-direction: column;
}

.manifesto-banner {
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    line-height: 0;
}

.manifesto-banner img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.manifesto-banner img:hover {
    opacity: 1;
}

.manifesto-title {
    font-family: 'Oswald', sans-serif;
    font-size: 20px; font-weight: 700;
    letter-spacing: 1px; margin-bottom: 12px;
}

.manifesto-body {
    font-size: 14px; color: var(--text-secondary);
    line-height: 1.7; margin-bottom: 12px;
}

.manifesto-slogan {
    font-size: 18px; font-weight: 800;
    letter-spacing: 1px; margin-top: 4px;
}

/* ==================== RIGHT COLUMN ==================== */
.col-right {
    border-left: 1px solid var(--border-color);
    padding: 16px 18px;
    display: flex; flex-direction: column;
    gap: 12px;
    overflow-y: auto;
}

.sidebar-box h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 16px; font-weight: 700;
    margin-bottom: 10px; color: white;
}

.sidebar-coin-img {
    width: 110px; height: 110px;
    display: block; margin: 0 auto 10px;
    border-radius: 50%;
    box-shadow: 0 4px 20px var(--accent-glow);
    border: 2px solid var(--border-color);
    transition: all 0.3s;
}
.sidebar-coin-img:hover { border-color: var(--accent); transform: rotate(5deg); }

.sidebar-caption {
    font-size: 12px; color: var(--text-secondary);
    line-height: 1.55; margin-bottom: 8px;
}

.sidebar-tagline { font-size: 13px; font-weight: 700; letter-spacing: 0.5px; }

/* Sidebar headline cards */
.sidebar-cards {
    display: flex; flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
}

.side-card {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s;
}
.side-card:last-child { border-bottom: none; }
.side-card:hover { background: var(--bg-card-hover); margin: 0 -18px; padding: 8px 18px; }

.side-card .card-source {
    font-size: 9px; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase;
    color: var(--green); margin-bottom: 2px; display: block;
}

.side-card p {
    font-size: 12px; font-weight: 600;
    line-height: 1.3; color: var(--text-primary);
}

/* Compatible mini */
.compat-mini {
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
    margin-top: auto;
}

.compat-title {
    font-size: 10px; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase;
    color: var(--text-secondary); margin-bottom: 8px;
}

.compat-row { display: flex; flex-wrap: wrap; gap: 6px; }

.compat-pill {
    font-size: 10px; font-weight: 600;
    padding: 4px 10px; border-radius: 20px;
    background: rgba(255,107,53,0.08);
    color: var(--accent);
    border: 1px solid rgba(255,107,53,0.15);
    white-space: nowrap;
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ==================== SELECTION ==================== */
::selection { background: var(--accent); color: #000; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
    .main-grid { grid-template-columns: 320px 1fr 240px; }
}

@media (max-width: 1024px) {
    .main-grid { grid-template-columns: 280px 1fr; }
    .col-right { display: none; }
}

@media (max-width: 768px) {
    .main-grid { grid-template-columns: 1fr; }
    .col-left { max-height: 200px; border-right: none; border-bottom: 1px solid var(--border-color); }
    .center-bottom { grid-template-columns: 1fr; }
    .agent-half { border-right: none; border-bottom: 1px solid var(--border-color); }
    .nav-links { display: none; }
    html, body { overflow: auto; }
    .hero-headline { font-size: 26px; }
}
