/*
Theme Name: Speed Leopard Pro
Description: A modern, professional WordPress theme for Speed Leopard Pro vs Free comparison page
Author: Your Name
Version: 1.0
Text Domain: speed-leopard-pro
*/

:root {
    --primary-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
    --secondary-gradient: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    --accent-color: #f59e0b;
    --accent-light: #fbbf24;
    --accent-dark: #b45309;
    --success-color: #059669;
    --success-light: #10b981;
    --warning-color: #d97706;
    --danger-color: #dc2626;
    --info-color: #0ea5e9;
    --surface-color: #ffffff;
    --surface-alt: #f8fafc;
    --background-color: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-large: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background: var(--primary-gradient);
    color: white;
    padding: 64px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><circle cx='10' cy='10' r='1' fill='rgba(255,255,255,0.1)'/><circle cx='30' cy='30' r='1' fill='rgba(255,255,255,0.1)'/><circle cx='70' cy='20' r='1' fill='rgba(255,255,255,0.1)'/><circle cx='90' cy='70' r='1' fill='rgba(255,255,255,0.1)'/></svg>") repeat;
    opacity: 0.3;
}

.header-content {
    position: relative;
    z-index: 1;
}

.logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.header h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 16px;
    letter-spacing: -0.025em;
}

.header p {
    font-size: 20px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Comparison Section */
.comparison {
    padding: 80px 0;
    background: var(--surface-color);
}

.comparison-header {
    text-align: center;
    margin-bottom: 64px;
}

.comparison-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.comparison-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Pricing Cards */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 64px;
}

.pricing-card {
    background: var(--surface-color);
    border-radius: var(--border-radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-medium);
    border: 2px solid var(--border-color);
    position: relative;
    text-align: center;
    transition: var(--transition);
}

.pricing-card.free {
    border-color: var(--info-color);
}

.pricing-card.pro {
    border-color: var(--accent-color);
    transform: scale(1.05);
    box-shadow: var(--shadow-large);
}

.pricing-card.pro::before {
    content: "RECOMMENDED";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-gradient);
    color: white;
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.pricing-header {
    margin-bottom: 32px;
}

.plan-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.plan-price {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 8px;
}

.pricing-card.free .plan-price {
    color: var(--info-color);
}

.pricing-card.pro .plan-price {
    color: var(--accent-color);
}

.plan-billing {
    color: var(--text-secondary);
    font-size: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-family);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    width: 100%;
    margin-top: 24px;
}

.btn-secondary {
    background: var(--surface-alt);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--text-primary);
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
    color: white;
    text-decoration: none;
}

/* Feature Comparison Table */
.feature-table {
    background: var(--surface-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
}

.table-header {
    background: var(--surface-alt);
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 24px;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
}

.feature-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-row:hover {
    background: var(--surface-alt);
}

.feature-row:last-child {
    border-bottom: none;
}

.feature-name {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: var(--text-primary);
}

.feature-icon {
    width: 24px;
    height: 24px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    flex-shrink: 0;
}

.feature-status {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.status-yes {
    color: var(--success-color);
}

.status-no {
    color: var(--text-muted);
}

.status-limited {
    color: var(--warning-color);
}

/* Feature Categories */
.category-divider {
    background: var(--primary-gradient);
    color: white;
    padding: 16px 24px;
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-icon {
    font-size: 20px;
}

/* Detailed Features */
.detailed-features {
    padding: 80px 0;
    background: var(--surface-alt);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.feature-card {
    background: var(--surface-color);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-color);
}

.feature-card-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-medium);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.pro-badge {
    background: var(--accent-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: var(--primary-gradient);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
}

.cta-button {
    background: white;
    color: var(--accent-color);
    padding: 20px 40px;
    font-size: 18px;
    font-weight: 700;
}

.cta-button:hover {
    color: var(--accent-color);
}

.guarantee {
    margin-top: 24px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(4px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .pricing-card.pro {
        transform: none;
    }

    .table-header,
    .feature-row {
        grid-template-columns: 2fr 1fr 1fr;
        font-size: 14px;
        padding: 16px;
    }

    .header h1 {
        font-size: 36px;
    }

    .comparison-title {
        font-size: 32px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .cta-title {
        font-size: 28px;
    }
}

/* Header Navigation */
.header-nav {
    display: flex;
    gap: 20px;
    margin: 24px 0;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    text-decoration: none;
    color: white;
    transform: translateY(-1px);
}

.nav-link.nav-primary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--accent-color);
    font-weight: 600;
}

.nav-link.nav-primary:hover {
    background: white;
    color: var(--accent-color);
}

/* Responsive */
@media (max-width: 768px) {
    .header-nav {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}

/* Centralized Footer CSS - Replace footer sections in your style.css */

/* Base Footer Styling - CENTRALIZED */
.footer {
    background: var(--secondary-gradient);
    color: white;
    padding: 48px 0 32px 0;
    text-align: center; /* Center everything */
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center all children */
    justify-content: center;
}

/* Brand Logo Section - CENTRALIZED */
.footer .brand-logo {
    display: flex !important;
    align-items: center;
    justify-content: center !important;
    gap: 16px;
    margin-bottom: 24px;
}

.footer .brand-logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.footer .brand-text h3 {
    color: white !important;
    margin: 0 !important;
    font-size: 24px;
    font-weight: 700;
}

/* Footer Links Styling - CENTRALIZED */
.footer-links {
    margin-bottom: 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px; /* Space between links */
}

.footer-links a {
    color: #fbbf24 !important;
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
    padding: 8px 12px; /* Add padding for better click area */
    border-radius: 4px;
}

.footer-links a:hover {
    color: #f59e0b !important;
    border-bottom-color: #f59e0b;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
}

/* Legal Disclaimer Box - CENTRALIZED */
.legal-disclaimer {
    background: rgba(0, 0, 0, 0.2) !important;
    padding: 20px;
    border-radius: 12px;
    margin: 24px auto !important;
    max-width: 900px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.legal-disclaimer p {
    margin: 0 !important;
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9) !important;
    text-align: center !important;
    max-width: 100%;
}

/* Footer Copyright Text - CENTRALIZED */
.footer p {
    margin: 8px 0 !important;
    opacity: 0.8;
    text-align: center !important;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.footer p:last-child {
    margin-bottom: 0 !important;
}

/* Modal Content - Keep centered */
.terms-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    background: #ffffff;
    margin: 50px auto;
    padding: 40px;
    max-width: 800px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1f2937;
    line-height: 1.6;
    text-align: left; /* Keep modal content left-aligned for readability */
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #6b7280;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

/* Modal Content Styling */
.modal-content h2 {
    color: #f59e0b;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 30px;
    border-bottom: 3px solid #f59e0b;
    padding-bottom: 10px;
    text-align: center; /* Center the main title */
}

.modal-content h3 {
    color: #374151;
    font-size: 18px;
    font-weight: 700;
    margin-top: 25px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-content h3:before {
    content: "📋";
    font-size: 16px;
}

.modal-content p {
    color: #4b5563;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.modal-content ul {
    margin: 15px 0;
    padding-left: 25px;
    color: #4b5563;
}

.modal-content li {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.modal-content strong {
    color: #1f2937;
    font-weight: 700;
}

/* Special styling for important notices */
.modal-content p:has(strong:contains("NO WARRANTY")),
.modal-content p:has(strong:contains("ALWAYS BACKUP")) {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
}

/* Contact info styling - CENTERED */
.modal-content p:last-of-type {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    font-style: italic;
    color: #6b7280;
    font-size: 13px;
    text-align: center; /* Center contact info */
}

/* Responsive Design - CENTRALIZED */
@media (max-width: 768px) {
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: center;
        justify-content: center;
    }
    
    .footer-links a {
        margin: 5px 0;
        display: block;
        text-align: center;
    }
    
    .legal-disclaimer {
        margin: 20px 10px !important;
        padding: 16px;
        text-align: center !important;
    }
    
    .legal-disclaimer p {
        font-size: 12px;
        text-align: center !important;
    }
    
    .modal-content {
        margin: 20px auto;
        padding: 25px;
        max-width: 95%;
    }
    
    .modal-content h2 {
        font-size: 24px;
    }
    
    .modal-content h3 {
        font-size: 16px;
    }
    
    .terms-modal {
        padding: 10px;
    }
    
    .footer .brand-logo {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .legal-disclaimer p {
        font-size: 11px;
        line-height: 1.4;
        text-align: center !important;
    }
    
    .modal-content {
        padding: 20px;
    }
    
    .modal-content h2 {
        font-size: 22px;
    }
    
    .footer {
        padding: 32px 0 24px 0;
    }
    
    .footer-links a {
        font-size: 13px;
        padding: 6px 10px;
    }
}

/* Animation for modal appearance */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.terms-modal[style*="block"] .modal-content {
    animation: modalFadeIn 0.3s ease-out;
}

/* Utility classes for better text styling */
.highlight-warning {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    text-align: center;
}

.highlight-danger {
    background: #fee2e2;
    border-left: 4px solid #ef4444;
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    text-align: center;
}

.highlight-info {
    background: #dbeafe;
    border-left: 4px solid #3b82f6;
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    text-align: center;
}

/* Print styles for terms modal */
@media print {
    .terms-modal {
        position: static !important;
        background: white !important;
        padding: 0 !important;
    }
    
    .modal-close {
        display: none !important;
    }
    
    .modal-content {
        box-shadow: none !important;
        margin: 0 !important;
        padding: 20px !important;
    }
}

/* Documentation Page Styles - Add this to your style.css */

/* Documentation Header */
.documentation-header {
    background: var(--primary-gradient);
    color: white;
    padding: 48px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.documentation-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><circle cx='10' cy='10' r='1' fill='rgba(255,255,255,0.1)'/><circle cx='30' cy='30' r='1' fill='rgba(255,255,255,0.1)'/><circle cx='70' cy='20' r='1' fill='rgba(255,255,255,0.1)'/><circle cx='90' cy='70' r='1' fill='rgba(255,255,255,0.1)'/></svg>") repeat;
    opacity: 0.3;
}

.documentation-header .header-content {
    position: relative;
    z-index: 1;
}

.documentation-header .logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.documentation-header h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.025em;
}

.documentation-header p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto;
}

/* Active navigation state */
.nav-link.nav-active {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.4);
}

/* Documentation Navigation */
.docs-nav {
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    box-shadow: var(--shadow-light);
}

.docs-nav-content {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.docs-nav h3 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: fit-content;
}

.docs-nav .nav-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    flex: 1;
}

.docs-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--surface-alt);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.docs-nav-link:hover {
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--shadow-light);
}

/* Documentation Layout */
.documentation-content {
    padding: 40px 0 80px 0;
    background: var(--background-color);
}

.docs-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

/* Sidebar */
.docs-sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-sticky {
    background: var(--surface-color);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.docs-sidebar h4 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-color);
}

.docs-toc {
    list-style: none;
    padding: 0;
    margin: 0;
}

.docs-toc li {
    margin-bottom: 8px;
}

.docs-toc a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 4px 0;
    display: block;
    transition: var(--transition);
    border-radius: 4px;
    padding-left: 8px;
}

.docs-toc a:hover {
    color: var(--accent-color);
    text-decoration: none;
    background: var(--surface-alt);
    padding-left: 12px;
}

.docs-toc ul {
    list-style: none;
    padding-left: 16px;
    margin-top: 4px;
}

.docs-toc ul a {
    font-size: 13px;
    color: var(--text-muted);
}

/* Sidebar CTA */
.sidebar-cta {
    margin-top: 24px;
    padding: 20px;
    background: var(--primary-gradient);
    border-radius: var(--border-radius);
    text-align: center;
    color: white;
}

.sidebar-cta h5 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.sidebar-cta p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 16px;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

/* Main Content */
.docs-main {
    background: var(--surface-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

/* Documentation Sections */
.docs-section {
    padding: 40px;
    border-bottom: 1px solid var(--border-color);
}

.docs-section:last-child {
    border-bottom: none;
}

.docs-section h2 {
    color: var(--text-primary);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent-color);
}

.docs-section h2 i {
    color: var(--accent-color);
    font-size: 28px;
}

.docs-subsection {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.docs-subsection:first-child {
    margin-top: 24px;
    padding-top: 0;
    border-top: none;
}

.docs-subsection h3 {
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.docs-section h4 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.docs-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.docs-section ol,
.docs-section ul {
    color: var(--text-secondary);
    margin: 16px 0;
    padding-left: 24px;
}

.docs-section li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.docs-section code {
    background: var(--surface-alt);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: var(--accent-dark);
    border: 1px solid var(--border-color);
}

.docs-section strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Documentation Components */
.docs-step {
    background: var(--surface-alt);
    border-radius: var(--border-radius);
    padding: 24px;
    margin: 24px 0;
    border-left: 4px solid var(--accent-color);
}

.docs-feature-box {
    background: linear-gradient(135deg, var(--surface-alt) 0%, var(--surface-color) 100%);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    margin: 24px 0;
    border: 1px solid var(--border-color);
}

.docs-feature-box h3 {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 8px 0;
}

.feature-list i {
    color: var(--success-color);
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Notes and Alerts */
.docs-note {
    padding: 16px 20px;
    border-radius: var(--border-radius);
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-left: 4px solid;
}

.docs-note.success {
    background: #f0fdf4;
    border-left-color: var(--success-color);
    color: #166534;
}

.docs-note.info {
    background: #eff6ff;
    border-left-color: var(--info-color);
    color: #1e40af;
}

.docs-note.pro {
    background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
    border-left-color: var(--accent-color);
    color: var(--accent-dark);
}

.docs-note i {
    font-size: 18px;
    margin-top: 2px;
}

/* Statistics and Metrics */
.stats-box {
    display: flex;
    gap: 32px;
    margin: 20px 0;
    justify-content: center;
}

.stat {
    text-align: center;
    padding: 16px;
    background: var(--surface-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    min-width: 120px;
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Comparison Components */
.docs-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 24px 0;
}

.comparison-item {
    background: var(--surface-alt);
    border-radius: var(--border-radius);
    padding: 24px;
    border: 2px solid var(--border-color);
}

.comparison-item.pro {
    background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
    border-color: var(--accent-color);
}

.comparison-item h3,
.comparison-item h4 {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comparison-item.pro h3,
.comparison-item.pro h4 {
    color: var(--accent-dark);
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.metric-item {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.metric-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.metric-item i {
    font-size: 24px;
    color: var(--accent-color);
    margin-bottom: 12px;
}

.metric-item h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.metric-item p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* Score Ranges */
.docs-scoring {
    margin: 24px 0;
}

.score-ranges {
    display: flex;
    gap: 16px;
    margin: 20px 0;
    justify-content: center;
    flex-wrap: wrap;
}

.score-range {
    text-align: center;
    padding: 16px 20px;
    border-radius: var(--border-radius);
    min-width: 100px;
    color: white;
    font-weight: 600;
}

.score-range.excellent {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.score-range.good {
    background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
}

.score-range.fair {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
}

.score-range.poor {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}

.score-range .score {
    display: block;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 4px;
}

.score-range .label {
    font-size: 14px;
    opacity: 0.9;
}

/* When To Use */
.docs-when-to {
    margin: 24px 0;
}

.when-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.when-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--surface-alt);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.when-item:hover {
    background: var(--surface-color);
    border-color: var(--accent-color);
}

.when-item i {
    color: var(--accent-color);
    font-size: 18px;
}

.when-item span {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Safety Section */
.docs-safety {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    margin: 24px 0;
    border: 1px solid #bbf7d0;
}

.docs-safety h3 {
    color: #15803d;
    margin-bottom: 16px;
}

.docs-safety p {
    color: #166534;
}

/* Troubleshooting */
.docs-troubleshooting {
    margin: 24px 0;
}

.troubleshooting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 24px 0;
}

.trouble-category {
    background: var(--surface-alt);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    border: 1px solid var(--border-color);
}

.trouble-category h3 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent-color);
}

.trouble-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.trouble-item {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 16px;
    border: 1px solid var(--border-color);
}

.trouble-item h4 {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.trouble-item p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

/* Support Contact */
.support-contact {
    background: var(--surface-alt);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    margin: 32px 0;
    border: 1px solid var(--border-color);
    text-align: center;
}

.support-contact h3 {
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    justify-content: center;
}

.contact-tips {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.contact-tips h4 {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.contact-tips ul {
    margin: 0;
    color: var(--text-secondary);
}

/* Best Practices */
.best-practices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 24px 0;
}

.practice-item {
    background: var(--surface-alt);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.practice-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-color);
}

.practice-item h3 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.practice-item i {
    color: var(--accent-color);
}

/* Pricing Highlight */
.pricing-highlight {
    background: var(--primary-gradient);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    margin: 32px 0;
    text-align: center;
    color: white;
}

.pricing-highlight h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
    color: white;
    justify-content: center;
}

.pricing-highlight p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 24px;
    color: white;
}

.pricing-highlight .btn {
    background: white;
    color: var(--accent-color);
    font-weight: 700;
}

.pricing-highlight .btn:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Documentation CTA */
.docs-cta {
    background: var(--primary-gradient);
    border-radius: var(--border-radius-lg);
    padding: 48px;
    text-align: center;
    color: white;
    margin: 32px 0 0 0;
}

.docs-cta .cta-content h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
    color: white;
    border: none;
    padding: 0;
    justify-content: center;
}

.docs-cta .cta-content p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
    color: white;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.docs-cta .btn-primary {
    background: white;
    color: var(--accent-color);
}

.docs-cta .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.docs-cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .docs-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .docs-sidebar {
        position: static;
        order: 2;
    }
    
    .sidebar-sticky {
        display: none; /* Hide sidebar on mobile, could make it collapsible */
    }
}

@media (max-width: 768px) {
    .documentation-header h1 {
        font-size: 28px;
    }
    
    .documentation-header p {
        font-size: 16px;
    }
    
    .docs-nav-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .docs-nav .nav-links {
        justify-content: center;
        width: 100%;
    }
    
    .docs-section {
        padding: 24px;
    }
    
    .docs-section h2 {
        font-size: 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .docs-comparison {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .score-ranges {
        flex-direction: column;
        align-items: center;
    }
    
    .when-grid {
        grid-template-columns: 1fr;
    }
    
    .troubleshooting-grid {
        grid-template-columns: 1fr;
    }
    
    .best-practices-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-box {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .documentation-header .logo {
        width: 60px;
        height: 60px;
    }
    
    .documentation-header h1 {
        font-size: 24px;
    }
    
    .docs-section h2 {
        font-size: 20px;
    }
    
    .docs-section {
        padding: 20px;
    }
    
    .docs-step,
    .docs-feature-box {
        padding: 20px;
    }
    
    .docs-cta {
        padding: 32px 20px;
    }
    
    .docs-cta .cta-content h2 {
        font-size: 24px;
    }
}