/* Core public-site styles extracted from templates/public/base.html */
:root {
    --primary-color: #0052cc;
    --accent-color: #00c6ff;
    --text-primary: #222;
    --text-secondary: #666;
    --white: #ffffff;
    --bg-secondary: #f8f9fa;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --font-display: 'Inter', Arial, sans-serif;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #fff;
    color: #222;
    line-height: 1.6;
}

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

.public-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-normal);
}

.public-navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-content {
    display: flex;
    align-items: center;
    padding: var(--space-4) var(--space-6);
    max-width: 1200px;
    margin: 0 auto;
}

.navbar-logo {
    display: flex;
    align-items: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-normal);
    margin-right: auto;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.logo-image {
    height: 32px;
    width: auto;
    margin-right: var(--space-3);
}

.navbar-logo span {
    color: var(--accent-color);
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-links li {
    margin: 0;
}

.navbar-links a {
    color: var(--text-primary);
    font-weight: 500;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    position: relative;
    display: block;
}

.navbar-links a:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .navbar-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        padding: var(--space-4);
        gap: var(--space-2);
    }

    .navbar-links.active {
        display: flex;
    }

    .nav-center { justify-content: flex-end; }
}

main { margin-top: 0; }

.docs-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0;
    color: white;
    text-align: center;
}

.docs-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.docs-hero p {
    font-size: 1.2rem;
    margin-bottom: 24px;
    opacity: 0.9;
}

.docs-content {
    padding: 48px 0;
    background: #f8f9fa;
}

.docs-grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
}

.docs-sidebar {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.docs-sidebar h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0052cc;
    margin-bottom: 20px;
}

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

.docs-sidebar li {
    margin-bottom: 8px;
}

.docs-sidebar a {
    color: #222;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    display: block;
    transition: background 0.2s;
}

.docs-sidebar a:hover {
    background: #e6f0fa;
    color: #0052cc;
}

.docs-main {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.docs-main h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #0052cc;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #0052cc;
}

.docs-main h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #222;
    margin-top: 32px;
    margin-bottom: 16px;
}

.docs-main p {
    color: #444;
    line-height: 1.6;
    margin-bottom: 16px;
}

.docs-main ul,
.docs-main ol {
    color: #444;
    line-height: 1.6;
    margin-bottom: 16px;
}

.docs-main li {
    margin-bottom: 8px;
}

.docs-main code {
    background: #f6f8fa;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #0052cc;
}

.docs-main pre {
    background: #f6f8fa;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 16px;
}

.docs-main pre code {
    background: none;
    padding: 0;
    color: #222;
}
