/* Documentation Site Styles */

:root {
    --primary-color: #0066cc;
    --secondary-color: #2563eb;
    --accent-color: #1d4ed8;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-light: #f8fafc;
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --code-bg: #f1f5f9;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --info-color: #0ea5e9;
    --info-bg: #f0f9ff;
    --warning-bg: #fef3c7;
    --success-bg: #dcfce7;
    --error-bg: #fee2e2;
}

/* Troubleshooting Guide Styles */
.troubleshooting-guide {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.guide-overview {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
    border-left: 4px solid var(--primary-color);
}

.issue-symptoms {
    margin-top: 1.5rem;
}

.issue-symptoms h3 {
    color: var(--error-color);
    margin-bottom: 1rem;
}

.issue-symptoms ul {
    list-style: none;
    padding-left: 0;
}

.issue-symptoms li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

.issue-symptoms li:before {
    content: "⚠️ ";
    margin-right: 0.5rem;
}

.solutions-section h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.solution-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.solution-card h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.problem-description {
    background: var(--error-bg);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--error-color);
}

.code-example {
    margin: 1.5rem 0;
}

.code-example h4 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.code-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.incorrect-code {
    background: var(--error-bg);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--error-color);
}

.correct-code {
    background: var(--success-bg);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--success-color);
}

.incorrect-code h4 {
    color: var(--error-color);
    margin-bottom: 0.5rem;
}

.correct-code h4 {
    color: var(--success-color);
    margin-bottom: 0.5rem;
}

.supported-params {
    background: var(--info-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid var(--info-color);
}

.supported-params h4 {
    color: var(--info-color);
    margin-bottom: 0.5rem;
}

.verification-steps {
    background: var(--warning-bg);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid var(--warning-color);
}

.debugging-section {
    margin: 3rem 0;
}

.debugging-section h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.debug-step {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.debug-step h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.best-practices-section {
    margin: 3rem 0;
}

.best-practices-section h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.practice-card {
    background: var(--success-bg);
    border: 1px solid var(--success-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.practice-card h3 {
    color: var(--success-color);
    margin-bottom: 1rem;
}

.limitations-section {
    margin: 3rem 0;
}

.limitations-section h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.limitations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.limitation-card {
    background: var(--error-bg);
    border: 1px solid var(--error-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.limitation-card h3 {
    color: var(--error-color);
    margin-bottom: 1rem;
}

.workaround-card {
    background: var(--success-bg);
    border: 1px solid var(--success-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.workaround-card h3 {
    color: var(--success-color);
    margin-bottom: 1rem;
}

.related-docs {
    margin: 3rem 0;
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
}

.related-docs h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.related-docs ul {
    list-style: none;
    padding-left: 0;
}

.related-docs li {
    margin: 0.5rem 0;
}

.related-docs a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.related-docs a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .code-comparison {
        grid-template-columns: 1fr;
    }
    
    .limitations-grid {
        grid-template-columns: 1fr;
    }
    
    .troubleshooting-guide {
        padding: 1rem;
    }
}

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

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

/* Navigation */
.docs-nav {
    background: white;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Enhanced CLI Reference Styles */
.command-section {
    margin: 3rem 0;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.command-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.subcommand-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 6px;
    border-left: 4px solid var(--info-color);
}

.subcommand-section h4 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.subcommand-section h5 {
    color: var(--text-color);
    margin: 1.5rem 0 1rem 0;
    font-size: 1.1rem;
}

.options-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

.options-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-color);
}

.options-table code {
    background: var(--code-bg);
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
}

/* Alert Boxes */
.alert {
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 6px;
    border-left: 4px solid;
}

.alert-info {
    background: var(--info-bg);
    border-left-color: var(--info-color);
    color: #0c4a6e;
}

.alert-warning {
    background: var(--warning-bg);
    border-left-color: var(--warning-color);
    color: #92400e;
}

.alert-success {
    background: var(--success-bg);
    border-left-color: var(--success-color);
    color: #166534;
}

.alert-error {
    background: var(--error-bg);
    border-left-color: var(--error-color);
    color: #991b1b;
}

/* Info Boxes */
.info-box {
    background: var(--info-bg);
    border: 1px solid var(--info-color);
    border-radius: 6px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.info-box h4 {
    margin: 0 0 1rem 0;
    color: #0c4a6e;
    font-size: 1rem;
}

.warning-box {
    background: var(--warning-bg);
    border: 1px solid var(--warning-color);
    border-radius: 6px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.warning-box h4 {
    margin: 0 0 1rem 0;
    color: #92400e;
    font-size: 1rem;
}

/* Installation Methods */
.install-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.install-method {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.install-method h3 {
    margin: 0 0 1rem 0;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.requirements-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 6px;
}

.requirements-section h3 {
    margin: 0 0 1rem 0;
    color: var(--text-color);
}

.requirements-section ul {
    padding-left: 1.5rem;
}

.requirements-section li {
    margin-bottom: 0.5rem;
}

/* Quick Start Steps Enhancement */
.quick-start-steps {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
}

.step:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.step-number {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.step-content {
    flex: 1;
}

.step-content h3,
.step-content h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
    font-size: 1.1rem;
}

.step-content .code-block {
    margin: 0.5rem 0 0 0;
}

.quick-start-note {
    text-align: center;
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 6px;
    color: var(--text-light);
}

.quick-start-note a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.quick-start-note a:hover {
    text-decoration: underline;
}

.docs-nav {
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.25rem;
}

.logo img {
    width: 32px;
    height: 32px;
    margin-right: 0.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

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

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

/* Documentation Layout */
.docs-layout {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 60px);
}

/* Sidebar */
.docs-sidebar {
    width: 280px;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    position: sticky;
    top: 60px;
    height: calc(100vh - 60px);
    overflow-y: auto;
    flex-shrink: 0;
}

.sidebar-nav {
    padding: 1.5rem 1rem;
}

.nav-section {
    margin-bottom: 2rem;
}

.nav-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: none;
    letter-spacing: normal;
}

.nav-section h3 a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    text-decoration: none;
    color: #1f2937;
    transition: all 0.2s;
    font-weight: 600;
    font-size: 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.nav-section h3 a:hover {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-section h3 a.active-section {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.nav-section ul {
    list-style: none;
    margin-left: 0;
    border-left: 2px solid #e5e7eb;
    padding-left: 1rem;
    display: flex;
    flex-direction: column;
}

.nav-section li {
    margin-bottom: 0.25rem;
}

.nav-section ul a {
    display: block;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    text-decoration: none;
    color: #6b7280;
    font-size: 0.875rem;
    transition: all 0.2s;
    font-weight: 400;
}

.nav-section ul a:hover {
    background: white;
    color: #2563eb;
}

.nav-section ul a.active {
    background: #2563eb;
    color: white;
}

/* Sidebar-specific nav-links override */
.sidebar-nav .nav-links {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.25rem !important;
    list-style: none;
    margin-left: 0;
    border-left: 2px solid #e5e7eb;
    padding-left: 1rem;
}

.sidebar-nav .nav-links li {
    margin-bottom: 0.25rem;
}

.sidebar-nav .nav-links a {
    display: block;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    text-decoration: none;
    color: #6b7280;
    font-size: 0.875rem;
    transition: all 0.2s;
    font-weight: 400;
}

.sidebar-nav .nav-links a:hover {
    background: white;
    color: #2563eb;
}

.sidebar-nav .nav-links a.active {
    background: #2563eb;
    color: white;
}

/* Main Content */
.docs-content {
    flex: 1;
    padding: 2rem;
    max-width: calc(100% - 280px);
}

/* Hero Section */
.docs-hero {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.docs-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 2rem;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

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

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

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

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

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

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

/* Feature Grid */
.features-overview {
    margin-bottom: 4rem;
}

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

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.feature-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
}

.feature-link:hover {
    text-decoration: underline;
}

/* Quick Start Section */
.quick-start-section {
    background: var(--bg-light);
    border-radius: 1rem;
    padding: 3rem;
    margin-bottom: 4rem;
    text-align: center;
}

.quick-start-section h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.quick-start-steps {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content {
    text-align: left;
}

.step-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.code-block {
    background: var(--code-bg);
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    border: 1px solid var(--border-color);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    position: relative;
    overflow-x: auto;
}

.code-block code {
    background: none;
    padding: 0;
    border: none;
    font-family: inherit;
}

.copy-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s, background-color 0.2s;
    z-index: 1;
}

.code-block:hover .copy-button {
    opacity: 1;
}

.copy-button:hover {
    background: white;
    color: var(--primary-color);
}

.copy-button:active {
    transform: translateY(1px);
}

/* Override Prism.js styles for better integration */
pre[class*="language-"] {
    background: var(--code-bg) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 0.375rem !important;
    padding: 0.75rem 1rem !important;
    margin: 0 !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
}

code[class*="language-"] {
    background: none !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

.quick-start-note {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.quick-start-note a {
    color: var(--primary-color);
    text-decoration: none;
}

.quick-start-note a:hover {
    text-decoration: underline;
}

/* Tutorial Grid */
.popular-tutorials {
    margin-bottom: 4rem;
}

.popular-tutorials h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
}

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

.tutorial-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.tutorial-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--text-color);
}

.tutorial-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.tutorial-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.tutorial-duration {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bg-light);
    color: var(--text-light);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Use Cases */
.use-cases-section {
    margin-bottom: 4rem;
}

.use-cases-section h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
}

.use-case-list {
    display: grid;
    gap: 1.5rem;
}

.use-case {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.use-case-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.use-case-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.use-case-content p {
    color: var(--text-light);
}

/* Footer */
.docs-footer {
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 3rem 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.footer-section h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

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

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

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 1rem;
    text-align: center;
    color: var(--text-light);
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .docs-layout {
        flex-direction: column;
    }
    
    .docs-sidebar {
        width: 100%;
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .docs-content {
        max-width: 100%;
        padding: 1rem;
    }
    
    .docs-hero h1 {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .quick-start-steps {
        flex-direction: column;
        align-items: center;
    }
    
    .step {
        max-width: 100%;
        justify-content: center;
    }
    
    .nav-links {
        display: none;
    }
}

@media (max-width: 480px) {
    .quick-start-section {
        padding: 2rem 1rem;
    }
    
    .feature-grid,
    .tutorial-grid {
        grid-template-columns: 1fr;
    }
    
    .use-case {
        flex-direction: column;
        text-align: center;
    }
}