/* CSS Variables for Theme Support */
:root {
    /* Light Theme */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --accent-primary: #3b82f6;
    --accent-secondary: #1e40af;
    --border-color: #e2e8f0;
    --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

[data-theme="dark"] {
    /* Dark Theme */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #0b0c0e;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #0b0c0e;
    --accent-primary: #60a5fa;
    --accent-secondary: #3b82f6;
    --border-color: #334155;
    --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-heavy: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--accent-primary);
}

.nav-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#theme-toggle {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

#theme-toggle:hover {
    background-color: var(--bg-secondary);
}

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.hero-icon {
    font-size: 4rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-visual {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.hero-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--accent-primary);
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-alt {
    background-color: var(--bg-secondary);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: var(--bg-tertiary);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Why It Matters */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.why-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.why-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

/* Comparison Table */
.comparison-table {
    overflow-x: auto;
    background: var(--bg-primary);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
}

tr:hover {
    background: var(--bg-secondary);
}

/* Documentation */
.docs-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.docs-overview ul {
    margin-left: 2rem;
    margin-top: 1rem;
}

.docs-overview li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.doc-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.doc-link:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.doc-icon {
    font-size: 1.5rem;
}

/* Use Cases */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.use-case-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.use-case-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.use-case-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

/* Contribute */
.contribute-content {
    text-align: center;
}

.contribute-text {
    max-width: 600px;
    margin: 0 auto 3rem;
}

.contribute-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contribute-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contribute-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.contribute-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* Documentation Page Styles */
.docs-header {
    padding: 120px 0 80px;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.docs-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.docs-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.docs-icon {
    font-size: 4rem;
}

.docs-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.docs-content-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.accordion-container {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: var(--shadow-medium);
}

.accordion-item.active {
    box-shadow: var(--shadow-heavy);
}

.accordion-header {
    width: 100%;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: var(--bg-secondary);
}

.accordion-header:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: -2px;
}

.accordion-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
}

.accordion-title {
    flex: 1;
}

.accordion-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-primary);
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-toggle {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.accordion-body {
    padding: 0 2rem 2rem;
}

.accordion-body h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.accordion-body h4 {
    color: var(--text-primary);
    margin: 1.5rem 0 0.5rem;
}

.accordion-body p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.accordion-body ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.accordion-body li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

.status-draft {
    background: #fef3c7;
    color: #92400e;
}

.status-proposed {
    background: #dbeafe;
    color: #1e40af;
}

.status-implemented {
    background: #dcfce7;
    color: #166534;
}

.last-updated {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Paper links */
.paper-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.paper-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.paper-link:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Enhancement status */
.enhancement-status {
    margin-top: 1.5rem;
}

/* Suggestion items */
.suggestion-item {
    background: var(--bg-tertiary);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.suggestion-item h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.suggestion-item p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.suggestion-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.author {
    color: var(--accent-primary);
    font-weight: 600;
}

.votes {
    color: var(--text-muted);
}

/* Documentation CTA */
.docs-cta {
    padding: 80px 0;
    background: var(--bg-primary);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cta-content p {
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-icon {
    margin-right: 0.5rem;
}

/* Research Paper Styles */
.research-paper {
    max-width: 100%;
    line-height: 1.6;
}

.paper-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.paper-header h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.paper-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.paper-meta p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.paper-meta a {
    color: var(--accent-primary);
    text-decoration: none;
}

.paper-meta a:hover {
    text-decoration: underline;
}

.paper-section {
    margin-bottom: 2rem;
}

.paper-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.paper-section h5 {
    color: var(--text-primary);
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1.2rem;
}

.paper-section p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.paper-section ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.paper-section li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.paper-section ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.paper-section ol li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.comparison-table,
.implementation-table {
    margin: 1.5rem 0;
    overflow-x: auto;
}

.comparison-table table,
.implementation-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-primary);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.comparison-table th,
.implementation-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table td,
.implementation-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.comparison-table tr:hover,
.implementation-table tr:hover {
    background: var(--bg-secondary);
}

.code-block {
    margin: 1.5rem 0;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.code-block pre {
    margin: 0;
    padding: 1.5rem;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-primary);
}

.code-block code {
    background: none;
    padding: 0;
    border-radius: 0;
    font-family: inherit;
    color: inherit;
}

.references-list {
    list-style: none;
    padding: 0;
}

.references-list li {
    margin-bottom: 0.75rem;
    padding-left: 1rem;
    border-left: 3px solid var(--accent-primary);
    color: var(--text-secondary);
}

.paper-actions {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.paper-actions .btn {
    flex: 1;
    min-width: 150px;
}

/* Status badge for published papers */
.status-published {
    background: var(--success-color);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
        flex-direction: column;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .docs-content {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    /* Documentation responsive */
    .docs-title {
        font-size: 2.5rem;
        flex-direction: column;
    }
    
    .docs-subtitle {
        font-size: 1.1rem;
    }
    
    .accordion-header {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .accordion-body {
        padding: 0 1.5rem 1.5rem;
    }
    
    .paper-links {
        flex-direction: column;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .suggestion-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    /* Research paper responsive adjustments */
    .paper-header h3 {
        font-size: 1.5rem;
    }
    
    .paper-section h4 {
        font-size: 1.3rem;
    }
    
    .paper-section h5 {
        font-size: 1.1rem;
    }
    
    .comparison-table,
    .implementation-table {
        font-size: 0.9rem;
    }
    
    .comparison-table th,
    .comparison-table td,
    .implementation-table th,
    .implementation-table td {
        padding: 0.75rem;
    }
    
    .paper-actions {
        flex-direction: column;
    }
    
    .paper-actions .btn {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .features-grid,
    .why-grid,
    .use-cases-grid {
        grid-template-columns: 1fr;
    }
    
    .code-block pre {
        padding: 1rem;
        font-size: 0.8rem;
    }
} 