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

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    overflow-x: hidden;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    text-align: center;
}

.title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    font-weight: 300;
}

.main-content {
    flex: 1;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.overview-section {
    margin-bottom: 3rem;
}

.brand-cards {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.brand-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 280px;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

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

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

.brand-logo {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.brand-score {
    margin-top: 1.5rem;
}

.score-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: #333;
}

.score-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vs-divider {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    background: linear-gradient(135deg, #667eea, #764ba2);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.analysis-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.category-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-button {
    padding: 0.75rem 1.5rem;
    border: none;
    background: #f8f9fa;
    color: #666;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.chart-container {
    height: 400px;
    margin-bottom: 2rem;
    position: relative;
}

.insights-panel {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
}

.insights-panel h3 {
    margin-bottom: 1rem;
    color: #333;
}

.insights-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.insight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.insight-icon {
    font-size: 1.5rem;
}

.detailed-metrics {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.detailed-metrics h3 {
    margin-bottom: 1.5rem;
    color: #333;
}

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

.metric-item {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.metric-item:hover {
    transform: translateY(-2px);
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.metric-name {
    font-weight: 600;
    color: #333;
}

.metric-values {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.metric-value.coke {
    color: #f40000;
}

.metric-value.pepsi {
    color: #004b93;
}

.metric-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.metric-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s ease;
}

.metric-bar-fill.coke {
    background: #f40000;
}

.metric-bar-fill.pepsi {
    background: #004b93;
}

.footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    text-align: center;
    color: #666;
}

@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }
    
    .brand-cards {
        flex-direction: column;
    }
    
    .vs-divider {
        order: 2;
    }
    
    .category-tabs {
        justify-content: center;
    }
    
    .chart-container {
        height: 300px;
    }
}

