/* PR0TA Documentation - Main Stylesheet */

:root {
    /* Brand Colors */
    --purple: #8B5CF6;
    --purple-dark: #7C3AED;
    --purple-light: #A78BFA;
    --purple-glow: rgba(139, 92, 246, 0.3);

    --gold: #F59E0B;
    --gold-light: #FBBF24;
    --gold-dark: #D97706;

    /* Status Colors */
    --green: #10B981;
    --green-light: #34D399;
    --blue: #3B82F6;
    --blue-light: #60A5FA;
    --pink: #EC4899;
    --red: #EF4444;
    --orange: #F97316;

    /* Background */
    --bg-primary: #0A0A0B;
    --bg-secondary: #111113;
    --bg-tertiary: #18181B;
    --bg-elevated: #1F1F23;
    --bg-hover: #27272A;

    /* Text */
    --text-primary: #FAFAFA;
    --text-secondary: #A1A1AA;
    --text-muted: #71717A;
    --text-disabled: #52525B;

    /* Borders */
    --border: #27272A;
    --border-light: #3F3F46;
    --border-hover: #52525B;

    /* Layout */
    --sidebar-width: 280px;
    --content-max-width: 860px;
    --header-height: 64px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px var(--purple-glow);

    /* Transitions */
    --transition-fast: 0.1s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Layout */
.layout {
    display: flex;
    min-height: 100vh;
}

/* ===============================
   SIDEBAR
================================== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg-secondary);
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo:hover {
    text-decoration: none;
}

.logo-icon {
    font-size: 32px;
    filter: drop-shadow(0 0 8px var(--purple-glow));
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-text .zero {
    color: var(--purple);
}

.logo-badge {
    font-size: 10px;
    font-weight: 600;
    color: var(--gold);
    background: rgba(245, 158, 11, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sidebar Search */
.sidebar-search {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.search-input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 13px;
    transition: all var(--transition-base);
}

.search-input:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px var(--purple-glow);
}

.search-input::placeholder {
    color: var(--text-muted);
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 12px 8px;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 20px;
}

.nav-section-title {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 8px 12px 6px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 450;
    transition: all var(--transition-fast);
    margin-bottom: 1px;
}

.nav-link:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    text-decoration: none;
}

.nav-link.active {
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
    color: white;
    font-weight: 500;
}

.nav-link.active:hover {
    background: linear-gradient(135deg, var(--purple-dark) 0%, #6D28D9 100%);
}

.nav-icon {
    font-size: 16px;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.nav-link.sub {
    padding-left: 44px;
    font-size: 13px;
}

.nav-badge {
    margin-left: auto;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--purple-glow);
    color: var(--purple-light);
}

/* ===============================
   MAIN CONTENT
================================== */
.main {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

.content {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 48px 48px 96px;
}

/* Page Header */
.page-header {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--purple-light);
}

.breadcrumb span {
    color: var(--text-disabled);
}

.page-title {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--purple-light) 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 640px;
    line-height: 1.7;
}

/* ===============================
   TYPOGRAPHY
================================== */
h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 56px 0 20px;
    color: var(--text-primary);
}

h2:first-of-type {
    margin-top: 0;
}

h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 40px 0 14px;
    color: var(--text-primary);
}

h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 28px 0 10px;
    color: var(--text-secondary);
}

p {
    margin-bottom: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

strong, b {
    color: var(--text-primary);
    font-weight: 600;
}

/* Links */
a {
    color: var(--purple-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

/* Lists */
ul, ol {
    margin: 16px 0 24px;
    padding-left: 24px;
    color: var(--text-secondary);
}

li {
    margin-bottom: 10px;
    line-height: 1.7;
}

li::marker {
    color: var(--purple);
}

/* ===============================
   CODE
================================== */
code {
    font-family: 'JetBrains Mono', 'SF Mono', Monaco, monospace;
    background: var(--bg-elevated);
    padding: 3px 7px;
    border-radius: 5px;
    font-size: 13px;
    color: var(--gold);
    border: 1px solid var(--border);
}

pre {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 24px;
    overflow-x: auto;
    margin: 24px 0;
}

pre code {
    background: none;
    padding: 0;
    border: none;
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* ===============================
   CARDS & BOXES
================================== */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    transition: all var(--transition-base);
}

.card:hover {
    border-color: var(--border-hover);
}

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

.card-icon {
    font-size: 28px;
}

.card-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-description {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin: 28px 0;
}

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    transition: all var(--transition-base);
    text-decoration: none;
}

.feature-card:hover {
    border-color: var(--purple);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
    text-decoration: none;
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 16px;
    display: block;
}

.feature-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.feature-description {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===============================
   TABLES
================================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
}

th, td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    color: var(--text-secondary);
}

tr:hover td {
    background: var(--bg-secondary);
}

/* ===============================
   CALLOUTS
================================== */
.callout {
    border-radius: 12px;
    padding: 20px 24px;
    margin: 28px 0;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.callout-icon {
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 2px;
}

.callout-content h4 {
    margin: 0 0 6px 0;
    font-size: 15px;
    font-weight: 600;
}

.callout-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.callout.info {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
}
.callout.info .callout-icon { color: var(--blue); }
.callout.info h4 { color: var(--blue-light); }

.callout.tip {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.callout.tip .callout-icon { color: var(--green); }
.callout.tip h4 { color: var(--green-light); }

.callout.warning {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
}
.callout.warning .callout-icon { color: var(--gold); }
.callout.warning h4 { color: var(--gold-light); }

.callout.note {
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
}
.callout.note .callout-icon { color: var(--purple); }
.callout.note h4 { color: var(--purple-light); }

/* ===============================
   BUTTONS
================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
    color: white;
    box-shadow: 0 4px 14px var(--purple-glow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--purple-light) 0%, var(--purple) 100%);
    box-shadow: 0 6px 20px var(--purple-glow);
}

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

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

.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #000;
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* ===============================
   STEPS
================================== */
.steps {
    counter-reset: step-counter;
    margin: 32px 0;
}

.step {
    position: relative;
    padding-left: 72px;
    padding-bottom: 36px;
    border-left: 2px solid var(--border);
    margin-left: 16px;
}

.step:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}

.step::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: -18px;
    top: 0;
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: white;
    box-shadow: 0 0 16px var(--purple-glow);
}

.step h4 {
    margin-top: 0;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.step p {
    font-size: 14px;
}

/* ===============================
   KEYBOARD
================================== */
.kbd {
    display: inline-block;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-bottom-width: 3px;
    border-radius: 6px;
    padding: 4px 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
}

/* ===============================
   TAGS / BADGES
================================== */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.tag-purple {
    background: rgba(139, 92, 246, 0.15);
    color: var(--purple-light);
}

.tag-gold {
    background: rgba(245, 158, 11, 0.15);
    color: var(--gold);
}

.tag-green {
    background: rgba(16, 185, 129, 0.15);
    color: var(--green);
}

.tag-blue {
    background: rgba(59, 130, 246, 0.15);
    color: var(--blue);
}

/* ===============================
   FOOTER
================================== */
.docs-footer {
    margin-top: 72px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-nav {
    display: flex;
    gap: 40px;
}

.footer-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: none;
}

.footer-link-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-link-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--purple-light);
    transition: color var(--transition-fast);
}

.footer-link:hover .footer-link-title {
    color: var(--gold);
}

/* ===============================
   HERO
================================== */
.hero {
    text-align: center;
    padding: 72px 0 56px;
    margin-bottom: 48px;
    border-bottom: 1px solid var(--border);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--purple-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===============================
   VIDEO EMBED
================================== */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    margin: 28px 0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ===============================
   RESPONSIVE
================================== */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition-slow);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main {
        margin-left: 0;
    }

    .content {
        padding: 32px 24px 72px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .page-title {
        font-size: 32px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* ===============================
   SCROLLBAR
================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-hover);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-light);
}

/* ===============================
   ANIMATIONS
================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease forwards;
}

/* Pricing specific */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 32px 0;
}

@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

.pricing-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
}

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

.pricing-card.featured {
    border-color: var(--purple);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.1) 0%, var(--bg-secondary) 100%);
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--purple);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-tier {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.pricing-price {
    font-size: 40px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.pricing-price span {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-muted);
}

.pricing-annual {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.pricing-features {
    text-align: left;
    margin: 20px 0;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.pricing-features li::before {
    content: '✓';
    color: var(--green);
    font-weight: 700;
}
