/* GAGOS Documentation Website Styles */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #0ea5e9;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --bg-card: #1e293b;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --border: #334155;
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
}

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

a:hover {
    color: var(--primary);
}

/* Header */
.header {
    background: var(--bg-darker);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav a {
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s;
}

.nav a:hover, .nav a.active {
    color: var(--text);
}

.nav-btn {
    background: var(--primary);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
}

.nav-btn:hover {
    background: var(--primary-dark);
}

/* Hero */
.hero {
    padding: 8rem 2rem 4rem;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .tagline {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
}

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

/* Features Grid */
.features {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
    fill: none;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Quick Start */
.quickstart {
    padding: 4rem 2rem;
    background: var(--bg-darker);
}

.quickstart-inner {
    max-width: 800px;
    margin: 0 auto;
}

.quickstart h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.code-block {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    color: var(--text);
}

.code-block .comment {
    color: var(--text-muted);
}

.code-block .command {
    color: var(--secondary);
}

/* Documentation Layout */
.docs-layout {
    display: flex;
    min-height: calc(100vh - 60px);
    padding-top: 60px;
}

.docs-sidebar {
    width: 280px;
    background: var(--bg-darker);
    border-right: 1px solid var(--border);
    padding: 2rem 1rem;
    position: fixed;
    top: 60px;
    bottom: 0;
    overflow-y: auto;
}

.docs-sidebar h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin: 1.5rem 0 0.75rem;
    padding: 0 0.75rem;
}

.docs-sidebar h3:first-child {
    margin-top: 0;
}

.docs-sidebar ul {
    list-style: none;
}

.docs-sidebar a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text-muted);
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.docs-sidebar a:hover {
    color: var(--text);
    background: var(--bg-card);
}

.docs-sidebar a.active {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.docs-content {
    flex: 1;
    margin-left: 280px;
    padding: 2rem 3rem;
    max-width: 900px;
}

.docs-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.docs-content h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--text);
}

.docs-content h3 {
    font-size: 1.2rem;
    margin: 1.5rem 0 0.75rem;
}

.docs-content p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.docs-content ul, .docs-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
    color: var(--text-muted);
}

.docs-content li {
    margin-bottom: 0.5rem;
}

.docs-content code {
    background: var(--bg-card);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.85em;
}

.docs-content pre {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.docs-content pre code {
    background: none;
    padding: 0;
}

.docs-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.docs-content th, .docs-content td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.docs-content th {
    background: var(--bg-card);
    font-weight: 600;
}

/* License Page */
.license-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
}

.license-content h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.license-content h2 {
    font-size: 1.3rem;
    margin: 2rem 0 1rem;
    color: var(--text);
}

.license-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.license-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.license-badge .badge-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.license-badge .badge-value {
    color: var(--primary);
    font-weight: 600;
}

.allowed-list, .not-allowed-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 2rem;
}

.allowed-list li, .not-allowed-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.allowed-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
}

.not-allowed-list li::before {
    content: "✗";
    position: absolute;
    left: 0;
    color: var(--error);
}

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

.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .docs-sidebar {
        display: none;
    }

    .docs-content {
        margin-left: 0;
        padding: 1.5rem;
    }

    .nav {
        gap: 1rem;
    }
}
