/* ═══════════════════════════════════════════════════════
   Copper & Black Design System
   ═══════════════════════════════════════════════════════ */

:root {
    /* Backgrounds */
    --bc-bg-deep:     #0e0c0a;
    --bc-bg-primary:  #131110;
    --bc-bg-surface:  #1c1916;
    --bc-bg-elevated: #231f1b;

    /* Borders */
    --bc-border:       #302a23;
    --bc-border-light: rgba(249, 115, 22, 0.08);
    --bc-border-mid:   rgba(249, 115, 22, 0.16);

    /* Text */
    --bc-text-primary:   #f5ede0;
    --bc-text-secondary: #a89070;
    --bc-text-muted:     #6e5a48;

    /* Copper accent system */
    --bc-accent:          #f97316;
    --bc-accent-light:    #fb923c;
    --bc-accent-deep:     #ea580c;
    --bc-accent-dim:      rgba(249, 115, 22, 0.10);
    --bc-accent-glow:     rgba(249, 115, 22, 0.12);
    --bc-accent-border:   rgba(249, 115, 22, 0.25);

    /* Gradients */
    --bc-gradient-accent:        linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
    --bc-gradient-accent-subtle: linear-gradient(135deg, rgba(249,115,22,0.15) 0%, rgba(234,88,12,0.08) 100%);
    --bc-gradient-glow:          linear-gradient(135deg, rgba(249,115,22,0.12) 0%, rgba(234,88,12,0.04) 100%);

    /* Geometry */
    --bc-radius:    8px;
    --bc-radius-lg: 14px;
    --bc-radius-xl: 20px;
    --bc-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modern Engineering Typography */
html {
    zoom: 0.9;
}

#bg {
    width: calc(100vw / 0.9) !important;
    height: calc(100vh / 0.9) !important;
}

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-weight: 400;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--bc-bg-deep);
    overflow-x: hidden;
}

/* Headings use Space Grotesk for geometric, technical feel */
h1, h2, h3, h4, h5, h6,
.mud-typography-h1, .mud-typography-h2, .mud-typography-h3,
.mud-typography-h4, .mud-typography-h5, .mud-typography-h6 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Monospace for code and technical elements */
code, pre, kbd, samp, .monospace {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-weight: 500;
}

a, .btn-link {
    color: var(--bc-accent);
}

.btn-primary {
    color: #fff;
    background-color: var(--bc-accent);
    border-color: var(--bc-accent-deep);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem var(--bc-text-primary), 0 0 0 0.25rem var(--bc-accent-light);
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #22c55e;
}

.invalid {
    outline: 1px solid #ef4444;
}

.validation-message {
    color: #ef4444;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2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jwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ═══════════════════════════════════════════════════════
   Design System — shared utility classes
   ═══════════════════════════════════════════════════════ */

/* ── Cards ── */
.glass-card {
    background: rgba(28, 25, 22, 0.6) !important;
    backdrop-filter: blur(20px) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12) !important;
    transition: all 0.3s !important;
}

.glass-card--blue   { border: 1px solid rgba(249, 115, 22, 0.3) !important; }
.glass-card--cyan   { border: 1px solid rgba(234, 88, 12, 0.3) !important; }
.glass-card--red    { border: 1px solid rgba(234, 88, 12, 0.25) !important; }
.glass-card--silver { border: 1px solid rgba(168, 144, 112, 0.25) !important; }
.glass-card--light-blue { border: 1px solid rgba(249, 115, 22, 0.3) !important; }

.glass-card--featured {
    border: 1px solid rgba(249, 115, 22, 0.4) !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 40px rgba(249, 115, 22, 0.06) !important;
}

.glass-card--r20 { border-radius: 20px !important; }

/* ── Buttons ── */
.btn-gradient {
    background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%) !important;
    color: white !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    text-transform: none !important;
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.2) !important;
    transition: all 0.3s !important;
}

.btn-outlined-blue {
    border: 2px solid rgba(249, 115, 22, 0.5) !important;
    color: var(--bc-text-primary) !important;
    background: rgba(249, 115, 22, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 10px !important;
    text-transform: none !important;
    font-weight: 600 !important;
    transition: all 0.3s !important;
}

.btn-outlined-cyan {
    border: 2px solid rgba(234, 88, 12, 0.5) !important;
    color: var(--bc-text-primary) !important;
    background: rgba(234, 88, 12, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 10px !important;
    text-transform: none !important;
    font-weight: 600 !important;
    transition: all 0.3s !important;
}

/* ── Icon Boxes ── */
.icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 8px;
}

.icon-box--inline { display: inline-flex; }
.icon-box--md     { padding: 12px; border-radius: 12px; }
.icon-box--lg     { padding: 16px; border-radius: 12px; }
.icon-box--xl     { padding: 24px; border-radius: 16px; }

.icon-box--blue       { background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%); }
.icon-box--blue-cyan  { background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%); }
.icon-box--cyan       { background: linear-gradient(135deg, #ea580c 0%, #fb923c 100%); }
.icon-box--teal-blue  { background: linear-gradient(135deg, #f97316 0%, #fb923c 100%); }
.icon-box--red        { background: linear-gradient(135deg, #ea580c 0%, #a89070 100%); }
.icon-box--silver-red { background: linear-gradient(135deg, #a89070 0%, #ea580c 100%); }
.icon-box--brand      { background: linear-gradient(135deg, #fb923c 0%, #f97316 50%, #a89070 100%); }

/* ── Typography ── */
.text-heading      { font-weight: 700 !important; color: var(--bc-text-primary) !important; }
.text-heading-bold { font-weight: 800 !important; color: var(--bc-text-primary) !important; }
.text-white-bold   { color: var(--bc-text-primary) !important; font-weight: 700 !important; }
.text-muted-50     { color: var(--bc-text-muted) !important; }
.text-muted-60     { color: var(--bc-text-secondary) !important; }
.text-muted-65     { color: var(--bc-text-secondary) !important; }
.text-body-light   { color: rgba(245,237,224,0.8) !important; line-height: 1.9 !important; }
.text-white-90     { color: rgba(245,237,224,0.9) !important; }
.text-white-95     { color: var(--bc-text-primary) !important; }
.text-label        { font-weight: 600 !important; color: rgba(245,237,224,0.9) !important; }

.text-gradient-brand {
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: -0.03em !important;
    background: linear-gradient(135deg, #fb923c 0%, #f97316 50%, #a89070 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.text-overline-cyan {
    color: var(--bc-accent-light) !important;
    letter-spacing: 2px !important;
    font-family: 'JetBrains Mono', monospace !important;
}

/* ── Chips ── */
.chip-blue        { background: rgba(249, 115, 22, 0.15) !important; color: var(--bc-text-primary) !important; border: 1px solid rgba(249, 115, 22, 0.3) !important; }
.chip-blue-accent { background: rgba(249, 115, 22, 0.2) !important; color: var(--bc-accent-light) !important; border: 1px solid rgba(249, 115, 22, 0.3) !important; }
.chip-cyan        { background: rgba(234, 88, 12, 0.15) !important; color: var(--bc-text-primary) !important; border: 1px solid rgba(234, 88, 12, 0.3) !important; }
.chip-cyan-accent { background: rgba(234, 88, 12, 0.2) !important; color: var(--bc-accent-deep) !important; border: 1px solid rgba(234, 88, 12, 0.3) !important; }
.chip-silver      { background: rgba(168, 144, 112, 0.15) !important; color: var(--bc-text-primary) !important; border: 1px solid rgba(168, 144, 112, 0.3) !important; }
.chip-red         { background: rgba(234, 88, 12, 0.15) !important; color: var(--bc-text-primary) !important; border: 1px solid rgba(234, 88, 12, 0.3) !important; }
.chip-light-blue-accent { background: rgba(251, 146, 60, 0.2) !important; color: var(--bc-accent-light) !important; border: 1px solid rgba(251, 146, 60, 0.3) !important; }

/* ── Navigation & Layout ── */
.nav-link-custom {
    font-family: 'Inter', sans-serif !important;
    text-transform: none !important;
    font-weight: 500 !important;
    color: var(--bc-text-primary) !important;
    letter-spacing: -0.01em !important;
}

.footer-social-btn {
    background: rgba(168, 144, 112, 0.1) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(168, 144, 112, 0.2) !important;
    transition: all 0.3s !important;
}

.footer-link {
    color: rgba(245,237,224,0.7) !important;
    font-size: 1.1rem !important;
    text-decoration: none !important;
    transition: all 0.3s !important;
}

.footer-heading {
    font-family: 'Space Grotesk', sans-serif !important;
    color: var(--bc-text-primary) !important;
    font-weight: 600 !important;
    margin-bottom: 24px !important;
    font-size: 1.2rem !important;
    letter-spacing: -0.02em !important;
}

/* ── Misc ── */
.icon-white { color: white !important; }

.section-band {
    background: rgba(28, 25, 22, 0.4) !important;
    backdrop-filter: blur(20px) !important;
    border-top: 1px solid rgba(168, 144, 112, 0.1) !important;
    border-bottom: 1px solid rgba(168, 144, 112, 0.1) !important;
}

.expansion-panel-glass {
    background: rgba(28, 25, 22, 0.6) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(249, 115, 22, 0.3) !important;
    border-radius: 12px !important;
    margin-bottom: 8px !important;
    color: var(--bc-text-primary) !important;
}

/* ═══════════════════════════════════════════════════════
   End Design System
   ═══════════════════════════════════════════════════════ */

/* Scale down for 1080p screens */
@media (max-width: 1920px) and (max-height: 1080px) {
    html {
        font-size: 15px;
    }

    .mud-typography-h1 {
        font-size: 2.5rem !important;
    }

    .mud-typography-h2 {
        font-size: 2rem !important;
    }

    .mud-typography-h3 {
        font-size: 1.6rem !important;
    }

    .mud-typography-h4 {
        font-size: 1.3rem !important;
    }

    .mud-typography-h5 {
        font-size: 1.1rem !important;
    }

    .mud-typography-h6 {
        font-size: 0.95rem !important;
    }
}