/**
 * Bachata World Council (BWC) — Modern Pill-Shaped Frontend Theme
 * Elevates all frontend pages with floating glassmorphic pill navigation,
 * pill CTA buttons, pill tags/badges, and full mobile-first responsiveness.
 */

:root {
  --bwc-gold: #fbbf24;
  --bwc-gold-dark: #d97706;
  --bwc-gold-glow: rgba(245, 158, 11, 0.35);
  --bwc-dark-glass: rgba(15, 15, 19, 0.85);
  --bwc-dark-glass-hover: rgba(26, 26, 32, 0.95);
  --bwc-border-glass: rgba(255, 255, 255, 0.12);
  --bwc-border-glass-gold: rgba(251, 191, 36, 0.45);
  --bwc-pill-radius: 9999px;
  --bwc-font-main: 'Inria Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ==========================================================
   1. FLOATING PILL NAVIGATION HEADER
   ========================================================== */
.bwc-pill-header-wrapper {
  position: fixed;
  top: 16px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 10000;
  padding: 0 16px;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.bwc-pill-header {
  pointer-events: auto;
  width: 100%;
  max-width: 1220px;
  background: var(--bwc-dark-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--bwc-border-glass);
  border-radius: var(--bwc-pill-radius);
  padding: 8px 18px 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transition: all 0.35s ease;
}

.bwc-pill-header-wrapper.is-scrolled .bwc-pill-header {
  top: 10px;
  background: rgba(10, 10, 14, 0.94);
  border-color: rgba(251, 191, 36, 0.25);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 25px rgba(245, 158, 11, 0.12);
  padding: 6px 14px 6px 20px;
}

/* Brand / Logo */
.bwc-pill-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 10px;
}

.bwc-pill-brand img {
  height: 46px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.bwc-pill-brand:hover img {
  transform: scale(1.04);
}

/* Nav Menu Links */
.bwc-pill-nav {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 6px;
}

.bwc-pill-nav-link {
  color: #e4e4e7;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 16px;
  border-radius: var(--bwc-pill-radius);
  transition: all 0.22s ease;
  display: inline-flex;
  align-items: center;
  position: relative;
}

.bwc-pill-nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.bwc-pill-nav-link.active {
  color: #000000;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

/* Pill Action Buttons */
.bwc-pill-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bwc-btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--bwc-pill-radius);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  padding: 9px 20px;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 1px solid transparent;
}

.bwc-btn-pill-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  color: #000000 !important;
  border-color: #fde68a;
  box-shadow: 0 6px 18px var(--bwc-gold-glow);
}

.bwc-btn-pill-gold:hover {
  background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.45);
  color: #000000 !important;
}

.bwc-btn-pill-glass {
  background: rgba(255, 255, 255, 0.07);
  color: #fafafa !important;
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.bwc-btn-pill-glass:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-2px);
  color: #ffffff !important;
}

.bwc-btn-pill-sm {
  padding: 6px 14px;
  font-size: 0.82rem;
}

/* Mobile Toggle */
.bwc-pill-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-radius: var(--bwc-pill-radius);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bwc-pill-toggle:hover {
  background: rgba(251, 191, 36, 0.18);
  border-color: var(--bwc-gold);
  color: var(--bwc-gold);
}

/* Mobile Slide-out Drawer */
.bwc-pill-mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: rgba(13, 13, 16, 0.97);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-left: 1px solid var(--bwc-border-glass);
  box-shadow: -15px 0 45px rgba(0, 0, 0, 0.8);
  z-index: 100000;
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.bwc-pill-mobile-drawer.open {
  right: 0;
}

.bwc-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(5px);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.bwc-drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.bwc-drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bwc-drawer-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fafafa;
  border-radius: var(--bwc-pill-radius);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bwc-drawer-close:hover {
  background: #dc2626;
  color: #fff;
}

.bwc-drawer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bwc-drawer-link {
  color: #d4d4d8;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: var(--bwc-pill-radius);
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.bwc-drawer-link:hover,
.bwc-drawer-link.active {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.1));
  border-color: rgba(251, 191, 36, 0.4);
  color: #fbbf24;
  padding-left: 22px;
}

.bwc-drawer-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}


/* ==========================================================
   2. GLOBAL PILL BUTTON & BADGE ENHANCEMENTS
   ========================================================== */
/* Transform legacy theme buttons into luxury pill shape */
.vs-btn,
button.vs-btn,
a.vs-btn {
  border-radius: var(--bwc-pill-radius) !important;
  font-weight: 700 !important;
  padding: 13px 32px !important;
  letter-spacing: 0.04em !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3) !important;
}

.vs-btn:hover {
  transform: translateY(-2.5px) !important;
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.35) !important;
}

.vs-btn.style2 {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

.vs-btn.style2:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
}

/* Modern Pill Badges & Category Tags */
.bwc-pill-badge,
.sec-subtitle,
.sub-title,
.category-badge,
span.pill-tag {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  border-radius: var(--bwc-pill-radius) !important;
  padding: 6px 18px !important;
  font-size: 0.8rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.09em !important;
  background: rgba(245, 158, 11, 0.12) !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  color: var(--bwc-gold) !important;
  margin-bottom: 12px !important;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.12) !important;
}

.bwc-pill-badge-crimson {
  background: rgba(220, 38, 38, 0.12) !important;
  border-color: rgba(220, 38, 38, 0.4) !important;
  color: #fca5a5 !important;
}

.bwc-pill-badge-blue {
  background: rgba(59, 130, 246, 0.12) !important;
  border-color: rgba(59, 130, 246, 0.4) !important;
  color: #93c5fd !important;
}

/* ==========================================================
   3. PILL-SHAPED FORM CONTROLS & SEARCH FILTERS
   ========================================================== */
.form-control,
.form-select,
.bwc-pill-input {
  border-radius: var(--bwc-pill-radius) !important;
  padding-left: 22px !important;
  padding-right: 22px !important;
  height: 48px !important;
  transition: all 0.25s ease !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--bwc-gold) !important;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2) !important;
}

/* Pill Newsletter Input & Form */
.footer-layout1 .newsletter-form {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--bwc-pill-radius) !important;
  padding: 5px 6px 5px 22px;
  display: flex;
  align-items: center;
  transition: all 0.25s ease;
}

.footer-layout1 .newsletter-form:focus-within {
  border-color: var(--bwc-gold);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.25);
}

.footer-layout1 .newsletter-form input {
  background: transparent !important;
  border: none !important;
  color: #ffffff !important;
  padding: 8px 12px !important;
  width: 100% !important;
  outline: none !important;
}

.footer-layout1 .newsletter-form .vs-btn {
  border-radius: var(--bwc-pill-radius) !important;
  padding: 10px 24px !important;
  margin: 0 !important;
  flex-shrink: 0;
}

/* Breadcrumbs & Pagination Pills */
.breadcumb-menu li a,
.pagination li a,
.pagination li span {
  border-radius: var(--bwc-pill-radius) !important;
  padding: 6px 16px !important;
  transition: all 0.2s ease !important;
}

/* Filter Buttons & Category Pills */
.filter-btn,
.filter-menu-active button {
  border-radius: var(--bwc-pill-radius) !important;
  padding: 8px 22px !important;
  margin: 4px 6px !important;
  font-weight: 700 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: #e4e4e7 !important;
  transition: all 0.25s ease !important;
}

.filter-btn:hover,
.filter-menu-active button.active {
  background: var(--bwc-gold) !important;
  color: #000000 !important;
  border-color: var(--bwc-gold) !important;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35) !important;
}

/* ==========================================================
   4. HERO & PAGE CLEARANCE FOR FLOATING PILL NAVBAR
   ========================================================== */
/* Provide clearance at top of pages so content sits gracefully below floating island navbar */
.vs-hero-wrapper,
.breadcumb-wrapper,
.hero-layout1,
.hero-layout2,
.hero-layout3,
.hero-inner {
  padding-top: clamp(105px, 14vh, 145px) !important;
}

.hero-subtitle {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  border-radius: var(--bwc-pill-radius) !important;
  padding: 6px 20px !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  background: rgba(251, 191, 36, 0.12) !important;
  border: 1px solid rgba(251, 191, 36, 0.35) !important;
  color: var(--bwc-gold) !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.15) !important;
  margin-bottom: 14px !important;
}

/* Hide legacy bulky header bars */
.vs-header .header-top,
.vs-header .menu-top,
.vs-header .sticky-wrapper {
  display: none !important;
}

/* ==========================================================
   5. RESPONSIVE BREAKPOINTS
   ========================================================== */
@media (max-width: 1080px) {
  .bwc-pill-nav {
    display: none !important;
  }
  .bwc-pill-toggle {
    display: flex !important;
  }
  .bwc-pill-actions .bwc-btn-pill-glass {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .bwc-pill-header-wrapper {
    top: 10px;
    padding: 0 10px;
  }
  .bwc-pill-header {
    padding: 6px 12px 6px 16px;
  }
  .bwc-pill-brand img {
    height: 38px;
  }
  .bwc-pill-actions .bwc-btn-pill {
    padding: 7px 14px;
    font-size: 0.78rem;
  }
  .bwc-pill-toggle {
    width: 36px;
    height: 36px;
  }
}
