:root {
    /* Dark Theme Colors */
    --volcanic: #FF4500;
    --forest: #228B22;
    --obsidian: #1C1C1C;
    --amber: #FFA500;
    --violet: #8A2BE2;
    --charcoal: #36454F;
    --ivory: #FFFFF0;
    --dark-bg: #0F0F0F;
    --darker-bg: #0A0A0A;
    --card-bg: #1A1A1A;
    --border: #2A2A2A;
    --text-primary: #FFFFF0;
    --text-secondary: #B0B0B0;
    --text-muted: #808080;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header */
header {
    background: var(--darker-bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

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

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

.logo img {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--amber);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--volcanic);
}

/* Hero Section */
.hero {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--obsidian) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 69, 0, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(34, 139, 34, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--volcanic) 0%, var(--amber) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .subtitle {
    font-size: 24px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 80px;
}

.btn {
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--volcanic) 0%, var(--amber) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 69, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--forest);
    border: 2px solid var(--forest);
}

.btn-secondary:hover {
    background: var(--forest);
    color: white;
}

/* Code Example */
.hero-code {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dot:nth-child(1) { background: #FF5F57; }
.code-dot:nth-child(2) { background: #FFBD2E; }
.code-dot:nth-child(3) { background: #28CA42; }

.code-title {
    margin-left: 16px;
    color: var(--text-muted);
    font-size: 14px;
}

.code-block {
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-primary);
}

.keyword { color: var(--volcanic); }
.operator { color: var(--forest); }
.function { color: var(--amber); }
.string { color: var(--violet); }
.comment { color: var(--text-muted); }
.identifier { color: var(--text-primary); }

/* Features Section */
.features {
    padding: 120px 0;
    background: var(--obsidian);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-header p {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--volcanic);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--volcanic) 0%, var(--amber) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 24px;
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Examples Section */
.examples {
    padding: 120px 0;
    background: var(--dark-bg);
}

.examples-grid {
    display: grid;
    gap: 48px;
}

.example {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.example:nth-child(even) {
    direction: rtl;
}

.example:nth-child(even) > * {
    direction: ltr;
}

.example-content h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.example-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.example-features {
    list-style: none;
}

.example-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.example-features li::before {
    content: '→';
    color: var(--forest);
    font-weight: bold;
}

.example-code {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dot:nth-child(1) { background: #FF5F57; }
.code-dot:nth-child(2) { background: #FFBD2E; }
.code-dot:nth-child(3) { background: #28CA42; }

.code-title {
    margin-left: 16px;
    color: var(--text-muted);
    font-size: 14px;
}

.code-block {
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-primary);
}

.keyword { color: var(--volcanic); }
.operator { color: var(--forest); }
.function { color: var(--amber); }
.string { color: var(--violet); }
.comment { color: var(--text-muted); }
.identifier { color: var(--text-primary); }

/* Features Section */
.features {
    padding: 120px 0;
    background: var(--obsidian);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-header p {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--volcanic);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--volcanic) 0%, var(--amber) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 24px;
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Examples Section */
.examples {
    padding: 120px 0;
    background: var(--dark-bg);
}

.examples-grid {
    display: grid;
    gap: 48px;
}

.example {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.example:nth-child(even) {
    direction: rtl;
}

.example:nth-child(even) > * {
    direction: ltr;
}

.example-content h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.example-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.example-features {
    list-style: none;
}

.example-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.example-features li::before {
    content: '→';
    color: var(--forest);
    font-weight: bold;
}

.example-code {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
}

/* Footer */
footer {
    background: var(--darker-bg);
    border-top: 1px solid var(--border);
    padding: 48px 0;
    text-align: center;
}

.footer-content {
    color: var(--text-muted);
}

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--volcanic);
}

/* Playground Styles */
.playground {
    padding: 40px 0;
    background: var(--dark-bg);
    min-height: 100vh;
}

.playground-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.playground-header {
    text-align: center;
    margin-bottom: 48px;
}

.playground-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--volcanic) 0%, var(--amber) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.playground-header p {
    font-size: 18px;
    color: var(--text-secondary);
}

.playground-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.input-section, .output-section {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.lql-input {
    width: 100%;
    height: 300px;
    background: var(--darker-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--text-primary);
    resize: vertical;
    margin-bottom: 16px;
}

.lql-input:focus {
    outline: none;
    border-color: var(--volcanic);
}

.sql-output {
    background: var(--darker-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--text-primary);
    min-height: 300px;
    white-space: pre-wrap;
    overflow-y: auto;
}

.controls {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
}

.dialect-selector {
    background: var(--darker-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 12px;
    color: var(--text-primary);
    font-size: 14px;
}

.dialect-selector:focus {
    outline: none;
    border-color: var(--volcanic);
}

.convert-btn {
    background: linear-gradient(135deg, var(--volcanic) 0%, var(--amber) 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.convert-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 69, 0, 0.3);
}

.convert-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.error-message {
    background: rgba(255, 69, 0, 0.1);
    border: 1px solid var(--volcanic);
    border-radius: 6px;
    padding: 12px;
    color: var(--volcanic);
    font-size: 14px;
    margin-top: 16px;
}

.examples-section {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
}

.example-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.example-btn {
    background: transparent;
    color: var(--forest);
    border: 1px solid var(--forest);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.example-btn:hover {
    background: var(--forest);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 48px;
    }

    .hero .subtitle {
        font-size: 20px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .example {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .example:nth-child(even) {
        direction: ltr;
    }

    nav ul {
        display: none;
    }

    .playground-content {
        grid-template-columns: 1fr;
    }
}

/* Blazor Error UI */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}