/**
 * TheWhisperNumber.com Stylesheet
 * Professional financial site — dark theme, gold accent for whispers
 */

/* ===========================
   CSS Variables
   =========================== */

:root {
    /* Colors */
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --bg-hover: #30363d;
    
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    
    --border-color: #30363d;
    --border-subtle: #21262d;
    
    --accent: #f59e0b;  /* Gold for whisper numbers */
    --accent-hover: #fbbf24;
    --accent-dim: rgba(245, 158, 11, 0.1);
    
    --link-color: #8b949e;
    --link-hover: #c9d1d9;
    
    --green: #3fb950;
    --green-bg: rgba(63, 185, 80, 0.1);
    --red: #f85149;
    --red-bg: rgba(248, 81, 73, 0.1);
    
    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --container-width: 1400px;
    --sidebar-width: 380px;
    
    /* Border Radius */
    --radius: 8px;
    --radius-sm: 6px;
}

/* ===========================
   Reset & Base
   =========================== */

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

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

/* ===========================
   Tabular Numbers
   =========================== */

.tabnum,
td[class*="tabnum"],
.earnings-table td:nth-child(n+3),
.historical-table td:nth-child(n+3),
.ticker-price,
.ticker-change,
.estimate-value,
.spread-badge,
.market-price,
.market-change,
.market-summary-change {
    font-variant-numeric: tabular-nums;
}

/* ===========================
   Header (sticky)
   =========================== */

header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px 0;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.logo-icon {
    width: 24px;
    height: 24px;
    color: var(--accent);
}

.logo-main {
    color: var(--text-primary);
}

.logo-whisper {
    color: var(--accent);
}

.search-box {
    flex: 1;
    max-width: 600px;
    display: flex;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.search-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box button {
    background: transparent;
    border: none;
    padding: 10px 14px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
}

.search-box button:hover {
    color: var(--accent);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.market-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red);
}

.market-status.open .status-dot {
    background: var(--green);
    box-shadow: 0 0 6px rgba(63, 185, 80, 0.5);
    animation: pulse 2s infinite;
}

.market-status.premarket .status-dot,
.market-status.afterhours .status-dot {
    background: var(--accent);
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.4);
}

.market-status.closed .status-dot {
    background: var(--red);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===========================
   Market Bar (summary line)
   =========================== */

.market-bar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}

.market-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.market-summary {
    display: flex;
    align-items: center;
    gap: 16px;
}

.market-summary-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.market-summary-divider {
    color: var(--border-color);
    font-size: 12px;
}

.market-summary-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    transition: opacity 0.2s;
}

.market-summary-item:hover {
    opacity: 0.8;
}

.market-summary-name {
    color: var(--text-secondary);
    font-weight: 500;
}

.market-summary-change {
    font-weight: 600;
    font-size: 12px;
}

.market-summary-change.positive {
    color: var(--green);
}

.market-summary-change.negative {
    color: var(--red);
}

.market-summary-count {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Legacy market items (keep for compatibility) */
.market-items {
    display: flex;
    gap: 32px;
    justify-content: center;
}

.market-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 0;
    transition: opacity 0.2s ease;
}

.market-item:hover {
    opacity: 0.8;
}

.market-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.market-price {
    font-size: 14px;
    font-weight: 600;
}

.market-change {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

.market-change.positive {
    color: var(--green);
    background: var(--green-bg);
}

.market-change.negative {
    color: var(--red);
    background: var(--red-bg);
}

/* ===========================
   Trending Bar
   =========================== */

.trending-bar {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}

.trending-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trending-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trending-tickers {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.trending-ticker {
    padding: 4px 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    color: var(--text-secondary);
}

.trending-ticker:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ===========================
   Main Layout Grid
   =========================== */

main {
    padding: 24px 0 48px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: 24px;
}

/* ===========================
   Section Cards
   =========================== */

.section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
}

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

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.section-link {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
    font-weight: 500;
}

.section-link:hover {
    color: var(--accent);
}

/* ===========================
   Hero / Featured Whisper
   =========================== */

.hero-whisper {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    padding: 24px;
    text-align: center;
}

.hero-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.hero-badge {
    display: inline-block;
    background: var(--accent-dim);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.hero-symbol {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: color 0.2s;
}

a.hero-symbol:hover {
    color: var(--accent);
}

.hero-company {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.hero-comparison {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 16px;
}

.hero-divider {
    display: flex;
    align-items: center;
    color: var(--text-muted);
}

.hero-spread {
    margin-top: 12px;
}

.estimate-box {
    flex: 1;
    max-width: 180px;
}

.estimate-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-weight: 600;
}

.estimate-value {
    font-size: 24px;
    font-weight: 800;
}

.estimate-value.whisper {
    color: var(--accent);
    font-size: 26px;
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.vs-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
}

/* ===========================
   Tabs
   =========================== */

.tabs {
    display: flex;
    gap: 2px;
    background: var(--bg-primary);
    padding: 4px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.tab {
    flex: 1;
    padding: 8px 16px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.tab:hover {
    color: var(--text-primary);
}

.tab.active {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* ===========================
   Earnings List (mover pattern)
   =========================== */

.earnings-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.earnings-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.earnings-item:hover {
    border-color: var(--accent);
    background: var(--bg-hover);
    transform: translateX(2px);
}

.earnings-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.earnings-symbol {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.earnings-company {
    font-size: 12px;
    color: var(--text-muted);
}

.earnings-date {
    font-size: 12px;
    color: var(--text-secondary);
    margin-left: auto;
    padding-right: 12px;
}

.earnings-time-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
}

.earnings-time-badge.amc {
    background: rgba(59, 130, 246, 0.15);
    color: #60A5FA;
}

.earnings-time-badge.bmo {
    background: rgba(168, 85, 247, 0.15);
    color: #C084FC;
}

.earnings-estimates {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: right;
}

.consensus-value {
    font-size: 13px;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.whisper-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

.spread-badge {
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    margin-left: 12px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.spread-badge.positive {
    color: var(--green);
    background: var(--green-bg);
}

.spread-badge.negative {
    color: var(--red);
    background: var(--red-bg);
}

/* ===========================
   Table (Earnings)
   =========================== */

.earnings-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.earnings-table thead {
    background: var(--bg-primary);
}

.earnings-table th {
    padding: 12px 14px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color);
}

.earnings-table tbody tr {
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.15s ease;
}

.earnings-table tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.02);
}

.earnings-table tbody tr:hover {
    background: rgba(245, 158, 11, 0.08);
    transform: scale(1.002);
}

.earnings-table td {
    padding: 14px;
    font-size: 13px;
}

.table-symbol {
    font-weight: 700;
    color: var(--text-primary);
}

.table-company {
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-secondary);
    font-size: 12px;
    display: block;
    margin-top: 2px;
}

.table-whisper {
    color: var(--accent);
    font-weight: 700;
    font-size: 14px;
}

/* ===========================
   Day Section (Calendar)
   =========================== */

.day-section {
    margin-bottom: 24px;
}

.day-section.today .day-header {
    border-left: 3px solid var(--accent);
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: var(--bg-tertiary);
    border-radius: var(--radius) var(--radius) 0 0;
    border: 1px solid var(--border-color);
    border-bottom: none;
}

.day-name {
    font-size: 14px;
    font-weight: 700;
}

.day-date {
    font-size: 13px;
    color: var(--text-secondary);
}

.day-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 16px;
}

.today-badge {
    display: inline-block;
    background: var(--accent);
    color: #000;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 8px;
    vertical-align: middle;
}

/* ===========================
   Calendar Navigation
   =========================== */


/* ===========================
   Calendar Navigation & Summary
   =========================== */

.calendar-week-summary {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cal-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.cal-nav-btn:hover {
    border-color: var(--accent);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.cal-nav-btn:active {
    transform: translateY(0);
}

.cal-nav-today {
    padding: 0 16px;
    font-size: 13px;
    font-weight: 600;
    background: var(--accent-dim);
    border-color: var(--accent);
    color: var(--accent);
}

.cal-nav-today:hover {
    background: var(--accent);
    color: #000;
}

.cal-nav-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    padding: 0 12px;
    white-space: nowrap;
}

/* ===========================
   Calendar Grid (Mon-Fri)
   =========================== */

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.calendar-day {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 200px;
    max-height: 800px;
}

.calendar-day.today {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.calendar-day-header {
    background: var(--bg-tertiary);
    padding: 14px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.calendar-day.today .calendar-day-header {
    background: rgba(245, 158, 11, 0.12);
    border-bottom-color: rgba(245, 158, 11, 0.3);
}

.calendar-day-name {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.calendar-day-date {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.calendar-count-badge {
    display: inline-block;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    min-width: 28px;
    text-align: center;
}

.calendar-day.today .calendar-count-badge {
    background: var(--accent-dim);
    border-color: var(--accent);
    color: var(--accent);
}

.calendar-today-badge {
    display: inline-block;
    background: var(--accent);
    color: #000;
    font-size: 9px;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 3px;
    letter-spacing: 0.3px;
}

.calendar-day-content {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    overflow-x: hidden;
}

.calendar-day-content::-webkit-scrollbar {
    width: 6px;
}

.calendar-day-content::-webkit-scrollbar-track {
    background: transparent;
}

.calendar-day-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.calendar-day-content::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ===========================
   Calendar Time Sections (BMO/AMC)
   =========================== */

.calendar-time-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.calendar-time-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    margin-bottom: 2px;
}

.calendar-time-count {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-primary);
    padding: 2px 6px;
    border-radius: 3px;
}

.calendar-companies-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* ===========================
   Company Cards
   =========================== */

.calendar-company-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
    text-decoration: none;
    cursor: pointer;
}

.calendar-company-card:hover {
    background: var(--bg-hover);
    border-color: var(--border-color);
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.calendar-company-card:active {
    transform: translateX(0);
}

.calendar-company-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.calendar-company-symbol {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.2px;
}

.calendar-company-meta {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    font-variant-numeric: tabular-nums;
}

.whisper-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: var(--accent-dim);
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 9px;
    font-weight: 800;
    border-radius: 3px;
    cursor: help;
}

/* ===========================
   Empty State
   =========================== */

.calendar-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 48px 16px;
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
    flex: 1;
}

.calendar-empty svg {
    stroke: currentColor;
}

/* ===========================
   Calendar Legend
   =========================== */

.calendar-legend {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

.legend-item .earnings-time-badge,
.legend-item .whisper-indicator {
    margin: 0;
}

/* ===========================
   Responsive Calendar
   =========================== */

/* Tablet: 2-3 columns */
@media (min-width: 768px) and (max-width: 1199px) {
    .calendar-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile: single column, larger touch targets */
@media (max-width: 767px) {
    .calendar-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .calendar-day {
        max-height: 500px;
    }
    
    .calendar-company-card {
        padding: 12px;
        gap: 12px;
    }
    
    .calendar-company-symbol {
        font-size: 14px;
    }
    
    .calendar-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .cal-nav-label {
        order: -1;
        width: 100%;
        text-align: center;
        padding-bottom: 8px;
    }
}


/* ===========================
   Market Indicators Dashboard
   =========================== */

.indicators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.indicator-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
    transition: all 0.2s ease;
}

.indicator-card:hover {
    border-color: var(--border-color);
    background: var(--bg-hover);
}

.indicator-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.indicator-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-variant-numeric: tabular-nums;
}

.indicator-sublabel {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ===========================
   Articles Grid
   =========================== */

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.article-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
    display: flex;
    gap: 12px;
    transition: all 0.2s;
    text-decoration: none;
}

.article-card:hover {
    background: var(--bg-hover);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.article-logo {
    flex-shrink: 0;
}

.article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.article-headline {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.article-summary {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .indicators-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
}
/* ===========================
   Enhanced Ticker Page Styles
   =========================== */

/* Larger, more prominent ticker header */
.ticker-header-enhanced {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
    gap: 32px;
}

.ticker-symbol-large {
    font-size: 40px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ticker-price-section {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.ticker-price-large {
    font-size: 48px;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1;
}

.ticker-change-large {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.quote-stats {
    display: flex;
    gap: 24px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

/* Countdown badge for upcoming earnings */
.countdown-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: var(--accent-dim);
    color: var(--accent);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* Last reported earnings card */
.last-reported-card {
    padding: 12px;
}

/* Enhanced historical earnings table */
.historical-table-enhanced {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.historical-table-enhanced thead {
    background: var(--bg-primary);
}

.historical-table-enhanced th {
    text-align: left;
    padding: 12px 14px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg-primary);
    border-bottom: 2px solid var(--border-color);
}

.historical-table-enhanced td {
    padding: 16px 14px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-subtle);
}

.historical-table-enhanced tbody tr {
    transition: background 0.15s ease;
}

.historical-table-enhanced tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.historical-table-enhanced tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Make Actual EPS stand out - it's the most important */
.actual-eps-cell {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
}

/* Surprise percentage badges - smaller, inline */
.surprise-pct {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
    font-variant-numeric: tabular-nums;
}

.surprise-pct.positive {
    color: var(--green);
    background: var(--green-bg);
}

.surprise-pct.negative {
    color: var(--red);
    background: var(--red-bg);
}

/* Mobile adjustments for enhanced ticker page */
@media (max-width: 768px) {
    .ticker-header-enhanced {
        flex-direction: column;
        gap: 20px;
    }
    
    .ticker-symbol-large {
        font-size: 32px;
    }
    
    .ticker-price-section {
        align-items: flex-start;
        text-align: left;
    }
    
    .ticker-price-large {
        font-size: 36px;
    }
    
    .ticker-change-large {
        font-size: 16px;
    }
    
    .quote-stats {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .stat-item {
        min-width: 100px;
    }
    
    .historical-table-enhanced td {
        padding: 12px 8px;
        font-size: 13px;
    }
    
    .actual-eps-cell {
        font-size: 14px;
    }
    
    .historical-table-enhanced th {
        padding: 10px 8px;
        font-size: 10px;
    }
}

/* Improve spacing consistency */
.section {
    margin-bottom: 28px;
}

.section-header {
    margin-bottom: 20px;
}

/* Better result badges with improved contrast */
.result-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.result-badge.beat {
    color: var(--green);
    background: var(--green-bg);
    border: 1px solid rgba(63, 185, 80, 0.3);
}

.result-badge.miss {
    color: var(--red);
    background: var(--red-bg);
    border: 1px solid rgba(248, 81, 73, 0.3);
}

.result-badge.meet {
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* ==========================================
   TICKER TAPE
   ========================================== */
.ticker-tape {
    background: #0a0e14;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    white-space: nowrap;
    height: 32px;
    display: flex;
    align-items: center;
    font-size: 13px;
}

.ticker-tape-track {
    display: inline-flex;
    animation: ticker-scroll 40s linear infinite;
    gap: 0;
}

@keyframes ticker-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-33.333%);
    }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}

.ticker-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.ticker-symbol {
    color: var(--text-muted);
    font-weight: 600;
    margin-right: 6px;
}

.ticker-price {
    color: var(--text-primary);
    margin-right: 6px;
}

.ticker-change {
    font-size: 12px;
    font-weight: 600;
}

.ticker-change.positive {
    color: var(--green);
}

.ticker-change.negative {
    color: var(--red);
}

.ticker-change.neutral {
    color: var(--text-muted);
}

/* Styled scrollbar for calendar days */
.calendar-day::-webkit-scrollbar {
    width: 8px;
}

.calendar-day::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-radius: 4px;
}

.calendar-day::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

.calendar-day::-webkit-scrollbar-thumb:hover {
    background: #d97706;
}

/* Table company name truncation */
