/* WyldFire Developer pages — uses CSS variables from customTheme.css */

* { font-family: 'Poppins', sans-serif; }

body {
    background: #ffffff;
    color: var(--bs-dark);
    margin: 0;
}

/* Pin the global navbar to the top of the viewport on developer / boundary
   layer pages. These pages are long-form docs where the reader is scrolling
   sequentially — keeping navigation in reach matches the doc-site convention
   and matters more than it does on the single-screen pages elsewhere in the
   app. Scoped to Developer.css so the rest of the app keeps its existing
   in-flow navbar behavior unchanged. */
body > nav.custom-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* ---------- Hero ---------- */
.dev-hero {
    background: var(--theme-gradient-full);
    color: #ffffff;
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.dev-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

.dev-hero .container { position: relative; z-index: 1; }

.dev-hero h1 {
    font-weight: 700;
    font-size: 2.75rem;
    margin-bottom: 0.75rem;
}

.dev-hero .lead {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 42rem;
    margin-bottom: 1.75rem;
}

.dev-hero .btn { margin-right: 0.5rem; margin-top: 0.5rem; font-weight: 500; }

/* ---------- Buttons ---------- */
.btn-brand-primary {
    background: var(--theme-gradient-button);
    border: none;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-brand-primary:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.45);
}

.btn-brand-outline {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    color: #ffffff;
    font-weight: 500;
}
.btn-brand-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-color: #ffffff;
}

.btn-brand-secondary {
    background: var(--theme-gradient-header);
    border: none;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(13, 92, 107, 0.25);
}
.btn-brand-secondary:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(13, 92, 107, 0.35);
}

/* ---------- Sections ---------- */
.dev-section {
    padding: 3.5rem 0;
}

.dev-section.dev-section-alt {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.dev-section h2 {
    font-weight: 600;
    font-size: 1.7rem;
    color: var(--theme-primary);
    margin-bottom: 1rem;
}

.dev-section h3.dev-subhead {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--theme-primary);
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
}

.dev-section p, .dev-section li {
    color: #334155;
    line-height: 1.65;
}

.dev-section a:not(.btn) {
    color: var(--theme-accent);
    text-decoration: none;
    font-weight: 500;
}
.dev-section a:not(.btn):hover {
    color: var(--theme-secondary);
    text-decoration: underline;
}

/* ---------- Cards (3 surfaces) ---------- */
.surface-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.6rem;
    padding: 1.5rem;
    height: 100%;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.surface-card:hover {
    transform: translateY(-2px);
    border-color: var(--theme-secondary);
    box-shadow: 0 8px 20px rgba(13, 92, 107, 0.08);
}
.surface-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--theme-primary);
    margin-bottom: 0.5rem;
}
.surface-card p { font-size: 0.95rem; margin-bottom: 0; }
.surface-card code {
    color: var(--theme-accent);
    background: rgba(217, 119, 6, 0.08);
    padding: 0.1em 0.35em;
    border-radius: 0.25em;
    font-size: 0.85em;
}

/* ---------- Tables ---------- */
.dev-table {
    width: 100%;
    color: #1e293b;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.95rem;
    background: #ffffff;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}
.dev-table th, .dev-table td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}
.dev-table tbody tr:last-child td { border-bottom: none; }
.dev-table th {
    text-align: left;
    font-weight: 600;
    background: var(--theme-gradient-header);
    color: #ffffff;
    border-bottom: none;
}
.dev-table tbody tr:hover { background: rgba(13, 92, 107, 0.03); }
.dev-table code {
    color: var(--theme-accent);
    background: rgba(217, 119, 6, 0.08);
    padding: 0.05em 0.3em;
    border-radius: 0.25em;
    font-size: 0.9em;
}

/* ---------- Code blocks ---------- */
pre code.code-block {
    display: block;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.4rem;
    padding: 1rem 1.25rem;
    color: #e2e8f0;
    font-size: 0.875rem;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    overflow-x: auto;
    white-space: pre;
    line-height: 1.55;
}

/* ---------- Boundary layer cards ---------- */
.boundary-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.6rem;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.boundary-card:hover {
    border-color: var(--theme-secondary);
    box-shadow: 0 4px 14px rgba(13, 92, 107, 0.08);
}

.boundary-card .boundary-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
    gap: 0.5rem;
}

.boundary-card .boundary-alias {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--theme-primary);
    margin: 0;
}

.boundary-card .boundary-id {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 0.15em 0.5em;
    border-radius: 0.25em;
}

.boundary-card .boundary-description {
    color: #475569;
    font-size: 0.95rem;
    margin: 0.5rem 0 0.85rem;
    line-height: 1.55;
}

.boundary-card .boundary-meta {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.4rem 1rem;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}
.boundary-card .boundary-meta-label {
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.75rem;
    padding-top: 0.15rem;
}
.boundary-card .boundary-meta-value {
    color: #1e293b;
    word-break: break-all;
}
.boundary-card .boundary-meta-value code {
    background: #f1f5f9;
    color: var(--theme-primary);
    padding: 0.1em 0.4em;
    border-radius: 0.25em;
    font-size: 0.9em;
}
.boundary-card .boundary-meta-value a {
    color: var(--theme-secondary);
    text-decoration: none;
    word-break: break-all;
}
.boundary-card .boundary-meta-value a:hover { text-decoration: underline; }

.boundary-empty {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    color: #64748b;
}

/* ---------- Footer ---------- */
.dev-footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 2.5rem 0;
    margin-top: 3rem;
    color: #64748b;
    font-size: 0.875rem;
}
.dev-footer p { margin: 0; color: #64748b; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .dev-hero { padding: 3rem 0 2.5rem; }
    .dev-hero h1 { font-size: 2rem; }
    .dev-hero .lead { font-size: 1rem; }
    .boundary-card .boundary-meta { grid-template-columns: 1fr; gap: 0.15rem; }
    .boundary-card .boundary-meta-label { padding-top: 0.5rem; }
}
