/* ============================================================ */
/* MARKET OVERVIEW STYLES */
/* ============================================================ */

.market-overview-container {
    padding: 20px;
    max-width: 1125px;
    margin: 0 auto;
    color: #fff;
}

.market-overview-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Header */
.market-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #333;
    padding-bottom: 15px;
}

.market-header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    color: #caa999;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-actions button {
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid rgba(124, 195, 228, 0.3);
    background: rgba(124, 195, 228, 0.1);
    color: #7CC3E4;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.header-actions button:hover {
    background: rgba(124, 195, 228, 0.2);
}

.update-time {
    font-size: 12px;
    color: #999;
}

/* Sections */
.section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
}

.section h2 {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 600;
    color: #caa999;
}

.section h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 500;
    color: #caa999;
}

/* AI Analysis */
.ai-analysis {
    background: rgba(255, 255, 255, 0.05);
}

.sentiment-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.badge {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
}

.badge.neutral { background: #ffab00; color: #000; }
.badge.bullish { background: #00c853; color: #fff; }
.badge.bearish { background: #ff1744; color: #fff; }

.summary {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.key-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.key-info-grid h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
}

.key-info-grid ul {
    margin: 0;
    padding-left: 20px;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.data-table th,
.data-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #333;
    font-size: 15px;
}

.data-table th {
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
}

/* Indices & Sectors Grid */
.indices-sectors-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Sectors */
.sectors-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.sectors-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sector-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.sector-name {
    font-size: 15px;
    color: #fff;
}

.sector-value {
    font-size: 15px;
    font-weight: 600;
}

.sector-value.positive { color: #7CC3E4; }
.sector-value.negative { color: #FF6B6B; }

/* Gainers/Losers */
.movers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.mover-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    margin-bottom: 5px;
}

.symbol {
    font-weight: 600;
}

.change.positive { color: #7CC3E4; }
.change.negative { color: #FF6B6B; }

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.metric-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* News */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

.news-title {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
}

.news-title:hover {
    color: #7cc3e4;
}

.news-source {
    font-size: 12px;
    color: #999;
}

/* Political Trades */
.action-buy {
    color: #7CC3E4;
    font-weight: 600;
}

.action-sell {
    color: #FF6B6B;
    font-weight: 600;
}

.trade-summary {
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
}

/* Risk Assessment */
.risk-low { color: #7CC3E4; }
.risk-medium { color: #ffab00; }
.risk-high { color: #FF6B6B; }

.overall-score {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

/* Footer */
.market-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #333;
    text-align: center;
    color: #999;
    font-size: 12px;
}

.market-footer p {
    margin: 5px 0;
}
