/* ===========================
   📊 FINANCIAL STYLES
   =========================== */

.financials-header {
    text-align: center;
    margin-bottom: 30px;
}

.financials-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.financials-header .subtitle {
    color: #64748b;
    font-size: 16px;
}

/* Financial Stats Grid */
.financial-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stat-card h3 {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 13px;
    color: #94a3b8;
}

/* Financial Sections */
.financial-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.financial-section {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.financial-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

/* Earnings Calendar */
.earnings-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #f8fafc;
}

.earnings-date {
    font-size: 12px;
    font-weight: 600;
    color: #3b82f6;
    min-width: 80px;
}

.earnings-company strong {
    display: block;
    margin-bottom: 4px;
}

.earnings-estimate {
    font-size: 12px;
    color: #64748b;
}

/* Health Scores */
.health-score-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #f8fafc;
}

.rank {
    font-size: 20px;
    font-weight: 700;
    color: #94a3b8;
    min-width: 40px;
}

.company-info {
    flex: 1;
    margin: 0 12px;
}

.health-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    margin-top: 6px;
    overflow: hidden;
}

.health-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.score {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

/* AI Revenue */
.ai-revenue-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #f8fafc;
}

.ai-percentage {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

.revenue {
    font-size: 18px;
    font-weight: 700;
    color: #10b981;
}

/* Financial Company Grid */
.financial-company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.financial-company-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.financial-company-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

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

.company-header h4 {
    font-size: 18px;
    font-weight: 700;
}

.health-badge {
    padding: 6px 12px;
    border-radius: 20px;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.company-metrics {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-label {
    font-size: 13px;
    color: #64748b;
}

.metric-value {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
}

.metric-value.profitable {
    color: #10b981;
}

.metric-value.unprofitable {
    color: #ef4444;
}

/* Responsive */
@media (max-width: 768px) {
    .financial-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .financial-sections {
        grid-template-columns: 1fr;
    }
    
    .financial-company-grid {
        grid-template-columns: 1fr;
    }
}
