/* ==========================================================================
   FROSTED MINIMALIST TAB (PURE MONOCHROME & SILVER PLATINUM THEME)
   ========================================================================== */

:root {
  --tab-bg: rgba(15, 20, 28, 0.72);
  --tab-border: rgba(255, 255, 255, 0.08);
  --tab-text: #94a3b8;
  --tab-text-hover: #ffffff;
  --tab-silver: #f8fafc;
  --tab-silver-glow: rgba(255, 255, 255, 0.35);
  --tab-active-bg: rgba(30, 36, 48, 0.95);
  --tab-active-border: rgba(255, 255, 255, 0.18);
}

.frosted-nav {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: var(--tab-bg);
  border: 1px solid var(--tab-border);
  padding: 4px;
  border-radius: 9999px;
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.7), 0 2px 10px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  user-select: none;
  isolation: isolate;
  overflow: hidden;
}

/* Subtle inner top highlight rim */
.frosted-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  pointer-events: none;
  z-index: 1;
}

/* Mouse spotlight glow that follows the cursor (Pure Crisp Platinum) */
.frosted-nav__spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  background: radial-gradient(130px circle at var(--spotlight-x, 50%) var(--spotlight-y, 50%), rgba(255, 255, 255, 0.08), transparent 70%);
}

.frosted-nav:hover .frosted-nav__spotlight {
  opacity: 1;
}

/* Floating indicator slider behind tabs */
.frosted-nav__indicator {
  position: absolute;
  top: 4px;
  left: 0;
  height: calc(100% - 8px);
  width: 0;
  background: var(--tab-active-bg);
  border: 1px solid var(--tab-active-border);
  border-radius: 9999px;
  box-shadow: 
    0 4px 16px -2px rgba(0, 0, 0, 0.6),
    0 0 12px -2px rgba(255, 255, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
              width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
              opacity 0.2s ease;
}

/* Nav list */
.frosted-nav__list {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 2;
}

.frosted-nav__item {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

/* Tab Link Buttons */
.frosted-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1.05rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--tab-text);
  text-decoration: none !important;
  white-space: nowrap;
  border-radius: 9999px;
  line-height: 1.25;
  letter-spacing: 0;
  box-sizing: border-box;
  transition: color 0.25s ease, text-shadow 0.25s ease;
  z-index: 2;
}

.frosted-nav__link i {
  font-size: 0.86rem;
  color: #64748b;
  transition: color 0.25s ease, transform 0.25s ease;
}

.frosted-nav__link span {
  display: inline-block;
  line-height: 1.25;
}

/* Hover state */
.frosted-nav__link:hover {
  color: var(--tab-text-hover);
}

.frosted-nav__link:hover i {
  color: #e2e8f0;
  transform: translateY(-1px);
}

/* Active Tab state (Pure Silver Platinum) */
.frosted-nav__item.is-active .frosted-nav__link {
  color: #ffffff;
  font-weight: 600;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
}

.frosted-nav__item.is-active .frosted-nav__link i {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

/* Pure Silver Platinum status dot */
.frosted-nav__link .tab-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.85);
  margin-left: -0.1rem;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.frosted-nav__item.is-active .frosted-nav__link .tab-dot {
  opacity: 1;
  transform: scale(1);
}

/* Responsive adjustment */
@media (max-width: 1200px) {
  .frosted-nav__link {
    padding: 0.45rem 0.85rem;
    font-size: 0.84rem;
    gap: 0.4rem;
  }
}
