/**
 * Horizontal Bar Chart Styles - Light Theme for Flex Mag
 */

.bar-chart-container {
    background: #fff;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
    padding: 1.5rem;
    color: #222;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    max-width: 500px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.bar-chart-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.overall-rating {
    background: #00c853;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    min-width: 3rem;
    text-align: center;
}

.bar-chart-title {
    color: #222;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
}

.info-icon {
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.info-icon:hover {
    color: #222;
}

.bar-chart-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bar-row {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 1rem;
    align-items: center;
}

.bar-label {
    color: #222;
    font-size: 0.95rem;
    font-weight: 500;
}

.bar-track {
    position: relative;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: visible;
}

.bar-center-marker {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 12px;
    background: #ddd;
    border-radius: 1px;
}

.bar-fill {
    position: absolute;
    top: 0;
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .bar-chart-container {
        padding: 1rem;
    }
    
    .bar-row {
        grid-template-columns: 90px 1fr;
        gap: 0.75rem;
    }
    
    .bar-label {
        font-size: 0.85rem;
    }
    
    .overall-rating {
        font-size: 1.1rem;
        padding: 0.4rem 0.6rem;
        min-width: 2.5rem;
    }
    
    .bar-chart-title {
        font-size: 1.1rem;
    }
}
