/* Platform Analytics Overview - Professional Card Alignment */

.analytics-container {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.analytics-header {
    text-align: center;
    margin-bottom: 3rem;
}

.analytics-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.analytics-header p {
    color: #6b7280;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Ensure all cards have equal height */
.analytics-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #8b4513;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s ease;
}

.analytics-card:hover {
    box-shadow: 0 4px 16px rgba(139, 69, 19, 0.15);
    transform: translateY(-2px);
}

.analytics-card-header {
    margin-bottom: 1.5rem;
}

.analytics-card-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.analytics-card-header p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.analytics-card-body {
    flex: 1;
    margin-bottom: 1.5rem;
}

.analytics-card-footer {
    margin-top: auto;
}

.analytics-insight {
    font-size: 0.8125rem;
    color: #374151;
    line-height: 1.6;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 6px;
}

.analytics-insight strong {
    color: #111827;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.metric-box {
    text-align: center;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.metric-box:hover {
    background: #f3f4f6;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    line-height: 1;
}

.metric-label {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* Bar Charts */
.bar-chart {
    margin-bottom: 1.5rem;
}

.bar-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.bar-label {
    min-width: 100px;
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
}

.bar-track {
    flex: 1;
    height: 24px;
    background: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b4513 0%, #a0522d 100%);
    transition: width 0.3s ease;
}

.bar-value {
    min-width: 40px;
    text-align: right;
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .analytics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .analytics-container {
        padding: 0 1rem;
    }
    
    .analytics-card {
        padding: 1.5rem;
    }
    
    .bar-label {
        min-width: 80px;
        font-size: 0.8125rem;
    }
    
    .metric-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .analytics-header h2 {
        font-size: 1.5rem;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .bar-item {
        flex-wrap: wrap;
    }
    
    .bar-label {
        width: 100%;
        margin-bottom: 0.25rem;
    }
    
    .bar-track {
        flex: 1;
        min-width: 150px;
    }
}
