/* Shared CSS for all documentation pages */

:root {
    --eska-green: #14D12A;
    --eska-blue: #006FE6;
    --gradient-eska: linear-gradient(135deg, #006FE6 0%, #14D12A 100%);
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #475569;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Syne', 'Inter', 'Open Sans', system-ui, -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
    padding: 0.5rem 0;
    max-width: calc(100vw - 200px);
}

.nav::-webkit-scrollbar {
    height: 6px;
}

.nav::-webkit-scrollbar-track {
    background: transparent;
}

.nav::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.nav::-webkit-scrollbar-thumb:hover {
    background: var(--eska-green);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--eska-green);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-eska);
    border-radius: 1px;
}

/* Main Layout */
.main-layout {
    display: block;
    padding: 2rem 0;
    min-height: calc(100vh - 80px);
}

/* Content */
.content {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--eska-green);
    text-decoration: none;
}

.breadcrumbs .separator {
    color: var(--text-muted);
}

.page-header {
    margin-bottom: 3rem;
}

.page-title {
    font-family: 'Syne', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.section {
    margin-bottom: 3rem;
}

.section-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-content {
    color: var(--text-secondary);
    line-height: 1.7;
}

.section-content h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 2rem 0 1rem 0;
}

.section-content h4 {
    font-family: 'Syne', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 0.75rem 0;
}

.section-content p {
    margin-bottom: 1rem;
}

.section-content ul, .section-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.section-content li {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        gap: 0.5rem;
        max-width: 100%;
        justify-content: flex-start;
    }

    .page-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 0.5rem;
    }

    .content {
        padding: 1rem;
    }

    .section {
        margin-bottom: 2rem;
    }

    .page-header {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.25rem;
    }
}

/* Active navigation highlighting */
.nav-link.active {
    color: var(--eska-green);
}

.nav-link[data-page] {
    transition: all 0.3s ease;
}

.nav-link[data-page]:hover {
    color: var(--eska-green);
}
