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

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

.container {
    width: 100%;
    padding: 40px 20px;
    overflow-y: auto;
    max-height: 100vh;
}

header {
    text-align: center;
    margin-bottom: 50px;
}

h1 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-weight: 700;
}

.subtitle {
    font-size: 1rem;
    color: #666;
    font-weight: 400;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.brand-header {
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    color: white;
    font-weight: 600;
}

.coke-header {
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
}

.pepsi-header {
    background: linear-gradient(135deg, #004b87 0%, #003d6b 100%);
}

.brand-name {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.brand-logo {
    font-size: 3rem;
}

.categories-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    gap: 40px;
}

.category-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease;
}

.category-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.category-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.category-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 25px;
}

.chart-wrapper {
    position: relative;
    height: 280px;
    margin-bottom: 20px;
}

.stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.stat-box {
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.stat-box.coke {
    background: #fff0f2;
    border: 1px solid #f0c0c8;
}

.stat-box.pepsi {
    background: #f0f4f8;
    border: 1px solid #c0d8f0;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
}

.stat-box.coke .stat-value {
    color: #c41e3a;
}

.stat-box.pepsi .stat-value {
    color: #004b87;
}

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

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid #e0e0e0;
    border-top-color: #1a1a1a;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-container p {
    color: #666;
    font-size: 1rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        padding: 20px;
    }

    .chart-wrapper {
        height: 300px;
    }
}

