/* ===================================
   REDFIN MARKET TRENDS - COMPLETE CSS
   =================================== */

/* Widget Container */
.rmt-widget {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8f9fa;
    border-radius: 12px;
}

/* Header */
.rmt-header {
    text-align: center;
    margin-bottom: 30px;
}

.rmt-title {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.rmt-subtitle {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0;
}

/* Stats Row - 3 Purple Gradient Cards */
.rmt-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.rmt-stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.rmt-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.rmt-stat-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 10px;
    font-weight: 600;
}

.rmt-stat-value {
    font-size: 32px;
    font-weight: 700;
    color: white;
}

/* Chart Container */
.rmt-chart-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: 350px;
    position: relative;
}

.rmt-chart-container canvas {
    max-height: 100%;
}

/* Year over Year */
.rmt-yoy {
    text-align: center;
    font-size: 18px;
    margin: 20px 0;
    color: #2c3e50;
}

.rmt-yoy-positive {
    color: #10b981;
    font-weight: 700;
    font-size: 24px;
}

.rmt-yoy-negative {
    color: #ef4444;
    font-weight: 700;
    font-size: 24px;
}

/* Details Button */
.rmt-details-btn {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 30px auto 0;
    padding: 16px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.rmt-details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.rmt-details-btn:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .rmt-widget {
        padding: 20px;
    }
    
    .rmt-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .rmt-title {
        font-size: 24px;
    }
    
    .rmt-chart-container {
        height: 250px;
        padding: 20px;
    }
}
