/* ============================================
   MARKET OVERVIEW - ENHANCED VISUAL STYLES
   ============================================ */

/* Overview Container */
.overview-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Hero Header */
.overview-header {
    background: linear-gradient(135deg, #18181b 0%, #27272a 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.overview-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.3;
    pointer-events: none;
}

.overview-title-section {
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin: 0;
}

.overview-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1.5rem;
}

.overview-session-badge {
    background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Ocean Blue Button Glow Animation */

.overview-date {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

/* Market Indicators Section */
.market-indicators {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    border-left: 4px solid var(--accent);
    padding-left: 1rem;
}

.indicators-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .indicators-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .indicators-grid {
        grid-template-columns: 1fr;
    }
}

/* Indicator Cards */
.indicator-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2),
                0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.indicator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(9, 0, 255, 0.8) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.indicator-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(9, 0, 255, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(9, 0, 255, 0.3),
                0 0 0 1px rgba(9, 0, 255, 0.2) inset,
                0 0 40px rgba(9, 0, 255, 0.15);
}

.indicator-card:hover::before {
    opacity: 1;
}

/* Sentiment Card (Large) */
.sentiment-card {
    grid-column: span 1;
    background: linear-gradient(135deg, #18181b 0%, #27272a 100%);
    border: 2px solid var(--accent);
}

@media (max-width: 1024px) {
    .sentiment-card {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .sentiment-card {
        grid-column: span 1;
    }
}

.indicator-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.indicator-value-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.sentiment-score {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--accent);
    line-height: 1;
}

.sentiment-label {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.sentiment-visual {
    margin-top: 1rem;
}

/* Indicator Values */
.indicator-value {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.indicator-number {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.indicator-change {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.indicator-change.positive {
    color: var(--accent-green);
    background: rgba(34, 197, 94, 0.1);
}

.indicator-change.negative {
    color: var(--accent-red);
    background: rgba(239, 68, 68, 0.1);
}

.indicator-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    margin-top: 0.25rem;
}

/* Sentiment Bar Component */
.sentiment-bar-container {
    width: 100%;
    height: 24px;
    background: var(--bg-muted);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

.sentiment-bar-fill {
    height: 100%;
    background: linear-gradient(90deg,
        #ef4444 0%,    /* Red - Fear */
        #f97316 25%,   /* Orange */
        #0ea5e9 50%,   /* Ocean Blue - Neutral */
        #22c55e 75%,   /* Green */
        #10b981 100%   /* Emerald - Greed */
    );
    transition: width 0.5s ease;
    position: relative;
}

.sentiment-bar-marker {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 100%;
    background: var(--text-primary);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Overview Content Section */
.overview-content-section {
    margin-bottom: 3rem;
}

.overview-content {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.overview-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}

.overview-content h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--accent);
}

.overview-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.overview-content ul, .overview-content ol {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.overview-content li {
    margin-bottom: 0.5rem;
}

.overview-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Pair Sentiment Matrix */
.pair-sentiment-section {
    margin-bottom: 3rem;
}

.sentiment-matrix {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.matrix-table-wrapper {
    overflow-x: auto;
}

.sentiment-table {
    width: 100%;
    border-collapse: collapse;
}

.sentiment-table thead {
    background: var(--bg-muted);
}

.sentiment-table th {
    padding: 1rem;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sentiment-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background var(--transition-fast);
}

.sentiment-table tbody tr:last-child {
    border-bottom: none;
}

.sentiment-table tbody tr:hover {
    background: var(--bg-muted);
}

.sentiment-table td {
    padding: 1rem;
}

.pair-cell {
    font-weight: 600;
}

.pair-link {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.pair-link:hover {
    color: var(--text-primary);
}

.pair-code-sm {
    display: inline-block;
}

.bias-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
}

.bias-indicator.bias-long {
    background: rgba(34, 197, 94, 0.1);
    color: var(--accent-green);
}

.bias-indicator.bias-short {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
}

.bias-indicator.bias-neutral {
    background: rgba(161, 161, 170, 0.1);
    color: var(--text-secondary);
}

.confidence-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.confidence-badge.confidence-high {
    background: rgba(34, 197, 94, 0.15);
    color: var(--accent-green);
}

.confidence-badge.confidence-medium {
    background: rgba(250, 204, 21, 0.15);
    color: #facc15;
}

.confidence-badge.confidence-low {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
}

.fear-score {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--text-primary);
}

.level-value {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Correlation Section */
.correlation-section {
    margin-bottom: 3rem;
}

.correlation-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.correlation-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all var(--transition-base);
}

.correlation-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.correlation-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--accent);
}

.correlation-text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Session Context */
.session-context-section {
    margin-bottom: 3rem;
}

.context-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.context-card {
    background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-muted) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all var(--transition-base);
}

.context-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.context-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.context-list {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .overview-container {
        padding: 1rem 0.75rem;
    }

    .overview-header {
        padding: 2rem 1.5rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .sentiment-score {
        font-size: 2.5rem;
    }

    .sentiment-label {
        font-size: 1rem;
    }

    .indicator-number {
        font-size: 1.5rem;
    }

    .overview-content {
        padding: 1.5rem;
    }

    .correlation-cards {
        grid-template-columns: 1fr;
    }

    .context-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation */

.indicator-card {
}

.indicator-card:nth-child(1) { animation-delay: 0.1s; }
.indicator-card:nth-child(2) { animation-delay: 0.2s; }
.indicator-card:nth-child(3) { animation-delay: 0.3s; }
.indicator-card:nth-child(4) { animation-delay: 0.4s; }
