/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
    font-size: 14px;
}

/* Header */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    margin-bottom: 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.blockchain-logo {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.vs-text {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.header-subtitle {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

/* Responsive logo adjustments */
@media (max-width: 768px) {
    .logo-container {
        gap: 1rem;
    }
    
    .blockchain-logo {
        height: 60px;
    }
    
    .vs-text {
        font-size: 2rem;
    }
    
    .header-subtitle {
        font-size: 1rem;
    }
}

/* Main content */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Metric sections */
.metric-section {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e1e5e9;
}

.metric-section h2 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    border-bottom: 3px solid #3498db;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.source {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.source a {
    color: #3498db;
    text-decoration: none;
}

.source a:hover {
    text-decoration: underline;
}

/* Chart containers */
.chart-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.chart-container:last-child {
    margin-bottom: 0;
}

.chart-wrapper {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

.chart-container-large {
    margin-bottom: 3rem;
}

.chart-wrapper-large {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 1.5rem 1.5rem 2.5rem 1.5rem;
    border: 1px solid #e9ecef;
    height: 420px;
    width: 100%;
}

.chart-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin: 0.5rem 0 1rem 0;
    font-weight: 400;
    font-style: italic;
}

.chart-wrapper.single {
    grid-column: 1 / -1;
    max-width: 600px;
    margin: 0 auto;
}

.chart-wrapper h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: #495057;
    font-size: 1.1rem;
    font-weight: 500;
}

.chart-wrapper canvas {
    max-height: 300px;
    width: 100% !important;
    height: auto !important;
}

/* Solana/Ethereum specific styling */
.chart-wrapper h3:contains("Solana") {
    color: #9945ff;
}

.chart-wrapper h3:contains("Ethereum") {
    color: #627eea;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 3rem;
}

footer p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

#last-updated {
    font-weight: 500;
}

/* Responsive design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .chart-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .chart-wrapper.single {
        grid-column: 1;
    }

    .metric-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .metric-section h2 {
        font-size: 1.5rem;
    }

    main {
        padding: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1.5rem 1rem;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .metric-section {
        padding: 1rem;
    }

    .chart-wrapper {
        padding: 1rem;
    }
}

/* Loading state */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: #666;
    font-style: italic;
}

/* Chart colors for consistency */
.solana-color {
    color: #9945ff;
}

.ethereum-color {
    color: #627eea;
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

/* Hover effects */
.chart-wrapper:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Executive Summary */
.executive-summary {
    background: #f8f9fa;
    color: #000;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.executive-summary h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #000;
    border: none;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.summary-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.summary-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #000;
}

.comparison {
    text-align: left;
}

.solana-stat {
    color: #000;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

.ethereum-stat {
    color: #000;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0.5rem 0;
}



/* Data point highlighting */
.metric-highlight {
    background: linear-gradient(90deg, rgba(153, 69, 255, 0.1) 0%, rgba(98, 126, 234, 0.1) 100%);
    border-left: 4px solid #3498db;
    padding: 0.5rem;
    margin: 1rem 0;
    border-radius: 0 4px 4px 0;
}
