/* ===================================
   VBCI — Reusable Components
   =================================== */

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(10, 6, 20, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
  z-index: var(--z-fixed);
  transition: all var(--transition-base);
}

.nav.scrolled {
  background: rgba(10, 6, 20, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-2xl);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.nav__logo-img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--gold-400);
}

.nav__logo-text {
  display: flex;
  flex-direction: column;
}

.nav__logo-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--white);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  line-height: 1.2;
}

.nav__logo-subtitle {
  font-size: var(--text-xs);
  color: var(--gold-400);
  font-weight: 500;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav__link {
  position: relative;
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-4);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.nav__link:hover {
  color: var(--white);
  background: rgba(107, 33, 168, 0.15);
}

.nav__link.active {
  color: var(--gold-400);
  background: rgba(212, 168, 71, 0.1);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gold-400);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  transform: translateX(-50%);
}

.nav__link.active::after,
.nav__link:hover::after {
  width: 60%;
}

/* Live Indicator in Nav */
.nav__live {
  display: none;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--live-red);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  cursor: pointer;
  transition: all var(--transition-base);
  animation: glowPulse 2s infinite;
}

.nav__live.visible {
  display: flex;
}

.nav__live:hover {
  background: rgba(239, 68, 68, 0.25);
}

.nav__live-dot {
  width: 8px;
  height: 8px;
  background: var(--live-red);
  border-radius: var(--radius-full);
  animation: livePulse 1.5s infinite;
}

/* Mobile Menu Toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
}

.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.nav__toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
@media (max-width: 1024px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    padding: var(--space-8) var(--space-6);
    background: rgba(10, 6, 20, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    gap: var(--space-2);
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    overflow-y: auto;
  }

  .nav__links.open {
    transform: translateX(0);
  }

  .nav__link {
    font-size: var(--text-lg);
    padding: var(--space-3) var(--space-4);
    width: 100%;
    text-align: center;
  }
}

/* ---------- Glass Card ---------- */
.glass-card {
  background: var(--surface-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all var(--transition-base);
}

.glass-card:hover {
  background: var(--surface-card-hover);
  border-color: rgba(107, 33, 168, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow-purple);
}

.glass-card--gold:hover {
  border-color: var(--glass-border-gold);
  box-shadow: var(--shadow-lg), var(--shadow-glow-gold);
}

.glass-card--static {
  cursor: default;
}
.glass-card--static:hover {
  transform: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  letter-spacing: var(--tracking-wide);
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple-600), var(--purple-700));
  color: var(--white);
  border: 1px solid rgba(107, 33, 168, 0.5);
  box-shadow: 0 4px 15px rgba(107, 33, 168, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(107, 33, 168, 0.4);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--dark-1);
  border: 1px solid rgba(212, 168, 71, 0.5);
  box-shadow: 0 4px 15px rgba(212, 168, 71, 0.2);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(212, 168, 71, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--glass-border);
}

.btn-outline:hover {
  background: rgba(107, 33, 168, 0.15);
  border-color: var(--purple-400);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-4);
  padding: var(--space-2) var(--space-3);
}

.btn-ghost:hover {
  color: var(--white);
  background: rgba(107, 33, 168, 0.1);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-full);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

/* ---------- Section Header ---------- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-header__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--gold-400);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-4);
}

.section-header__label::before,
.section-header__label::after {
  content: '';
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-400));
}

.section-header__label::after {
  background: linear-gradient(90deg, var(--gold-400), transparent);
}

.section-header__title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-4);
}

.section-header__subtitle {
  font-size: var(--text-lg);
  color: var(--gray-4);
  max-width: 600px;
  margin: 0 auto;
  line-height: var(--leading-relaxed);
}

/* ---------- Badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.badge--live {
  background: rgba(239, 68, 68, 0.15);
  color: var(--live-red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge--live .badge__dot {
  width: 6px;
  height: 6px;
  background: var(--live-red);
  border-radius: var(--radius-full);
  animation: livePulse 1.5s infinite;
}

.badge--purple {
  background: rgba(107, 33, 168, 0.15);
  color: var(--purple-300);
  border: 1px solid rgba(107, 33, 168, 0.3);
}

.badge--gold {
  background: rgba(212, 168, 71, 0.15);
  color: var(--gold-400);
  border: 1px solid rgba(212, 168, 71, 0.3);
}

.badge--success {
  background: rgba(52, 211, 153, 0.15);
  color: var(--success);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

/* ---------- Form Elements ---------- */
.form-group {
  position: relative;
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-4);
  margin-bottom: var(--space-2);
  letter-spacing: var(--tracking-wide);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: rgba(26, 16, 40, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  color: var(--white);
  font-size: var(--text-base);
  transition: all var(--transition-base);
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gray-3);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--purple-400);
  box-shadow: 0 0 0 3px rgba(107, 33, 168, 0.2);
  background: rgba(26, 16, 40, 0.8);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239E90B5' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  padding-right: var(--space-10);
  cursor: pointer;
}

.form-select option {
  background: var(--dark-2);
  color: var(--white);
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-sm);
  background: rgba(26, 16, 40, 0.6);
  cursor: pointer;
  position: relative;
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.form-checkbox input[type="checkbox"]:checked {
  background: var(--purple-600);
  border-color: var(--purple-500);
}

.form-checkbox input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
}

/* Toggle Switch */
.toggle {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
}

.toggle__track {
  width: 44px;
  height: 24px;
  background: var(--gray-1);
  border-radius: var(--radius-full);
  position: relative;
  transition: background var(--transition-base);
}

.toggle__track.active {
  background: var(--purple-600);
}

.toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: var(--white);
  border-radius: var(--radius-full);
  transition: transform var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.toggle__track.active .toggle__thumb {
  transform: translateX(20px);
}

.toggle__label {
  font-size: var(--text-sm);
  color: var(--gray-4);
}

/* ---------- Toast Notification ---------- */
.toast-container {
  position: fixed;
  top: calc(var(--nav-height) + var(--space-4));
  right: var(--space-4);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--surface-elevated);
  backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  min-width: 300px;
  max-width: 440px;
  animation: fadeInRight 0.4s ease-out;
}

.toast--success {
  border-color: rgba(52, 211, 153, 0.3);
}

.toast--error {
  border-color: rgba(248, 113, 113, 0.3);
}

.toast__dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.toast__dot--success { background: var(--success); }
.toast__dot--error   { background: var(--error); }
.toast__dot--info    { background: var(--info); }
.toast__dot--warning { background: var(--warning); }

.toast__message {
  font-size: var(--text-sm);
  color: var(--white-soft);
  flex: 1;
}

.toast__close {
  font-size: var(--text-lg);
  color: var(--gray-3);
  cursor: pointer;
  transition: color var(--transition-fast);
  flex-shrink: 0;
}

.toast__close:hover {
  color: var(--white);
}

/* ---------- Modal / Lightbox ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 2, 8, 0.92);
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.modal-overlay.open {
  display: flex;
}

.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  animation: scaleIn 0.3s ease-out;
}

.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  color: var(--white);
  font-size: var(--text-xl);
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-base);
}

.modal-close:hover {
  background: rgba(107, 33, 168, 0.3);
  transform: rotate(90deg);
}

/* ---------- Divider ---------- */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
  margin: var(--space-8) 0;
}

.divider--gold {
  background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
}

/* ---------- Icon Circle ---------- */
.icon-circle {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(107, 33, 168, 0.15);
  border: 1px solid rgba(107, 33, 168, 0.25);
  font-size: var(--text-2xl);
  flex-shrink: 0;
  transition: all var(--transition-base);
}

.icon-circle--gold {
  background: rgba(212, 168, 71, 0.1);
  border-color: rgba(212, 168, 71, 0.25);
}

/* ---------- Footer ---------- */
.footer {
  background: rgba(5, 2, 8, 0.8);
  border-top: 1px solid var(--glass-border);
  padding: var(--space-16) 0 var(--space-8);
  margin-top: var(--space-20);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.footer__brand-logo {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--gold-400);
  margin-bottom: var(--space-4);
}

.footer__brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--white);
  margin-bottom: var(--space-1);
}

.footer__brand-sub {
  font-size: var(--text-sm);
  color: var(--gold-400);
  margin-bottom: var(--space-4);
}

.footer__brand-desc {
  font-size: var(--text-sm);
  color: var(--gray-3);
  line-height: var(--leading-relaxed);
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-5);
}

.footer__link {
  display: block;
  font-size: var(--text-sm);
  color: var(--gray-3);
  padding: var(--space-1) 0;
  transition: color var(--transition-base);
}

.footer__link:hover {
  color: var(--gold-400);
}

.footer__socials {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.footer__social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(107, 33, 168, 0.1);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: var(--text-lg);
  color: var(--gray-4);
  transition: all var(--transition-base);
}

.footer__social-link:hover {
  background: var(--purple-600);
  border-color: var(--purple-500);
  color: var(--white);
  transform: translateY(-2px);
}

.footer__bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-sm);
  color: var(--gray-3);
}

.footer__motto {
  color: var(--gold-400);
  font-style: italic;
  font-family: var(--font-accent);
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }
}

/* ---------- Loading Skeleton ---------- */
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(26, 16, 40, 0.6) 25%,
    rgba(45, 30, 68, 0.4) 50%,
    rgba(26, 16, 40, 0.6) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

/* ---------- Amount Preset Buttons (Donations) ---------- */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

.amount-btn {
  padding: var(--space-3) var(--space-4);
  background: rgba(26, 16, 40, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
}

.amount-btn:hover {
  border-color: var(--purple-400);
  background: rgba(107, 33, 168, 0.15);
}

.amount-btn.selected {
  background: linear-gradient(135deg, var(--purple-600), var(--purple-700));
  border-color: var(--purple-500);
  box-shadow: 0 4px 15px rgba(107, 33, 168, 0.3);
}

@media (max-width: 480px) {
  .amount-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Tabs ---------- */
.tabs {
  display: flex;
  gap: var(--space-1);
  background: rgba(26, 16, 40, 0.5);
  padding: var(--space-1);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  overflow-x: auto;
}

.tab {
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-4);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.tab:hover {
  color: var(--white);
}

.tab.active {
  background: var(--purple-600);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(107, 33, 168, 0.3);
}

/* ---------- Empty State ---------- */
.empty-state {
  text-align: center;
  padding: var(--space-16) var(--space-6);
}

.empty-state__icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
  opacity: 0.5;
}

.empty-state__title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--space-2);
}

.empty-state__text {
  color: var(--gray-3);
  font-size: var(--text-sm);
}
