/* ==============================================
   CONCURS PAGE SWITCHER — Vote ↔ Upload toggle
   Standalone, zero side-effects outside .ap-page-switcher
   ============================================== */

.ap-page-switcher {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.ap-page-switcher__track {
  display: inline-flex;
  align-items: center;
  background: rgba(6, 16, 22, 0.85);
  border: 1px solid rgba(22, 241, 211, 0.25);
  border-radius: 50px;
  padding: 5px;
  gap: 4px;
  box-shadow:
    0 0 0 1px rgba(22, 241, 211, 0.08),
    0 4px 24px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(22, 241, 211, 0.06);
}

/* ── Shared button base ── */
.ap-page-switcher__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    background 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.12s ease;
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

/* ── INACTIVE state — raised, waiting ── */
.ap-page-switcher__btn--inactive {
  background: transparent;
  color: rgba(22, 241, 211, 0.5);
  box-shadow: none;
}
.ap-page-switcher__btn--inactive:hover {
  color: #16f1d3;
  background: rgba(22, 241, 211, 0.07);
  text-decoration: none;
}

/* ── ACTIVE state — pressed in, filled ── */
.ap-page-switcher__btn--active {
  background: #16f1d3;
  color: #050e14;
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.35),
    inset 0 1px 2px rgba(0, 0, 0, 0.25),
    0 0 14px rgba(22, 241, 211, 0.35);
  transform: translateY(1px); /* subtle downward press */
  pointer-events: none;
}

/* ── Icon ── */
.ap-page-switcher__icon {
  font-size: 16px;
  line-height: 1;
}

/* ==============================================
   MOBILE  ≤ 767px  —  full-width + red/green
   ============================================== */
@media (max-width: 767px) {

  .ap-page-switcher {
    padding: 0 4px;
  }

  .ap-page-switcher__track {
    width: 100%;
    border-radius: 16px;
    padding: 5px;
    gap: 5px;
  }

  .ap-page-switcher__btn {
    flex: 1;
    justify-content: center;
    padding: 12px 10px;
    border-radius: 12px;
    font-size: 13px;
    letter-spacing: 0.4px;
  }

  /* VOTE button colors on mobile */
  .ap-page-switcher__btn--vote.ap-page-switcher__btn--active {
    background: #00e676;
    color: #031a0a;
    box-shadow:
      inset 0 2px 6px rgba(0, 0, 0, 0.3),
      0 0 14px rgba(0, 230, 118, 0.4);
  }
  .ap-page-switcher__btn--vote.ap-page-switcher__btn--inactive {
    color: rgba(0, 230, 118, 0.55);
  }
  .ap-page-switcher__btn--vote.ap-page-switcher__btn--inactive:hover {
    color: #00e676;
    background: rgba(0, 230, 118, 0.08);
  }

  /* UPLOAD button colors on mobile */
  .ap-page-switcher__btn--upload.ap-page-switcher__btn--active {
    background: #ff4444;
    color: #ffffff;
    box-shadow:
      inset 0 2px 6px rgba(0, 0, 0, 0.3),
      0 0 14px rgba(255, 68, 68, 0.45);
  }
  .ap-page-switcher__btn--upload.ap-page-switcher__btn--inactive {
    color: rgba(255, 68, 68, 0.55);
  }
  .ap-page-switcher__btn--upload.ap-page-switcher__btn--inactive:hover {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.08);
  }
}
