/*
 * Sound Room site theme.
 * Overrides Bootstrap 5.3 CSS variables rather than fighting selector
 * specificity — keeps `bootstrap_5_layout` form theming and vanilla
 * `btn`/`card`/`badge` markup working unchanged everywhere.
 */

:root {
    /* Grey surface scale — no pure white anywhere in the UI. */
    --bs-body-bg: #eef0f2;
    --bs-body-bg-rgb: 238, 240, 242;
    --bs-tertiary-bg: #e4e7ea;
    --bs-secondary-bg: #e4e7ea;
    --bs-border-color: #d6dade;
    --bs-border-color-translucent: rgba(33, 37, 41, 0.12);

    /* Monochrome slate accent in place of Bootstrap's stock blue. */
    --bs-primary: #23262b;
    --bs-primary-rgb: 35, 38, 43;
    --bs-primary-text-emphasis: #16181b;
    --bs-primary-bg-subtle: #dcdee1;
    --bs-primary-border-subtle: #babdc2;
    --bs-link-color: #23262b;
    --bs-link-color-rgb: 35, 38, 43;
    --bs-link-hover-color: #000000;
    --bs-link-hover-color-rgb: 0, 0, 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Logo / wordmark — used wherever "Sound Room" is displayed as a brand. */
.brand {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand .brand-accent {
    color: var(--bs-primary-text-emphasis, #16181b);
    opacity: 0.55;
}

.navbar-dark .brand.navbar-brand .brand-accent {
    color: #fff;
    opacity: 0.5;
}

/* Cards read as a slightly lighter grey plane than the page background. */
.card {
    --bs-card-bg: #f7f8f9;
    border-color: var(--bs-border-color);
    box-shadow: 0 1px 2px rgba(16, 18, 20, 0.04);
}

.card-header {
    background-color: rgba(16, 18, 20, 0.03);
    font-weight: 600;
}

/* Buttons: tighter radius, subtle depth, no default Bootstrap glow. */
.btn {
    --bs-btn-border-radius: 0.5rem;
    --bs-btn-focus-box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.15);
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}

.btn:active {
    transform: translateY(0.5px);
}

.btn-primary {
    --bs-btn-bg: #23262b;
    --bs-btn-border-color: #23262b;
    --bs-btn-hover-bg: #101214;
    --bs-btn-hover-border-color: #101214;
    --bs-btn-active-bg: #000000;
    --bs-btn-active-border-color: #000000;
    --bs-btn-disabled-bg: #23262b;
    --bs-btn-disabled-border-color: #23262b;
}

.btn-outline-secondary {
    --bs-btn-color: #40454b;
    --bs-btn-border-color: #c7cbd0;
    --bs-btn-hover-bg: #40454b;
    --bs-btn-hover-border-color: #40454b;
}

.navbar {
    box-shadow: 0 1px 2px rgba(16, 18, 20, 0.15);
}

/* Bootstrap hardcodes the focus ring/border to its stock blue rather than
   deriving it from --bs-primary, so it needs an explicit override here. */
.form-control:focus,
.form-select:focus {
    border-color: #9a9ea4;
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.2);
}

.form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.form-check-input:focus {
    border-color: #9a9ea4;
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.2);
}
