/* =========================================================
   Meet Me - master.css (Custom tab bar + swipe card)
   Uses Bootstrap Tab JS via data-bs-toggle="tab"
   NO dependency on .nav-tabs / .nav-link styling.
   ========================================================= */

/* -------------------------
   SWIPE CARD (Owl-safe)
-------------------------- */

.meet-swipe-wrap{
  width: min(600px, 100%);
  margin: 0 auto;
}

.meet-swipe-card{
  box-shadow: 0 10px 28px rgba(0,0,0,.10);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: .5rem;
  overflow: hidden;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
}

.meet-swipe-media{
  position: relative;
  overflow: hidden;
  background: #000;
}

.meet-swipe-ratio{
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.meet-swipe-ratio img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.meet-swipe-overlay{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 10;
  padding: 14px 14px 12px 14px;
  color: #fff;
  pointer-events: auto;
  background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,.15), rgba(0,0,0,0));
}
.meet-swipe-overlay .meet-swipe-name,
.meet-swipe-overlay .meet-swipe-sub{
  text-shadow: 0 2px 10px rgba(0,0,0,.85);
}

.meet-swipe-overlay .meet-swipe-profile-btn{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.meet-swipe-overlay .meet-swipe-profile-btn:hover{
  background: rgba(255,255,255,1);
}

.meet-swipe-media .owl-dots{ display: none !important; }

/* -------------------------
   CUSTOM TAB BAR (no .nav-tabs)
-------------------------- */

.meet-tabbar{
  display: flex;
  align-items: center;
  gap: .6rem;
  overflow: visible;
  margin-bottom: .75rem;
  position: relative;
  z-index: 5;
}

.meet-tabbar-scroll{
  flex: 1 1 auto;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.meet-tabbar-scroll::-webkit-scrollbar{ display:none; }

.meet-tablist{
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: .45rem;

  /* room so active ring never looks clipped */
  padding: .65rem .35rem;

  position: relative;
}

/* -------------------------
   TAB BUTTONS (WHITE pills + subtle 1px border)
-------------------------- */

.meet-tabbtn{
  border-radius: 999px;
  padding: .58rem .98rem;

  display: inline-flex;
  align-items: center;
  gap: .45rem;

  white-space: nowrap;
  line-height: 1.1;
  box-sizing: border-box;

  text-decoration: none !important;
  font-weight: 700;

  /* stop Porto/BS “hover scale” and other transforms */
  transform: none !important;

  /* white pill look */
  background: #fff !important;
  color: rgba(0,0,0,.82) !important;

  /* slightly darker 1px border */
  border: 1px solid rgba(0,0,0,.14) !important;

  box-shadow:
    0 1px 0 rgba(255,255,255,.65) inset,
    0 2px 10px rgba(0,0,0,.06);

  transition: background .12s ease, color .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.meet-tabbtn:hover{
  transform: none !important;
  background: #fff !important;
  border-color: rgba(0,0,0,.22) !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,.65) inset,
    0 4px 14px rgba(0,0,0,.08);
}

/* Active ring (primary) - keep white pill + add inner ring */
.meet-tabbtn.active{
  background: #fff !important;
  color: rgba(0,0,0,.88) !important;

  /* keep the 1px outer border consistent */
  border-color: rgba(0,0,0,.14) !important;

  box-shadow:
    0 1px 0 rgba(255,255,255,.65) inset,
    0 2px 10px rgba(0,0,0,.06),
    inset 0 0 0 1px var(--bs-primary, #0d6efd);
}

.meet-tabbtn i{
  width: 1.1rem;
  text-align: center;
  opacity: .9;
}

/* Prevent Porto/BS from applying odd focus rings/underlines */
.meet-tabbtn:focus,
.meet-tabbtn:focus-visible{
  outline: none;
  box-shadow:
    0 1px 0 rgba(255,255,255,.65) inset,
    0 2px 10px rgba(0,0,0,.06),
    inset 0 0 0 1px var(--bs-primary, #0d6efd);
}

/* -------------------------
   More dropdown (outside scroller)
-------------------------- */

.meet-more{
  flex: 0 0 auto;
  position: relative;
  z-index: 9999;
}

/* Make the caret spacing consistent */
.meet-more .dropdown-toggle::after{
  margin-left: .35rem;
}

.meet-more-menu{
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(0,0,0,.18);
  border: 1px solid rgba(0,0,0,.10);
  padding: .4rem;
  z-index: 99999;
}

.meet-more-menu .dropdown-item{
  border-radius: 10px;
  padding: .55rem .65rem;
  font-weight: 600;
}
.meet-more-menu .dropdown-item:hover{ background: rgba(13,110,253,.10); }
.meet-more-menu .dropdown-item i{ width: 1.1rem; text-align:center; opacity:.9; }

/* -------------------------
   Dark mode
-------------------------- */

html.dark .meet-tabbtn{
  background: rgba(255,255,255,.06) !important;
  color: rgba(255,255,255,.86) !important;
  border-color: rgba(255,255,255,.16) !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,.10) inset,
    0 2px 10px rgba(0,0,0,.25);
}
html.dark .meet-tabbtn:hover{
  background: rgba(255,255,255,.08) !important;
  border-color: rgba(255,255,255,.24) !important;
}
html.dark .meet-tabbtn.active{
  color: rgba(255,255,255,.92) !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,.10) inset,
    0 2px 10px rgba(0,0,0,.25),
    inset 0 0 0 1px var(--bs-primary, #0d6efd);
}

html.dark .meet-more-menu{
  background: #15171a;
  border-color: rgba(255,255,255,.10);
}
html.dark .meet-more-menu .dropdown-item{ color: rgba(255,255,255,.86); }
html.dark .meet-more-menu .dropdown-item:hover{ background: rgba(13,110,253,.18); }

/* Add to master.css */
.meet-match-toast{
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
  background: rgba(0,0,0,.18);
  backdrop-filter: blur(2px);
}
.meet-match-toast.is-show{ opacity: 1; }

.meet-match-toast__card{
  pointer-events: none;
  width: min(420px, calc(100vw - 32px));
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 18px 60px rgba(0,0,0,.22);
  padding: 18px 18px 16px;
  transform: translateY(10px) scale(.98);
  transition: transform 180ms ease;
}
.meet-match-toast.is-show .meet-match-toast__card{
  transform: translateY(0) scale(1);
}

.meet-match-toast__title{
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1.1;
  margin-bottom: 6px;
}
.meet-match-toast__sub{
  font-weight: 650;
  opacity: .85;
}

/* Dark mode */
html.dark .meet-match-toast__card{
  background: rgba(20,22,24,.96);
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
}
html.dark .meet-match-toast__title,
html.dark .meet-match-toast__sub{ color: rgba(255,255,255,.92); }