@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Poppins:wght@500;700&display=swap');

:root {
  --brand-primary: #1c2b8b;
  --brand-primary-600: #182579;
  --brand-primary-700: #121d5f;
  --brand-accent: #3d8bff;
  --brand-secondary: #0f172a;
  --brand-bg: #f8fafc;
  --brand-muted: #64748b;

  --bs-primary: var(--brand-primary);
  --bs-primary-rgb: 28, 43, 139;
  --bs-link-color: var(--brand-primary);
  --bs-link-hover-color: var(--brand-primary-700);
  --bs-secondary: var(--brand-secondary);

  --brand-font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Segoe UI Emoji";
  --brand-font-heading: 'Poppins', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  font-family: var(--brand-font-body);
  color: var(--brand-secondary);
  background-color: var(--brand-bg);
}

h1, h2, h3, .display-1, .display-2, .display-3, .display-4 {
  font-family: var(--brand-font-heading);
}

.btn-primary {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--brand-primary-700);
  border-color: var(--brand-primary-700);
}

.text-muted { color: var(--brand-muted) !important; }

.app-navbar {
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  background: rgba(17, 24, 39, 0.35);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  transition: transform 200ms ease, background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.app-navbar.nav-hidden { transform: translateY(-100%); }

.app-navbar.navbar-light-mode {
  background: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.app-navbar .navbar-brand,
.app-navbar .nav-link { color: #ffffff; }
.app-navbar .nav-link:hover { color: #f1f5f9; }
.app-navbar.navbar-light-mode .navbar-brand,
.app-navbar.navbar-light-mode .nav-link { color: #0f172a; }
.app-navbar.navbar-light-mode .nav-link:hover { color: #1f2937; }

.app-navbar .btn-register,
.app-navbar .btn-login {
  border-color: #ffffff;
  color: #ffffff;
}
.app-navbar .btn-register:hover,
.app-navbar .btn-login:hover { background-color: #ffffff; color: #0f172a; }
.app-navbar.navbar-light-mode .btn-register,
.app-navbar.navbar-light-mode .btn-login { border-color: #0c3b6e; color: #0c3b6e; }
.app-navbar.navbar-light-mode .btn-register:hover,
.app-navbar.navbar-light-mode .btn-login:hover { background-color: #0c3b6e; color: #ffffff; }

.app-navbar .navbar-toggler { border-color: rgba(255,255,255,0.6); }
.app-navbar.navbar-light-mode .navbar-toggler { border-color: rgba(0,0,0,0.25); }

.app-logo {
  height: 32px;
  width: auto;
  display: inline-block;
}

/* Footer responsive */
@media (max-width: 576px) {
  .footer { line-height: normal; }
  .footer .container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }
  .footer .container .small {
    width: 100%;
  }
  .footer .container a {
    display: inline-block;
    margin-right: 0.75rem;
    margin-bottom: 0.5rem;
  }
}