/**
 * Market Intelligence Section Styles
 * Sticky content for SEO traffic
 */

.market-data-section {
    background: #f8faff;
    padding: 50px 0; /* Reduced from 80px */
}

.data-card {
    background: white;
    border-radius: 12px;
    padding: 20px; /* Reduced from 25px */
    box-shadow: var(--shadow-sm);
    height: 100%;
    border-top: 4px solid var(--secondary-color);
}

.data-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px; /* Reduced from 20px */
    padding-bottom: 12px; /* Reduced from 15px */
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
    gap: 8px;
}

.data-header h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 0;
}

.trend-badge {
    background: rgba(24, 162, 118, 0.1);
    color: var(--secondary-color);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.data-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px; /* Reduced from 12px */
    font-size: 0.9rem; /* Reduced from 0.95rem */
    gap: 10px;
}

.data-label {
    color: var(--text-light);
    flex: 1;
}

.data-value {
    font-weight: 600;
    color: var(--text-dark);
    text-align: right;
    white-space: nowrap;
}

.source-note {
    font-size: 0.8rem;
    color: #999;
    margin-top: 15px; /* Reduced from 20px */
    display: block;
    text-align: right;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
    .market-data-section {
        padding: 30px 0;
    }

    /* Fix the flex row from overflowing — remove min-width constraint */
    .market-data-section .row > div {
        min-width: 0 !important;
        width: 100% !important;
        flex: 1 1 100% !important;
    }

    .data-header h3 {
        font-size: 1rem;
    }
    
    .data-card {
        padding: 14px;
    }
    
    .data-row {
        margin-bottom: 8px;
    }
}

