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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 52px;
    width: auto;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #1a1a1a;
}

/* Main content */
.main {
    padding: 2rem 0;
}

/* Hero section */
.hero {
    text-align: center;
    padding: 4rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: rgba(220, 38, 38, 0.8);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.hero-description {
    font-size: 1.1rem;
    color: #888;
    line-height: 1.6;
}

/* Section titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    color: #1a1a1a;
}

/* Metric cards */
.metrics {
    margin-bottom: 4rem;
}

.metric-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease;
}

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

.metric-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.metric-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.metric-importance {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #c3e6cb;
    padding: 1.5rem 0 1.5rem 3.5rem;
    margin: 0 -2rem 2rem -2rem;
    border-radius: 0;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    width: calc(100% + 4rem);
}

.metric-importance::before {
    content: "★";
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 1.5rem;
    color: #155724;
}

.metric-importance h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #155724;
}

.metric-importance p {
    color: #155724;
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
}

.metric-importance:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

/* Platform tabs */
.platform-tabs {
    margin-top: 2rem;
}

.tab-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.tab-button {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.tab-button:hover {
    color: #1a1a1a;
}

.tab-button.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background-color: rgba(102, 126, 234, 0.1);
}

.platform-icon {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.tab-content {
    position: relative;
}

.tab-pane {
    display: none !important;
}

.tab-pane.active {
    display: block !important;
}

.tab-pane h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

/* Code blocks */
.code-block {
    background: #1a1a1a;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    position: relative;
}

.code-block pre {
    margin: 0;
    padding: 1.5rem;
    overflow-x: auto;
    background: transparent !important;
}

.code-block code {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #e0e0e0;
    background: transparent !important;
}

/* Prism.js customizations */
.code-block .token.comment {
    color: #6a737d !important;
    font-style: italic;
}

.code-block .token.keyword {
    color: #d73a49 !important;
}

.code-block .token.string {
    color: #032f62 !important;
}

.code-block .token.function {
    color: #6f42c1 !important;
}

.code-block .token.number {
    color: #005cc5 !important;
}

.code-block .token.operator {
    color: #d73a49 !important;
}

.code-block .token.punctuation {
    color: #24292e !important;
}



/* Thresholds */
.thresholds {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.threshold {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
}

.threshold.good {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.threshold.meh {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.threshold.bad {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.threshold-label {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.threshold-value {
    font-size: 0.9rem;
}

/* Scoring section */
.scoring {
    margin-bottom: 4rem;
}

.scoring-content {
    max-width: 800px;
    margin: 0 auto;
}

.scoring-section {
    margin-bottom: 2rem;
}

.scoring-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.scoring-section p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.scoring-section code {
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 0.9rem;
    color: #e83e8c;
}

/* Resources section */
.resources {
    margin-bottom: 4rem;
}

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

.resource-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease;
}

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

.resource-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.resource-card ul {
    list-style: none;
}

.resource-card li {
    margin-bottom: 0.5rem;
}

.resource-card a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s ease;
}

.resource-card a:hover {
    color: #5a6fd8;
    text-decoration: underline;
}

/* Footer */
.footer {
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    color: #666;
    font-size: 0.9rem;
}

.footer a {
    color: #667eea;
    text-decoration: none;
}

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

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .metric-card {
        padding: 1.5rem;
    }
    
    .metric-title {
        font-size: 1.5rem;
    }
    
    .metric-importance {
        padding: 1rem;
    }
    
    .metric-importance::before {
        font-size: 1.2rem;
        top: 0.75rem;
        right: 0.75rem;
    }
    
    .tab-buttons {
        flex-direction: column;
        gap: 0;
    }
    
    .tab-button {
        border-bottom: none;
        border-left: 3px solid transparent;
        text-align: left;
    }
    
    .tab-button.active {
        border-left-color: #667eea;
        border-bottom-color: transparent;
    }
    
    .thresholds {
        flex-direction: column;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .metric-card {
        padding: 1rem;
    }
    
    .code-block pre {
        padding: 1rem;
    }
    
    .code-block code {
        font-size: 0.8rem;
    }
} 