/* Documentation Specific Styles */
.docs-main {
    padding-top: 70px;
    min-height: 100vh;
    background: #fafbfc;
}

.docs-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    padding: 0 2rem;
}

/* Sidebar */
.docs-sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid #e9ecef;
}

.docs-nav h3 {
    color: #4CAF50;
    margin: 1.5rem 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

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

.docs-nav ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

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

.docs-nav a {
    color: #666;
    text-decoration: none;
    padding: 0.5rem 0;
    display: block;
    border-radius: 5px;
    padding-left: 1rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.docs-nav a:hover {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.docs-nav a.active {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.15);
    font-weight: 500;
}

/* Content */
.docs-content {
    padding: 2rem;
    background: white;
    border-radius: 15px;
    border: 1px solid #e9ecef;
    min-height: 80vh;
}

.docs-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e9ecef;
}

.docs-header h1 {
    font-size: 2.8rem;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.docs-header p {
    font-size: 1.25rem;
    color: #4a4a4a;
    font-weight: 400;
}

.docs-section {
    margin-bottom: 4rem;
    scroll-margin-top: 100px;
}

.docs-section h2 {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #4CAF50;
    font-weight: 700;
}

.docs-section h3 {
    font-size: 1.5rem;
    color: #2e7d32;
    margin: 2.5rem 0 1.25rem 0;
    font-weight: 600;
}

.docs-section h4 {
    font-size: 1.25rem;
    color: #1a1a1a;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.docs-section p {
    color: #2c2c2c;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.docs-section ul {
    color: #2c2c2c;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    padding-left: 2rem;
    font-size: 1.05rem;
}

.docs-section li {
    margin-bottom: 0.75rem;
}

/* Code Blocks */
.code-block {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.code-block pre {
    margin: 0;
    padding: 0;
    color: #24292e;
    font-family: 'Monaco', 'Menlo', 'Consolas', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    font-weight: 400;
    text-shadow: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    white-space: pre;
}

.code-block code {
    color: #24292e;
    font-family: 'Monaco', 'Menlo', 'Consolas', 'Courier New', monospace;
    background: transparent;
    text-shadow: none;
    border: none;
    outline: none;
    padding: 0;
    margin: 0;
    font-size: inherit;
    line-height: inherit;
}

/* Inline Code */
code {
    background: #f1f3f4;
    color: #d73a49;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Source Code Pro', monospace;
    font-size: 0.9em;
    font-weight: 500;
    border: 1px solid #e1e4e8;
    text-shadow: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Reset any inherited borders on code elements */
.code-block pre code,
.code-block code {
    border: none !important;
    text-shadow: none !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

/* Configuration Table */
.config-table {
    margin: 2rem 0;
}

.config-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.config-table th {
    background: #4CAF50;
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.config-table td {
    padding: 1.25rem;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
    color: #2c2c2c;
    font-size: 1rem;
}

.config-table tr:last-child td {
    border-bottom: none;
}

.config-table tr:nth-child(even) {
    background: #f8f9fa;
}

.config-table code {
    background: #f1f3f4;
    color: #2e7d32;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9em;
    border: 1px solid #e1e4e8;
}

/* API Methods */
.api-method {
    background: #ffffff;
    border-radius: 12px;
    padding: 2.5rem;
    margin: 2.5rem 0;
    border: 1px solid #e1e4e8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.api-method h4 {
    color: #2e7d32;
    margin-top: 0;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Source Code Pro', monospace;
    font-size: 1.2rem;
    font-weight: 600;
}

.api-method h5 {
    color: #1a1a1a;
    margin: 2rem 0 0.75rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.api-method ul {
    margin: 0.75rem 0 1.5rem 2rem;
    color: #2c2c2c;
    font-size: 1.05rem;
}

.api-method p {
    color: #2c2c2c;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Tier Examples */
.tier-examples {
    margin: 2rem 0;
}

.tier-example {
    margin-bottom: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    border: 1px solid #e9ecef;
}

.tier-example h4 {
    color: #4CAF50;
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Troubleshooting */
.troubleshooting-item {
    margin: 2rem 0;
}

.troubleshooting-item h4 {
    color: #e91e63;
    margin: 1.5rem 0 1rem 0;
}

/* Support Options */
.support-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.support-option {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease;
}

.support-option:hover {
    transform: translateY(-5px);
}

.support-option h3 {
    color: #4CAF50;
    margin-top: 0;
    margin-bottom: 1rem;
}

.support-option p {
    margin-bottom: 1.5rem;
}

/* Infrastructure Grid */
.infrastructure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.infra-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e1e4e8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.infra-card h3 {
    color: #2e7d32;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.infra-card p {
    margin-bottom: 1rem;
    font-weight: 600;
}

.infra-card ul {
    margin: 0;
    padding-left: 1.5rem;
}

.infra-card li {
    margin-bottom: 0.5rem;
    color: #2c2c2c;
}

/* License Tiers */
.license-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.license-tier {
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    position: relative;
}

.license-tier.featured {
    border-color: #4CAF50;
    background: #f1f8e9;
    transform: scale(1.02);
}

.license-tier.featured::before {
    content: "Most Popular";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #4CAF50;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.license-tier h3 {
    color: #2e7d32;
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.license-tier p {
    color: #666;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.license-tier ul {
    margin: 0;
    padding-left: 1.5rem;
}

.license-tier li {
    margin-bottom: 0.75rem;
    color: #2c2c2c;
}

/* Purchase Flow */
.purchase-flow {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid #e1e4e8;
    margin: 2rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.purchase-flow h3 {
    color: #2e7d32;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.purchase-flow ol {
    padding-left: 2rem;
}

.purchase-flow li {
    margin-bottom: 1rem;
    color: #2c2c2c;
    font-size: 1.05rem;
}

/* Live Demo Section */
.live-demo-section {
    background: #e8f5e8;
    padding: 2.5rem;
    border-radius: 12px;
    border: 2px solid #4CAF50;
    margin: 2rem 0;
}

.live-demo-section h3 {
    color: #2e7d32;
    margin-top: 0;
    margin-bottom: 1rem;
}

.live-demo-section ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.live-demo-section li {
    margin-bottom: 0.75rem;
    color: #2c2c2c;
}

/* Tier Info */
.tier-info {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    margin: 2rem 0;
}

.tier-info h3 {
    color: #2e7d32;
    margin-top: 0;
    margin-bottom: 1rem;
}

.tier-info ul {
    margin: 0;
    padding-left: 1.5rem;
}

.tier-info li {
    margin-bottom: 0.75rem;
    color: #2c2c2c;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .docs-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .docs-sidebar {
        position: static;
        order: 2;
        margin-top: 2rem;
    }
    
    .docs-content {
        order: 1;
    }
}

@media (max-width: 768px) {
    .docs-container {
        padding: 0 1rem;
    }
    
    .docs-content {
        padding: 1.5rem;
    }
    
    .docs-header h1 {
        font-size: 2rem;
    }
    
    .docs-section h2 {
        font-size: 1.5rem;
    }
    
    .config-table {
        overflow-x: auto;
    }
    
    .config-table table {
        min-width: 600px;
    }
    
    .support-options {
        grid-template-columns: 1fr;
    }
    
    .code-block {
        margin: 1rem -0.5rem;
        border-radius: 0;
    }
}

/* Syntax Highlighting for Code */
.code-block .keyword {
    color: #d73a49;
    font-weight: 600;
}

.code-block .string {
    color: #032f62;
}

.code-block .comment {
    color: #6a737d;
    font-style: italic;
}

.code-block .number {
    color: #005cc5;
}

.code-block .function {
    color: #6f42c1;
}

/* Smooth Scrolling Offset */
html {
    scroll-padding-top: 100px;
}

/* Navigation Active State */
.docs-nav a[href="#installation"]:target,
.docs-nav a[href="#quick-start"]:target,
.docs-nav a[href="#configuration"]:target {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.15);
    font-weight: 500;
}