/* ==========================================================================
   Documentation Styles — Google Maps Scraper Guide
   ========================================================================== */

.docs-body {
    background-color: var(--bg-page);
    color: var(--text-body);
    font-family: var(--font-sans);
    line-height: 1.7;
    padding: 0;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Docs Header */
.docs-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-card);
    padding: 1rem 1.5rem;
}

.docs-header-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary);
    text-decoration: none;
    padding: 0.45rem 0.9rem;
    border-radius: 10px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    transition: all 0.2s ease;
}

.back-link:hover {
    background: #dbeafe;
    transform: translateX(-3px);
}

.docs-badge {
    font-family: var(--font-head);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

/* Docs Container */
.docs-container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 5rem;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.docs-article {
    background: #ffffff;
    border: 1px solid var(--border-card);
    border-radius: 24px;
    padding: 3.5rem 3rem;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.04);
}

/* Article Header */
.article-header {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 2rem;
    margin-bottom: 2.5rem;
}

.docs-title {
    font-family: var(--font-head);
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
    margin-bottom: 0.6rem;
}

.docs-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Section Content */
.docs-section {
    margin-bottom: 3rem;
}

.docs-lead {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-head);
    margin-bottom: 1rem;
}

.task-types-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.task-types-list li {
    position: relative;
    padding-left: 1.8rem;
    font-size: 1.05rem;
    color: var(--text-body);
}

.task-types-list li::before {
    content: "•";
    position: absolute;
    left: 0.5rem;
    color: var(--primary);
    font-size: 1.4rem;
    line-height: 1;
    top: -2px;
}

.docs-paragraph {
    font-size: 1.05rem;
    color: #334155;
    line-height: 1.75;
    margin-bottom: 1.4rem;
}

.docs-method-lead {
    margin-top: 2rem;
    font-weight: 600;
    color: var(--text-head);
}

.inline-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.92rem;
    background: #f1f5f9;
    color: var(--primary);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    font-weight: 600;
}

/* Code Block Container */
.code-block-container {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 16px;
    overflow: hidden;
    margin: 1.5rem 0 2.5rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
}

.code-block-header {
    background: #1e293b;
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #334155;
}

.code-block-meta {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.code-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.code-dot.red { background: #ef4444; }
.code-dot.yellow { background: #f59e0b; }
.code-dot.green { background: #10b981; }

.code-filename {
    margin-left: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
}

.copy-code-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-code-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.copy-code-btn.copied {
    background: #10b981;
    color: #ffffff;
    border-color: #10b981;
}

.code-pre {
    margin: 0;
    padding: 1.5rem;
    overflow-x: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.88rem;
    line-height: 1.65;
    color: #e2e8f0;
}

/* Syntax Highlighting */
.token-keyword { color: #60a5fa; font-weight: 600; }
.token-prop { color: #cbd5e1; }
.token-string { color: #34d399; }
.token-boolean { color: #f472b6; font-weight: 600; }
.token-null { color: #fb923c; font-weight: 600; }
.token-number { color: #a78bfa; font-weight: 600; }
.token-function { color: #38bdf8; font-weight: 600; }
.token-comment { color: #94a3b8; font-style: italic; }

/* Params Table Section */
.docs-h2 {
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin-bottom: 1.25rem;
}

.params-table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border-card);
    border-radius: 14px;
}

.params-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    text-align: left;
}

.params-table th {
    background: #f8fafc;
    padding: 0.85rem 1.2rem;
    font-weight: 700;
    color: #0f172a;
    border-bottom: 1px solid var(--border-card);
}

.params-table td {
    padding: 0.95rem 1.2rem;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}

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

.params-table code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.88rem;
    color: var(--primary);
    background: #eff6ff;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    font-weight: 600;
}

.badge-type {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-weight: 600;
}

.badge-optional {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #0284c7;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-weight: 600;
}

.badge-required {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-weight: 700;
}

/* Docs Pill Badge */
.docs-pill-badge {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 9999px;
    background: #eff6ff;
    color: var(--primary);
    border: 1px solid #bfdbfe;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

/* Clean & Simple Endpoint Box */
.clean-endpoint-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1rem 1.25rem;
    margin: 1.25rem 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.endpoint-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.6rem 0.9rem;
}

.http-tag {
    background: #2563eb;
    color: #ffffff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    letter-spacing: 0.04em;
}

.endpoint-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    flex-grow: 1;
    word-break: break-all;
}

.copy-url-btn {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-url-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.copy-url-btn.copied {
    background: #10b981;
    color: #ffffff;
    border-color: #10b981;
}

.endpoint-meta-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.meta-pill {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.meta-name {
    color: #64748b;
    font-weight: 600;
}

.meta-pill code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    color: #0f172a;
    background: #f1f5f9;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}

/* Code Tabs Component */
.code-tabs-wrapper {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 16px;
    overflow: hidden;
    margin: 1.5rem 0 2.5rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
}

.quickstart-section {
    margin-top: 3.5rem;
    margin-bottom: 2rem;
}

.quickstart-badge {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.tab-lang-icon {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.12);
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    margin-right: 0.35rem;
    letter-spacing: 0;
}

.tab-btn.active .tab-lang-icon {
    background: rgba(255, 255, 255, 0.25);
}

.code-tabs-header {
    background: #1e293b;
    padding: 0.6rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #334155;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tabs-nav {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
}

.tab-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-family: var(--font-sans);
    font-size: 0.86rem;
    font-weight: 600;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.tab-btn:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.08);
}

.tab-btn.active {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}


/* Guidelines & Plan Info Card */
.guidelines-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    margin-top: 2rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.guidelines-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.2rem;
}

.guidelines-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
}

.guidelines-title {
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.guidelines-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.guidelines-item {
    font-size: 0.93rem;
    line-height: 1.65;
    color: #334155;
}

.guidelines-item strong {
    color: #0f172a;
}

.guidelines-item code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    background: #e2e8f0;
    color: #1e293b;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-weight: 600;
}

.warning-line {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 0.7rem 0.95rem;
    margin-top: 0.5rem;
    color: #92400e;
    font-size: 0.9rem;
    line-height: 1.55;
}

.warning-line strong {
    color: #78350f;
}

.warning-line code {
    background: rgba(217, 119, 6, 0.12);
    color: #b45309;
}

/* Support Callout */
.support-callout {
    margin-top: 3rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    padding: 1.75rem 2rem;
}

.support-callout-inner {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.support-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #bfdbfe;
    display: flex;
    align-items: center;
    justify-content: center;
}

.support-title {
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0 0 0.35rem;
}

.support-desc {
    font-size: 0.95rem;
    color: #1e40af;
    margin: 0;
    line-height: 1.6;
}

.support-desc a {
    color: #2563eb;
    font-weight: 700;
    text-decoration: underline;
}

/* Footer */
.docs-footer {
    border-top: 1px solid var(--border-card);
    background: #ffffff;
    padding: 2rem 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .docs-article {
        padding: 2rem 1.25rem;
        border-radius: 16px;
    }
    .docs-container {
        padding: 2rem 1rem 4rem;
    }
    .code-pre {
        padding: 1rem;
        font-size: 0.82rem;
    }
}
