/* 
==========================================
ZEDTRANSLATE - PREMIUM DOCUMENTATION STYLES
Professional Documentation Layout with Modern Design
==========================================
*/

/* Font for code blocks */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap');

/* Documentation Layout */
.docs-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    min-height: calc(100vh - 80px);
    padding-top: 3rem;
}

/* Sidebar Navigation */
.docs-nav {
    position: sticky;
    top: 100px;
    height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 1.5rem;
    border-right: 1px solid rgba(0, 217, 255, 0.15);
}

/* Custom scrollbar for sidebar */
.docs-nav::-webkit-scrollbar {
    width: 4px;
}

.docs-nav::-webkit-scrollbar-track {
    background: transparent;
}

.docs-nav::-webkit-scrollbar-thumb {
    background: rgba(0, 217, 255, 0.3);
    border-radius: 4px;
}

.docs-nav-group {
    margin-bottom: 2rem;
}

.docs-nav-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--electric-cyan);
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.docs-nav-link {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
    margin-bottom: 2px;
    border-left: 2px solid transparent;
}

.docs-nav-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
    border-left-color: rgba(0, 217, 255, 0.3);
    transform: translateX(2px);
}

.docs-nav-link.active {
    color: var(--electric-cyan);
    background: rgba(0, 217, 255, 0.1);
    font-weight: 600;
    border-left-color: var(--electric-cyan);
}

/* Documentation Content */
.docs-content {
    max-width: 850px;
    padding-bottom: 5rem;
}

/* Typography */
.docs-content h1 {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff, #00d9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.docs-content h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(0, 217, 255, 0.2);
    color: var(--white);
}

.docs-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.75rem;
    margin-bottom: 0.875rem;
    color: var(--electric-cyan);
}

.docs-content h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.625rem;
    color: var(--white);
}

.docs-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
}

.docs-content strong {
    color: var(--white);
    font-weight: 600;
}

/* Lists */
.docs-content ul,
.docs-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.docs-content li {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.docs-content li strong {
    color: var(--electric-cyan);
}

/* Code Blocks - Premium Style */
.docs-content pre {
    background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
    border: 1px solid rgba(0, 217, 255, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    position: relative;
}

.docs-content pre::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--electric-cyan), var(--vibrant-green));
    border-radius: 12px 12px 0 0;
}

.docs-content code {
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #e6edf3;
}

.docs-content pre code {
    color: #c9d1d9;
}

/* Inline code */
.docs-content p code,
.docs-content li code,
.docs-content td code {
    background: rgba(0, 217, 255, 0.1);
    color: var(--electric-cyan);
    padding: 0.2em 0.5em;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 500;
    border: 1px solid rgba(0, 217, 255, 0.2);
}

/* Tables - Modern Design */
.docs-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.5rem 0;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 217, 255, 0.15);
}

.docs-content thead {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.15), rgba(0, 204, 122, 0.1));
}

.docs-content th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    color: var(--electric-cyan);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid rgba(0, 217, 255, 0.3);
}

.docs-content td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.85);
}

.docs-content tbody tr {
    transition: background 0.2s ease;
}

.docs-content tbody tr:hover {
    background: rgba(0, 217, 255, 0.05);
}

.docs-content tbody tr:last-child td {
    border-bottom: none;
}

/* Callout Boxes */
.callout {
    padding: 1.25rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    border-left: 4px solid;
    position: relative;
    overflow: hidden;
}

.callout::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.05;
    pointer-events: none;
}

.callout-info {
    background: rgba(0, 217, 255, 0.08);
    border-left-color: var(--electric-cyan);
}

.callout-success {
    background: rgba(0, 204, 122, 0.08);
    border-left-color: var(--vibrant-green);
}

.callout-warning {
    background: rgba(255, 179, 0, 0.08);
    border-left-color: #ffb300;
}

.callout-note {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: rgba(255, 255, 255, 0.3);
}

.callout strong {
    color: var(--electric-cyan);
}

/* Step Guide Component */
.step-guide {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.05) 0%, rgba(0, 204, 122, 0.03) 100%);
    border: 1px solid rgba(0, 217, 255, 0.15);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.step-guide h4 {
    color: var(--electric-cyan);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* API Endpoint Badge */
.endpoint-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 217, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 1rem 0;
    border: 1px solid rgba(0, 217, 255, 0.2);
}

.endpoint-method {
    background: linear-gradient(135deg, var(--electric-cyan), var(--vibrant-green));
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* Section Dividers */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.3), transparent);
    margin: 4rem 0;
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Scroll Padding for Anchor Links */
.docs-content section {
    scroll-margin-top: 100px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .docs-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-top: 2rem;
    }

    .docs-nav {
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid rgba(0, 217, 255, 0.15);
        margin-bottom: 2rem;
        padding-bottom: 2rem;
    }

    .docs-content h1 {
        font-size: 2.25rem;
    }

    .docs-content h2 {
        font-size: 1.75rem;
    }

    .docs-content table {
        font-size: 0.9rem;
    }

    .docs-content th,
    .docs-content td {
        padding: 0.75rem;
    }
}

@media (max-width: 768px) {
    .docs-content h1 {
        font-size: 2rem;
    }

    .docs-content h2 {
        font-size: 1.5rem;
    }

    .docs-content pre {
        padding: 1rem;
        margin: 1.5rem 0;
    }

    .callout {
        padding: 1rem;
    }

    .step-guide {
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {

    .docs-nav,
    .header {
        display: none;
    }

    .docs-layout {
        grid-template-columns: 1fr;
    }

    .docs-content {
        max-width: 100%;
    }
}