* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f5f5;
    color: #333;
}

.container {
    width: 100%;
    min-height: 100vh;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #666;
    font-size: 1.1rem;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.overview {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.brand-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    min-width: 250px;
    transition: transform 0.2s;
}

.brand-card:hover {
    transform: translateY(-5px);
}

.brand-card.coke {
    border-top: 4px solid #F40009;
}

.brand-card.pepsi {
    border-top: 4px solid #004B93;
}

.brand-card h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.overall-score {
    font-size: 3rem;
    font-weight: 700;
    margin: 1rem 0;
}

.brand-card.coke .overall-score {
    color: #F40009;
}

.brand-card.pepsi .overall-score {
    color: #004B93;
}

.score-label {
    color: #666;
    font-size: 0.9rem;
}

.vs-divider {
    font-size: 2rem;
    font-weight: 700;
    color: #999;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.category-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.category-card h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #333;
}

.comparison-bars {
    margin: 1rem 0;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.bar-label {
    min-width: 80px;
    font-size: 0.9rem;
    font-weight: 500;
}

.bar-container {
    flex: 1;
    height: 28px;
    background: #f0f0f0;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    border-radius: 14px;
    transition: width 1s ease-out;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0.5rem;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
}

.bar-fill.coke {
    background: linear-gradient(90deg, #F40009, #ff4444);
}

.bar-fill.pepsi {
    background: linear-gradient(90deg, #004B93, #0066cc);
}

.winner-badge {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.charts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.chart-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.chart-container h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.ai-insights {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.ai-insights h3 {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.insight-content {
    line-height: 1.8;
    color: #555;
}

.insight-section {
    margin-bottom: 1.5rem;
}

.insight-section h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .overview {
        flex-direction: column;
        gap: 1rem;
    }

    .vs-divider {
        transform: rotate(90deg);
    }

    .categories-grid,
    .charts-section {
        grid-template-columns: 1fr;
    }

    .chart-container {
        min-width: 0;
    }
}

