/* 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: #333;
    background-color: #fafafa;
}

h2, h3 {
    padding-top: 1rem;
}

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

/* Navigation */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 1.2em;
    color: #333;
}

.brand-icon {
    width: 32px;
    height: 32px;
    margin-right: 12px;
    filter: invert(0.2) sepia(1) saturate(3) hue-rotate(300deg);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    color: #FF0000;
}

.github-link svg {
    margin-left: 4px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Main content */
.main-content {
    margin-top: 70px;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.4em;
    font-weight: 500;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    opacity: 0.8;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: #FF0000;
    color: white;
}

.btn-primary:hover {
    background: #CC0000;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
}

.hero-code {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-code pre {
    margin: 0;
    overflow-x: auto;
}

.hero-code code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
}

/* Features section */
.features {
    padding: 100px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 60px;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.feature-card {
    background: #f8f9fa;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3em;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Compatibility section */
.compatibility {
    padding: 80px 0;
    background: #f8f9fa;
}

.compatibility-description {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 40px;
    color: #666;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.compatibility-description a {
    color: #FF0000;
    text-decoration: none;
}

.compatibility-description a:hover {
    text-decoration: underline;
}

.compatibility-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.compat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.check {
    color: #28a745;
    font-weight: bold;
    font-size: 1.2em;
}

/* Quick start section */
.quick-start {
    padding: 100px 0;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.step-number {
    background: #FF0000;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.step-content pre {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    border-left: 4px solid #FF0000;
}

.step-content code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
}

/* Warning section */
.warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 40px 0;
}

.warning-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border-left: 5px solid #ffc107;
}

.warning-content h3 {
    color: #856404;
    margin-bottom: 15px;
}

.warning-content p {
    color: #856404;
    margin-bottom: 15px;
}

.warning-content a {
    color: #FF0000;
    text-decoration: none;
}

.warning-content a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: #333;
    color: #ccc;
    padding: 40px 0;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #FF0000;
}

.footer-text {
    color: #999;
}

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

/* Responsive design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5em;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .compatibility-features {
        flex-direction: column;
        align-items: center;
    }
    
    .quick-start-steps {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

/* Code highlighting fixes */
pre[class*="language-"] {
    margin: 0;
    border-radius: 8px;
}

code[class*="language-"] {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

/* Page-specific styles */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 60px;
    text-align: center;
}

.page-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-subtitle {
    font-size: 1.2em;
    opacity: 0.9;
}

.content-section {
    padding: 60px 0;
}

.content-section:nth-child(even) {
    background: #f8f9fa;
}

.content-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    align-items: start;
}

.sidebar {
    position: sticky;
    top: 100px;
}

.sidebar ul {
    list-style: none;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    color: #666;
    text-decoration: none;
    display: block;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s;
}

.sidebar ul li a:hover {
    background: #FF0000;
    color: white;
}

.content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.method-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

h3.method-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    margin-top: 0;
    padding-top: 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.method-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.method-params {
    margin-top: 20px;
}

.method-params h4 {
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.param {
    background: white;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    border-left: 4px solid #FF0000;
}

.param-name {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-weight: 600;
    color: #333;
}

.param-type {
    color: #666;
    font-style: italic;
}

.param-description {
    margin-top: 8px;
    color: #666;
    line-height: 1.5;
}

.code-block {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
}

.inline-code {
    background: #f1f3f4;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
    color: #d73a49;
}

/* Table styles */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.table th,
.table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.table tr:hover {
    background: #f8f9fa;
}

/* Alert styles */
.alert {
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 5px solid;
}

.alert-info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

.alert-warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.alert-danger {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
        order: 2;
    }
    
    .content {
        padding: 25px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        transition: transform 0.3s;
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
}

/* Syntax highlighting overrides */
.token.keyword {
    color: #c792ea;
}

.token.string {
    color: #c3e88d;
}

.token.function {
    color: #82aaff;
}

.token.comment {
    color: #676e95;
}

.token.variable {
    color: #f78c6c;
}

.token.operator {
    color: #89ddff;
}

ol {
    margin: 0.5rem 0 1rem 2rem;
}

.features-grid a {
    text-decoration: none;
}

.indent-param {
    margin-left: 2.6rem;
}