/* Gamma Dashboard Standalone - Clean Stylesheet */

:root {
    --bg-primary: #0a0a1a;
    --bg-card: #12122a;
    --bg-input: #0d0d1f;
    --border: #1e1e3a;
    --border-hover: #2a2a5a;
    --text: #e0e0e0;
    --text-muted: #6666aa;
    --text-dim: #555577;
    --accent-blue: #42a5f5;
    --accent-purple: #7c4dff;
    --accent-green: #4caf50;
    --accent-red: #ef5350;
    --accent-orange: #ff9800;
    --accent-gold: #ffd700;
    --positive: #4caf50;
    --negative: #ef5350;
    --radius: 6px;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg-primary); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 13px; line-height: 1.4; }
a { color: var(--accent-blue); text-decoration: none; transition: color 0.15s; }
a:hover { color: #90caf9; }

/* Header */
.header {
    padding: 8px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(180deg, #12122a 0%, var(--bg-primary) 100%);
    height: 44px;
}
.header .logo {
    font-size: 14px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
}
.header .search {
    padding: 5px 12px;
    font-size: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-input);
    color: var(--text);
    width: 140px;
    outline: none;
    transition: border-color 0.15s;
}
.header .search:focus { border-color: var(--accent-blue); }
.header .market-status { font-size: 10px; padding: 3px 8px; border-radius: 10px; }
.header .nav { margin-left: auto; display: flex; gap: 6px; font-size: 11px; }
.header .nav a {
    padding: 4px 10px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all 0.15s;
}
.header .nav a:hover { border-color: var(--accent-blue); color: var(--accent-blue); background: rgba(66,165,245,0.08); }
.header .nav a.active { background: var(--accent-blue); color: #fff; border-color: var(--accent-blue); }

/* Landing Page */
.landing {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 44px);
    padding: 40px 20px;
}
.landing h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.landing .subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 32px; }
.landing .search-large {
    padding: 12px 20px;
    font-size: 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text);
    width: 320px;
    outline: none;
    text-align: center;
    transition: border-color 0.2s;
}
.landing .search-large:focus { border-color: var(--accent-blue); }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 40px;
    max-width: 800px;
    width: 100%;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
}
.feature-card:hover { border-color: var(--accent-blue); transform: translateY(-2px); }
.feature-card h3 { font-size: 13px; margin-bottom: 4px; }
.feature-card p { font-size: 11px; color: var(--text-muted); }

/* Split-View Layout */
.split-view {
    display: grid;
    grid-template-columns: 60% 40%;
    height: calc(100vh - 44px);
}
.panel-left { padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.panel-left .chart-box:first-child { flex: 1; min-height: 0; }
.panel-right { overflow-y: auto; padding: 8px; border-left: 1px solid var(--border); background: #0d0d20; }

/* Chart Boxes */
.chart-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px;
    margin-bottom: 8px;
    transition: border-color 0.2s;
}
.chart-box:hover { border-color: var(--border-hover); }
.chart-box h3 {
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
}

/* Key Levels */
.key-levels {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 10px 12px;
    background: linear-gradient(135deg, var(--bg-card) 0%, #1a1a3e 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 8px;
}
.kl-item .label { font-size: 9px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.kl-item .val { font-weight: 700; font-family: var(--font-mono); font-size: 13px; }

/* Tabs */
.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
    padding: 4px;
    background: var(--bg-primary);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.tab {
    padding: 6px 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    transition: all 0.15s;
    letter-spacing: 0.3px;
}
.tab:hover { color: #aaaacc; background: rgba(66,165,245,0.05); }
.tab.active { background: linear-gradient(135deg, #1a3a6e 0%, #2a1a5e 100%); color: var(--accent-blue); box-shadow: 0 0 12px rgba(66,165,245,0.15); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Tables */
.chart-box table { width: 100%; border-collapse: collapse; font-size: 11px; }
.chart-box th { text-align: left; padding: 4px 6px; color: var(--text-muted); font-size: 9px; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--border); }
.chart-box td { padding: 4px 6px; border-bottom: 1px solid rgba(30,30,58,0.5); }
.chart-box tr:hover { background: rgba(66,165,245,0.03); }

/* Info Tooltips */
.info-icon { display: inline-block; cursor: help; font-size: 12px; color: #5555aa; margin-left: 4px; }
.info-icon:hover { color: var(--accent-blue); }
.info-icon:hover::after {
    content: attr(data-tip);
    position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
    background: #1a1a3e; border: 1px solid var(--accent-blue); color: #c0c0d0;
    padding: 12px 14px; border-radius: var(--radius); font-size: 12px; font-weight: 400;
    text-transform: none; letter-spacing: normal; white-space: normal;
    width: 320px; z-index: 99999; line-height: 1.5;
    box-shadow: 0 8px 24px rgba(0,0,0,0.7); pointer-events: none;
}

/* Utility */
.positive { color: var(--positive); }
.negative { color: var(--negative); }
.mono { font-family: var(--font-mono); }
.hidden { display: none !important; }

/* Loading */
.loading-overlay {
    position: fixed; inset: 0;
    background: rgba(10,10,26,0.97);
    display: flex; align-items: center; justify-content: center;
    z-index: 999; flex-direction: column; gap: 12px;
}
.spinner {
    width: 36px; height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }

/* Scrollbar */
.panel-right::-webkit-scrollbar { width: 5px; }
.panel-right::-webkit-scrollbar-track { background: transparent; }
.panel-right::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.panel-right::-webkit-scrollbar-thumb:hover { background: #3a3a5a; }
