/* Minimal local-first Bootstrap subset to ensure baseline layout
   This is NOT full Bootstrap; it covers containers, grid, buttons,
   cards, alerts, tables, forms, navbar toggler, spacing, and typography.
   Pages will upgrade to CDN Bootstrap if available. */

:root {
  --bs-primary: #0d6efd;
  --bs-secondary: #6c757d;
  --bs-success: #198754;
  --bs-info: #0dcaf0;
  --bs-warning: #ffc107;
  --bs-danger: #dc3545;
  --bs-light: #f8f9fa;
  --bs-dark: #212529;
}

* { box-sizing: border-box; }
html { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
body { margin: 0; color: #212529; background: #fff; }

.container { width: 100%; padding-right: 1rem; padding-left: 1rem; margin-right: auto; margin-left: auto; }
@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }

.row { display: flex; flex-wrap: wrap; margin-right: -0.5rem; margin-left: -0.5rem; }
.col { flex: 1 0 0%; padding-right: 0.5rem; padding-left: 0.5rem; }
.col-12 { flex: 0 0 auto; width: 100%; padding: 0.5rem; }
.col-md-6 { padding: 0.5rem; }
@media (min-width: 768px) { .col-md-6 { flex: 0 0 auto; width: 50%; } }

.btn { display: inline-block; font-weight: 500; line-height: 1.5; color: #fff; text-align: center; text-decoration: none; vertical-align: middle; cursor: pointer; user-select: none; background-color: var(--bs-primary); border: 1px solid var(--bs-primary); padding: .375rem .75rem; font-size: 1rem; border-radius: .375rem; }
.btn:hover { filter: brightness(0.95); }
.btn-secondary { background-color: var(--bs-secondary); border-color: var(--bs-secondary); }
.btn-success { background-color: var(--bs-success); border-color: var(--bs-success); }
.btn-danger { background-color: var(--bs-danger); border-color: var(--bs-danger); }
.btn-outline-primary { color: var(--bs-primary); background: transparent; border-color: var(--bs-primary); }

.card { position: relative; display: block; background-color: #fff; border: 1px solid #dee2e6; border-radius: .5rem; }
.card-body { padding: 1rem; }
.card-title { margin: 0 0 .5rem; font-weight: 600; }
.card-text { margin-top: 0; margin-bottom: 1rem; }

.alert { position: relative; padding: .75rem 1rem; margin-bottom: 1rem; border: 1px solid transparent; border-radius: .375rem; }
.alert-primary { color: #084298; background-color: #cfe2ff; border-color: #b6d4fe; }
.alert-success { color: #0f5132; background-color: #d1e7dd; border-color: #badbcc; }
.alert-danger { color: #842029; background-color: #f8d7da; border-color: #f5c2c7; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: .5rem; border-top: 1px solid #dee2e6; }
.table thead th { border-bottom: 2px solid #dee2e6; }

label { display: inline-block; margin-bottom: .5rem; }
input, select, textarea { display: block; width: 100%; padding: .375rem .75rem; font-size: 1rem; line-height: 1.5; color: #212529; background-color: #fff; background-clip: padding-box; border: 1px solid #ced4da; border-radius: .375rem; }

.navbar { position: relative; display: flex; align-items: center; justify-content: space-between; padding: .5rem 1rem; background: #f8f9fa; border-bottom: 1px solid #e9ecef; }
.navbar-brand { font-weight: 600; text-decoration: none; color: #212529; }
.navbar-toggler { padding: .25rem .5rem; font-size: 1.25rem; background-color: transparent; border: 1px solid #ced4da; border-radius: .25rem; }
.navbar-collapse { display: none; }
.navbar-collapse.show { display: block; }
.nav-link { display: block; padding: .5rem 1rem; color: #212529; text-decoration: none; }
.nav-link:hover { background: #e9ecef; }

.text-center { text-align: center; }
.fw-bold { font-weight: 700; }
.mb-2 { margin-bottom: .5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mt-3 { margin-top: 1rem !important; }
.p-2 { padding: .5rem !important; }
.p-3 { padding: 1rem !important; }

.badge { display: inline-block; padding: .35em .65em; font-size: .75em; font-weight: 600; color: #fff; background-color: var(--bs-secondary); border-radius: .25rem; }
.badge.bg-primary { background-color: var(--bs-primary); }
.badge.bg-success { background-color: var(--bs-success); }
.badge.bg-danger { background-color: var(--bs-danger); }

/* Utility for responsive video */
.ratio { position: relative; width: 100%; }
.ratio-16x9 { padding-top: 56.25%; }
.ratio > iframe, .ratio > video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* Modal skeleton (no animations) */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; display: none; background-color: rgba(0,0,0,0.5); }
.modal.show { display: block; }
.modal-dialog { position: relative; margin: 5% auto; max-width: 500px; }
.modal-content { background: #fff; border-radius: .5rem; padding: 1rem; }

/* Dropdown basic */
.dropdown-menu { position: absolute; display: none; min-width: 10rem; padding: .5rem 0; margin: 0; font-size: 1rem; color: #212529; text-align: left; list-style: none; background-color: #fff; border: 1px solid rgba(0,0,0,.15); border-radius: .5rem; }
.dropdown-menu.show { display: block; }

/* Forms and help text */
.form-text { display: block; margin-top: .25rem; color: #6c757d; }

/* Simple grid helpers used in SocialHub */
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Toast basic */
.toast { background: #fff; border: 1px solid #dee2e6; border-radius: .5rem; padding: .5rem 1rem; }

/* End of minimal subset */