/* ============================================================
   Developer Guidance Hub — developer-guidance.css
   Scoped styles for the /developer-guidance page.
   ============================================================ */

/* ── Root & Body ── */
:root {
    --bg-dark: #070913;
    --bg-card: rgba(13, 17, 38, 0.55);
    --border-glow: rgba(139, 92, 246, 0.15);
    --primary: #8b5cf6;
    --primary-glow: rgba(139, 92, 246, 0.25);
    --secondary: #06b6d4;
    --secondary-glow: rgba(6, 182, 212, 0.2);
    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --code-bg: #04060f;
    --code-border: rgba(255, 255, 255, 0.08);
}

body {
    background-color: var(--bg-dark);
    color: #f8fafc;
    font-family: var(--font-body);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    z-index: -1;
    filter: blur(80px);
    pointer-events: none;
}

/* ── Navbar ── */
.navbar-glass {
    background: rgba(7, 9, 19, 0.85);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.2rem 0;
}

.navbar-brand {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #a78bfa !important;
    text-decoration: none;
}

/* ── Glass Card ── */
.glass-card {
    background: var(--bg-card);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.glass-card:hover {
    border-color: rgba(139, 92, 246, 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* ── Gradient Text ── */
.gradient-text {
    background: linear-gradient(135deg, #ffffff 20%, #c084fc 60%, #8b5cf6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-display);
    font-weight: 800;
}

/* ── Buttons ── */
.btn-premium {
    background: linear-gradient(135deg, var(--primary) 0%, #6d28d9 100%);
    color: #ffffff;
    padding: 0.75rem 2rem;
    border-radius: 100px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
    color: #ffffff;
}

/* ── Badge Brand ── */
.badge-brand {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(6, 182, 212, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.25);
    color: #c084fc;
    padding: 0.6rem 1.4rem;
    border-radius: 100px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ── Sidebar Nav Pills ── */
.nav-pills .nav-link {
    color: #94a3b8;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.nav-pills .nav-link.active {
    background: var(--primary);
    color: #ffffff;
}

.nav-pills .nav-link:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.api-new-badge {
    font-size: 0.6rem;
    vertical-align: middle;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.6; }
}

/* ── API Jump Menu ── */
.api-jump-link {
    color: #64748b;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.api-jump-link:hover {
    color: #c084fc;
}

/* ── Code & Pre ── */
pre {
    background-color: var(--code-bg) !important;
    border: 1px solid var(--code-border);
    border-radius: 12px;
    padding: 1.2rem;
    color: #22d3ee !important;
    font-family: 'Courier New', Courier, monospace;
    overflow-x: auto;
    font-size: 0.83rem;
    line-height: 1.7;
}

code {
    color: #f472b6;
    font-size: 0.88em;
}

pre code {
    color: #22d3ee;
}

/* ── API Hero Banner ── */
.api-hero-banner {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(6, 182, 212, 0.05) 100%);
    border-color: rgba(139, 92, 246, 0.2);
}

.api-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #c084fc;
    flex-shrink: 0;
}

.api-stat-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #e2e8f0;
}

/* ── Base URL Box ── */
.base-url-box {
    background: var(--code-bg);
    border: 1px solid var(--code-border);
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    font-size: 0.85rem;
}

/* ── Endpoint Blocks ── */
.endpoint-block {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 1.5rem;
}

.endpoint-path {
    font-size: 0.95rem;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.25rem 0.7rem;
    border-radius: 6px;
}

/* ── HTTP Method Badges ── */
.method-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.method-get    { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.method-post   { background: rgba(59, 130, 246, 0.15);  color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.3); }
.method-patch  { background: rgba(245, 158, 11, 0.15);  color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }
.method-put    { background: rgba(139, 92, 246, 0.15);  color: #8b5cf6; border: 1px solid rgba(139, 92, 246, 0.3); }
.method-delete { background: rgba(239, 68, 68, 0.15);   color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }

/* ── Response Example ── */
.response-example {
    margin-top: 1rem;
    position: relative;
}

.response-label {
    display: inline-block;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.2rem 0.7rem;
    margin-bottom: 0.5rem;
}

/* ── Params Table ── */
.params-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.params-table thead th {
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 1px;
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.params-table tbody td {
    padding: 0.65rem 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #cbd5e1;
    vertical-align: top;
}

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

/* ── Copy Button ── */
.copy-btn {
    font-size: 0.78rem;
    font-weight: 600;
    flex-shrink: 0;
}

.copy-btn.copied {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: #10b981 !important;
    color: #10b981 !important;
}

/* ── Plugin ID Pills ── */
.plugin-id-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 0.55rem 0.9rem;
    font-size: 0.85rem;
    color: #cbd5e1;
    display: flex;
    align-items: center;
}

/* ── Sandbox UI ── */
.sandbox-label {
    display: block;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
}

.sandbox-input {
    width: 100%;
    background: var(--code-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #e2e8f0;
    padding: 0.65rem 0.9rem;
    font-size: 0.875rem;
    font-family: var(--font-body);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.sandbox-input:focus {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.sandbox-input option {
    background: #0d1126;
}

.sandbox-textarea {
    resize: vertical;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.82rem;
}

.sandbox-result {
    background: var(--code-bg) !important;
    border: 1px solid var(--code-border);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    color: #22d3ee !important;
    min-height: 80px;
    max-height: 400px;
    overflow-y: auto;
    font-size: 0.82rem;
}

/* ── SDK Tab Buttons ── */
.sdk-tab-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sdk-tab-btn:hover {
    background: rgba(139, 92, 246, 0.1);
    color: #c084fc;
    border-color: rgba(139, 92, 246, 0.3);
}

.sdk-tab-btn.active {
    background: rgba(139, 92, 246, 0.15);
    color: #c084fc;
    border-color: rgba(139, 92, 246, 0.4);
}
