/* ===== Connect / Glassmorphism buttons — ref: pin.it Connect button design ===== */

.btn-connect,
.tg-link {
  --g-bg: rgba(255, 255, 255, 0.1);
  --g-border: rgba(255, 255, 255, 0.28);
  --g-glow: rgba(255, 255, 255, 0.2);
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.35rem !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
  color: #fff !important;
  text-decoration: none !important;
  background: var(--g-bg) !important;
  border: 1px solid var(--g-border) !important;
  backdrop-filter: blur(18px) saturate(1.45) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.45) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    0 10px 28px rgba(0, 0, 0, 0.35) !important;
  overflow: hidden;
  transition:
    transform 0.22s cubic-bezier(0.34, 1.4, 0.64, 1),
    box-shadow 0.25s ease,
    background 0.2s ease,
    border-color 0.2s ease !important;
}

.btn-connect::before,
.tg-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.4) 0%,
    transparent 42%,
    transparent 58%,
    rgba(255, 255, 255, 0.12) 100%
  );
  opacity: 0.65;
  pointer-events: none;
}

.btn-connect:hover,
.tg-link:hover {
  transform: translateY(-3px) scale(1.02);
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  color: #fff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 28px var(--g-glow),
    0 16px 36px rgba(0, 0, 0, 0.4) !important;
}

.btn-connect:active,
.tg-link:active {
  transform: scale(0.97);
}

/* Solid glass "Connect" — filled white crystal */
.btn-connect--solid,
.tg-link--solid {
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(220, 220, 220, 0.88) 100%
  ) !important;
  color: #0a0a0a !important;
  border-color: rgba(255, 255, 255, 0.75) !important;
}

.btn-connect--solid:hover,
.tg-link--solid:hover {
  background: linear-gradient(
    160deg,
    #fff 0%,
    rgba(235, 235, 235, 0.95) 100%
  ) !important;
  color: #0a0a0a !important;
}

/* Online / connect status dot */
.btn-connect__dot,
.tg-link__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55);
  animation: connect-pulse 1.8s ease-out infinite;
  flex-shrink: 0;
}
.btn-connect--solid .btn-connect__dot,
.tg-link--solid .tg-link__dot {
  background: #0a0a0a;
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.25);
}

@keyframes connect-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* Primary CTAs → connect crystal style */
.btn--primary {
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.08) 100%
  ) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.32) !important;
  backdrop-filter: blur(16px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.4) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 12px 32px rgba(0, 0, 0, 0.35) !important;
}

.btn--primary::before {
  opacity: 0.55;
}

.btn--primary:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 0 24px rgba(255, 255, 255, 0.15),
    0 16px 40px rgba(0, 0, 0, 0.4) !important;
}

/* Glass pagination / filter strip (Pinterest: pagination styles) */
.pager,
.filter-bar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.filter-bar {
  display: flex;
  width: fit-content;
  max-width: 100%;
}

.filter-chip,
.pager__btn {
  min-width: 2.4rem;
  border-radius: 999px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.7) !important;
  padding: 0.5rem 0.95rem !important;
  font-weight: 600 !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

.filter-chip:hover,
.pager__btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}

.filter-chip.is-active,
.pager__btn.is-active {
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.95),
    rgba(225, 225, 225, 0.88)
  ) !important;
  color: #0a0a0a !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  box-shadow:
    inset 0 1px 0 #fff,
    0 6px 16px rgba(0, 0, 0, 0.25) !important;
}

.reviews-more .btn,
#reviews-load-more {
  border-radius: 999px !important;
}

/* Hero connect row */
.hero__actions .btn--primary {
  min-width: 11rem;
}

@media (prefers-reduced-motion: reduce) {
  .btn-connect__dot,
  .tg-link__dot { animation: none; }
  .btn-connect:hover,
  .tg-link:hover { transform: none; }
}
