/* developer.scoutcamp.co.uk */

.dev-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "Segoe UI", system-ui, sans-serif;
    background: #0f172a;
    color: #e2e8f0;
    accent-color: #ea580c;
    position: relative;
    overflow-x: hidden;
}

.dev-body::before,
.dev-body::after {
    content: "";
    position: fixed;
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
}

.dev-body::before {
    width: 420px;
    height: 420px;
    top: -160px;
    right: -80px;
    background: radial-gradient(circle, rgba(234, 88, 12, 0.55), transparent 68%);
    animation: dev-orb-a 18s ease-in-out infinite;
}

.dev-body::after {
    width: 360px;
    height: 360px;
    bottom: -140px;
    left: -100px;
    background: radial-gradient(circle, rgba(251, 146, 60, 0.32), transparent 70%);
    animation: dev-orb-b 22s ease-in-out infinite;
}

.dev-top,
.dev-wrap,
.dev-foot {
    position: relative;
    z-index: 1;
}

a,
a:link,
a:visited {
    color: #fb923c;
    text-decoration-color: rgba(251, 146, 60, 0.45);
    transition: color 0.2s ease, text-decoration-color 0.2s ease, opacity 0.2s ease, background-size 0.2s ease;
}
a:hover,
a:focus-visible {
    color: #fdba74;
    text-decoration-color: #fdba74;
}
a:active { color: #ea580c; }

.dev-main a:not(.dev-card):not(.dev-cta) {
    text-decoration: underline;
    text-underline-offset: 3px;
}

::selection {
    background: rgba(234, 88, 12, 0.35);
    color: #fff7ed;
}

@keyframes dev-orb-a {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-40px, 30px) scale(1.08); }
}
@keyframes dev-orb-b {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -24px) scale(1.12); }
}
@keyframes dev-rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}
@keyframes dev-kicker-in {
    from { opacity: 0; letter-spacing: 0.18em; }
    to { opacity: 1; letter-spacing: 0.04em; }
}
@keyframes dev-step-in {
    from { opacity: 0; transform: translateX(12px); }
    to { opacity: 1; transform: none; }
}
@keyframes dev-line {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}
@keyframes dev-cta-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.45); }
    50% { box-shadow: 0 0 0 8px rgba(234, 88, 12, 0); }
}
@keyframes dev-nav-in {
    from { opacity: 0; transform: translateX(-8px); }
    to { transform: none; }
}

.dev-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(17, 28, 51, 0.92);
    backdrop-filter: blur(12px);
    animation: dev-rise 0.5s ease;
    overflow: hidden;
}
.dev-top::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #ea580c 25%, #fdba74 50%, #ea580c 75%, transparent 100%);
    background-size: 200% 100%;
    animation: dev-line 7s linear infinite;
}

.dev-brand,
.dev-brand:link,
.dev-brand:visited {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    transition: transform 0.25s ease;
}
.dev-brand:hover,
.dev-brand:focus-visible {
    color: #fff;
    transform: translateY(-1px);
}

.dev-brand img {
    height: 28px;
    filter: brightness(0) invert(1);
}

.dev-brand em {
    font-style: normal;
    color: #fb923c;
    font-weight: 700;
}

.dev-topnav {
    display: flex;
    gap: 16px;
    align-items: center;
}

.dev-topnav a,
.dev-topnav a:link,
.dev-topnav a:visited {
    color: #fb923c;
    text-decoration: none;
    font-size: 0.92rem;
    position: relative;
}
.dev-topnav a:hover,
.dev-topnav a:focus-visible { color: #fdba74; }

.dev-topnav a:not(.dev-cta)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    border-radius: 2px;
    background: #fb923c;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s ease;
}
.dev-topnav a:not(.dev-cta):hover::after,
.dev-topnav a:not(.dev-cta):focus-visible::after {
    transform: scaleX(1);
}

.dev-cta {
    background: #ea580c;
    color: #fff !important;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    animation: dev-cta-pulse 2.8s ease-in-out infinite;
}
.dev-cta:visited { color: #fff !important; }
.dev-cta:hover,
.dev-cta:focus-visible {
    color: #fff !important;
    background: #f97316;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(234, 88, 12, 0.35);
    animation: none;
}

.dev-wrap {
    flex: 1;
    width: min(980px, calc(100% - 40px));
    margin: 0 auto;
    padding: 36px 0 64px;
    animation: dev-rise 0.55s ease 0.08s;
}

.dev-wrap--docs {
    width: min(1180px, calc(100% - 40px));
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 40px;
}

.dev-sidenav a,
.dev-sidenav a:link,
.dev-sidenav a:visited {
    display: block;
    color: #fb923c;
    text-decoration: none;
    padding: 6px 0;
    opacity: 0.72;
    transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
    animation: dev-nav-in 0.45s ease;
}
.dev-sidenav a:nth-of-type(1) { animation-delay: 0.06s; }
.dev-sidenav a:nth-of-type(2) { animation-delay: 0.1s; }
.dev-sidenav a:nth-of-type(3) { animation-delay: 0.14s; }
.dev-sidenav a:nth-of-type(4) { animation-delay: 0.18s; }
.dev-sidenav a:nth-of-type(5) { animation-delay: 0.22s; }
.dev-sidenav a:nth-of-type(6) { animation-delay: 0.26s; }
.dev-sidenav a:nth-of-type(7) { animation-delay: 0.3s; }
.dev-sidenav a:nth-of-type(8) { animation-delay: 0.34s; }
.dev-sidenav a:hover,
.dev-sidenav a:focus-visible {
    color: #fdba74;
    opacity: 1;
    transform: translateX(4px);
}
.dev-sidenav a.is-active {
    color: #fb923c;
    font-weight: 700;
    opacity: 1;
}

.dev-callout {
    background: rgba(234, 88, 12, 0.12);
    border: 1px solid rgba(251, 146, 60, 0.35);
    border-radius: 12px;
    padding: 14px 16px;
    margin: 18px 0;
    color: #fed7aa;
    line-height: 1.55;
}
.dev-callout a,
.dev-callout a:link,
.dev-callout a:visited { color: #fdba74; }
.dev-callout a:hover,
.dev-callout a:focus-visible { color: #fed7aa; }
.dev-muted { color: #94a3b8; font-size: 0.92rem; }

.dev-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 20px;
}
.dev-tag {
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.82rem;
    color: #fdba74;
}

.dev-scope {
    margin: 36px 0;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.dev-scope h2 { font-size: 1.25rem; }
.dev-doc h3 { margin-top: 22px; }

.dev-sidenav__label {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.dev-main h1 { font-size: 2rem; margin: 0 0 12px; }
.dev-lede { color: #94a3b8; font-size: 1.05rem; line-height: 1.55; }
.dev-kicker {
    color: #fb923c;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.75rem;
    animation: dev-kicker-in 0.6s ease both;
}

.dev-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 28px 0;
}

.dev-card {
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 18px;
    color: inherit;
    text-decoration: none !important;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.dev-card:link,
.dev-card:visited { color: inherit; }
.dev-card:hover,
.dev-card:focus-visible {
    color: inherit;
    transform: translateY(-5px);
    border-color: rgba(251, 146, 60, 0.45);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}
.dev-cards .dev-card:nth-child(1) { animation: dev-rise 0.5s ease 0.08s; }
.dev-cards .dev-card:nth-child(2) { animation: dev-rise 0.5s ease 0.14s; }
.dev-cards .dev-card:nth-child(3) { animation: dev-rise 0.5s ease 0.2s; }
.dev-cards .dev-card:nth-child(4) { animation: dev-rise 0.5s ease 0.26s; }
.dev-cards .dev-card:nth-child(5) { animation: dev-rise 0.5s ease 0.32s; }
.dev-cards .dev-card:nth-child(6) { animation: dev-rise 0.5s ease 0.38s; }

.dev-card i {
    color: #fb923c;
    font-size: 1.3rem;
    display: inline-block;
    transition: transform 0.22s ease;
}
.dev-card:hover i { transform: scale(1.12) rotate(-6deg); }
.dev-card strong {
    display: block;
    margin: 8px 0 6px;
    color: #fb923c;
}
.dev-card span { color: #94a3b8; font-size: 0.92rem; }

.dev-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.dev-table th, .dev-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.dev-table code { color: #fdba74; }

.dev-form, .dev-dl { max-width: 560px; }
.dev-form {
    animation: dev-rise 0.5s ease 0.12s;
}
.dev-form label, .dev-form .dev-hint { display: block; margin: 12px 0 6px; color: #cbd5e1; }
.dev-form input, .dev-form textarea, .dev-form select {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #334155;
    background: #0b1220;
    color: #fff;
}

.dev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dev-hint { font-size: 0.8rem; color: #64748b; }
.dev-btn {
    margin-top: 12px;
    background: #ea580c;
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.dev-btn:hover,
.dev-btn:focus-visible {
    background: #f97316;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(234, 88, 12, 0.32);
}
.dev-btn:active { transform: translateY(0); }
.dev-btn--ghost { background: transparent; border: 1px solid #fb923c; color: #fb923c; }
.dev-btn--ghost:hover,
.dev-btn--ghost:focus-visible {
    background: rgba(234, 88, 12, 0.16);
    color: #fdba74;
    box-shadow: none;
}
.dev-btn--danger { background: #b91c1c; }
.dev-btn--danger:hover,
.dev-btn--danger:focus-visible { background: #dc2626; }
.dev-flash { color: #fca5a5; }
.dev-secret {
    background: #14532d;
    border: 1px solid #166534;
    padding: 14px 16px;
    border-radius: 12px;
    margin: 16px 0;
    word-break: break-all;
}

.dev-app {
    background: #1e293b;
    border-radius: 14px;
    padding: 16px;
    margin: 12px 0;
    transition: transform 0.2s ease, border-color 0.2s ease;
    border: 1px solid transparent;
    animation: dev-rise 0.45s ease;
}
.dev-app-list .dev-app:nth-child(1) { animation-delay: 0.06s; }
.dev-app-list .dev-app:nth-child(2) { animation-delay: 0.12s; }
.dev-app-list .dev-app:nth-child(3) { animation-delay: 0.18s; }
.dev-app:hover { border-color: rgba(251, 146, 60, 0.28); transform: translateY(-2px); }
.dev-app.is-focus { outline: 2px solid #fb923c; }
.dev-app header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.dev-app header h3 { margin: 0; flex: 1; }
.dev-app__logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    background: #0f172a;
    flex-shrink: 0;
}
.dev-app__logo--empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fb923c;
}
.dev-logo-preview { margin-top: 10px; }
.dev-logo-preview img {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    object-fit: cover;
    background: #0f172a;
    border: 1px solid rgba(255,255,255,0.08);
}
.dev-logo-replace {
    display: block;
    margin: 10px 0 12px;
    font-size: 0.85rem;
    color: #fb923c;
}
.dev-logo-replace:visited { color: #fb923c; }
.dev-oauth-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}
.dev-oauth-brand img {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: cover;
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.08);
}
.dev-oauth-brand h1 { margin: 0; }

.dev-status--pending { color: #fbbf24; }
.dev-status--approved { color: #4ade80; }
.dev-status--rejected, .dev-status--suspended { color: #f87171; }

.dev-oauth-steps { list-style: none; padding: 0; }
.dev-oauth-steps > li {
    background: #1e293b;
    border-radius: 14px;
    padding: 16px;
    margin: 12px 0;
}
.dev-oauth-steps > li.is-active {
    animation: dev-step-in 0.35s ease both;
}
.dev-oauth-legal {
    margin: 16px 0 8px;
    padding: 14px 16px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(251, 146, 60, 0.28);
    border-radius: 12px;
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.55;
}
.dev-oauth-legal p { margin: 0 0 10px; }
.dev-oauth-legal a,
.dev-oauth-legal a:link,
.dev-oauth-legal a:visited { color: #fdba74; }
.dev-oauth-legal a:hover,
.dev-oauth-legal a:focus-visible { color: #fed7aa; }
.dev-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 12px 0 6px;
    color: #e2e8f0;
    font-size: 0.92rem;
    line-height: 1.45;
}
.dev-check input { margin-top: 4px; flex-shrink: 0; }
.dev-form .dev-check { color: #e2e8f0; }
.dev-list { line-height: 1.6; }
.dev-steps { line-height: 1.7; color: #cbd5e1; }
.dev-foot {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 18px 28px;
    color: #64748b;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.85rem;
}
.dev-foot a,
.dev-foot a:link,
.dev-foot a:visited { color: #fb923c; }
.dev-foot a:hover,
.dev-foot a:focus-visible { color: #fdba74; }

pre {
    background: #020617;
    border-radius: 12px;
    padding: 16px;
    overflow: auto;
    color: #e2e8f0;
    border: 1px solid rgba(251, 146, 60, 0.08);
    transition: border-color 0.2s ease;
}
pre:hover { border-color: rgba(251, 146, 60, 0.28); }

.dev-form input:focus,
.dev-form textarea:focus,
.dev-form select:focus {
    outline: 2px solid rgba(251, 146, 60, 0.55);
    outline-offset: 1px;
    border-color: #fb923c;
}

@media (max-width: 800px) {
    .dev-wrap--docs { grid-template-columns: 1fr; }
    .dev-grid { grid-template-columns: 1fr; }
    .dev-top { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    .dev-body::before,
    .dev-body::after,
    .dev-top,
    .dev-top::after,
    .dev-wrap,
    .dev-kicker,
    .dev-card,
    .dev-sidenav a,
    .dev-cta,
    .dev-form,
    .dev-app,
    .dev-oauth-steps > li.is-active {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .dev-card:hover,
    .dev-cta:hover,
    .dev-btn:hover,
    .dev-brand:hover,
    .dev-sidenav a:hover {
        transform: none;
    }
}
