/* Motibha Foundation - 2026 Theme (global overrides)
   Goal: refresh colors/typography/components without changing DB or page structure.
*/

:root {
  /* 2026 Theme: Light Professional (Pink/Purple accents + Yellow CTAs) */
  --mf-pink: #ff2bbf;
  --mf-purple: #7c3aed;
  --mf-yellow: #ffd400;
  --mf-yellow-2: #ffb800;

  --mf-bg: #ffffff;
  --mf-bg-2: #faf7ff;
  --mf-surface: rgba(255, 255, 255, 0.82);
  --mf-surface-2: rgba(255, 255, 255, 0.70);
  --mf-border: rgba(124, 58, 237, 0.16);
  --mf-text: rgba(11, 11, 16, 0.92);
  --mf-muted: rgba(11, 11, 16, 0.64);

  --mf-radius: 16px;
  --mf-radius-sm: 12px;
  --mf-shadow: 0 18px 55px rgba(0, 0, 0, 0.38);
  --mf-shadow-sm: 0 10px 32px rgba(0, 0, 0, 0.28);

  /* Bootstrap mappings */
  --bs-primary: var(--mf-yellow);
  --bs-link-color: var(--mf-purple);
  --bs-link-hover-color: var(--mf-pink);
}

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--mf-bg);
  color: var(--mf-text);
}

h1, h2, h3, h4, h5, h6 {
  font-family: Outfit, Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: -0.02em;
}

a {
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a,
.link-primary {
  color: var(--mf-purple);
}

a:hover,
.link-primary:hover {
  color: var(--mf-pink);
}

.bg-warning.text-dark,
.badge.bg-warning.text-dark {
  color: #0b0b10 !important;
}

/* Containers/sections */
.container, .container-fluid {
  scroll-margin-top: 90px;
}

/* Cards */
.card,
.shadow,
.shadow-sm,
.shadow-lg {
  border-radius: var(--mf-radius) !important;
}

.card {
  border-radius: var(--mf-radius);
}

/* Buttons */
.btn {
  border-radius: 14px !important;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.btn-primary,
.btn.btn-primary {
  border: none;
  color: #0b0b10 !important;
  background: linear-gradient(135deg, var(--mf-yellow), var(--mf-yellow-2));
  box-shadow: 0 14px 30px rgba(255, 212, 0, 0.18);
}

.btn-primary:hover,
.btn.btn-primary:hover {
  filter: brightness(0.98);
  transform: translateY(-1px);
}

.btn-outline-primary {
  border-color: rgba(255, 212, 0, 0.55);
  color: var(--mf-yellow);
}

.btn-outline-primary:hover {
  background: rgba(255, 212, 0, 0.92);
  border-color: rgba(255, 212, 0, 0.92);
  color: #0b0b10;
}

/* Form controls */
.form-control,
.form-select {
  border-radius: 14px !important;
  border: 1px solid rgba(255, 212, 0, 0.22) !important;
  background-color: rgba(255, 255, 255, 0.92);
  color: #0b0b10;
  box-shadow: none !important;
}

.form-control::placeholder {
  color: rgba(11, 11, 16, 0.45);
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(255, 212, 0, 0.70) !important;
  box-shadow:
    0 0 0 .25rem rgba(255, 212, 0, 0.12),
    0 0 0 .5rem rgba(255, 43, 191, 0.08) !important;
}

/* Navbar/header tweaks (works with existing header CSS) */
.navbar,
header,
.ngo-header,
.site-header {
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.navbar,
.navbar-main {
  background: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid rgba(124, 58, 237, 0.16);
}

.navbar a,
header a,
.navbar .nav-link {
  color: rgba(11, 11, 16, 0.88) !important;
}

/* Dropdowns: keep menu readable (white bg + dark text) */
.navbar-main .dropdown-menu {
  background: rgba(255, 255, 255, 0.98) !important;
}

.navbar-main .dropdown-menu a,
.navbar-main .dropdown-menu .dropdown-item,
.navbar-main .dropdown-menu .menu-item {
  color: #0b0b10 !important;
}

.navbar-main .dropdown-menu a:hover,
.navbar-main .dropdown-menu .dropdown-item:hover,
.navbar-main .dropdown-menu .menu-item:hover {
  background: rgba(255, 212, 0, 0.14) !important;
  color: #0b0b10 !important;
}

.navbar .nav-link:hover,
.navbar a:hover,
header a:hover {
  color: var(--mf-purple) !important;
}

.navbar a,
header a {
  font-weight: 700;
}

/* Footer: soften heavy dark gradients used inline */
.footer,
footer {
  color: var(--mf-text);
  position: relative;
  z-index: 1;
}

/* If newsletter/footer uses inline gradients, keep content readable */
#newsletterForm .form-control {
  background: rgba(255, 255, 255, 0.92) !important;
  color: #0b0b10 !important;
}

/* Tables (admin & user dashboards) */
.table {
  --bs-table-bg: transparent;
}

.table thead th {
  font-family: Outfit, Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: 0.02em;
}

/* Badges */
.badge {
  border-radius: 999px;
  padding: 0.45em 0.75em;
}

/* Generic helpers */
.rounded, .rounded-3, .rounded-4, .rounded-5 {
  border-radius: var(--mf-radius) !important;
}

/* Reduce visual noise on legacy sections */
hr {
  opacity: 0.12;
}

/* Newsletter (footer) */
.mf-newsletter {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 43, 191, 0.30) 0%, rgba(124, 58, 237, 0.30) 45%, rgba(0, 0, 0, 0.78) 120%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mf-newsletter-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
}

.mf-newsletter-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border-radius: 999px;
  margin-bottom: 1.2rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.mf-newsletter-badge-icon {
  color: var(--mf-yellow);
}

.mf-newsletter-badge-text {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.92);
}

.mf-newsletter-title {
  color: #ffffff;
  text-transform: none;
  letter-spacing: -0.02em;
}

.mf-newsletter-desc {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 600;
}

.mf-newsletter-input {
  height: 56px;
  border-radius: 999px !important;
  font-size: 15px;
  font-weight: 650;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  background: rgba(0, 0, 0, 0.50) !important;
  color: rgba(255, 255, 255, 0.92) !important;
}

.mf-newsletter-button {
  width: 48px;
  height: 48px;
  border-radius: 999px !important;
  color: #0b0b10;
  border: none;
  background: linear-gradient(135deg, var(--mf-yellow), var(--mf-yellow-2));
  transition: transform 0.2s ease, filter 0.2s ease;
}

/* Common hero highlight pattern */
.highlight {
  color: var(--mf-yellow) !important;
}

.mf-newsletter-button:hover {
  transform: translateY(-1px);
  filter: brightness(0.98);
}

.mf-newsletter-privacy {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 600;
}

.mf-newsletter-privacy i {
  color: rgba(255, 255, 255, 0.78);
}
