/**
 * ============================================================================
 * Copyright (c) 2026 BAWASLU-M FH ULM. All Rights Reserved.
 * Badan Pengawas Pemilihan Umum Mahasiswa
 * Fakultas Hukum, Universitas Lambung Mangkurat
 *
 * PROPRIETARY & CONFIDENTIAL SOURCE CODE
 * ----------------------------------------------------------------------------
 * This software, web application, source code, scripts, styles, architecture,
 * and associated assets are the exclusive intellectual property of BAWASLU-M FH ULM.
 *
 * Any unauthorized copying, reproduction, distribution, scraping, decompilation,
 * reverse engineering, modification, or appropriation of this source code,
 * in whole or in part, is strictly prohibited and deemed highly unethical under
 * institutional, academic, and applicable intellectual property legal frameworks.
 * ============================================================================
 */

.depth-gallery-wrapper {
  position: relative;
  width: 100%;
  margin: 1.5rem 0 2.5rem;
  border-radius: 20px;
  overflow: hidden;
  background: var(--min-surface-card, #181D18);
  border: 1px solid var(--min-border, rgba(255, 255, 255, 0.1));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  user-select: none;
  -webkit-user-select: none;
  box-sizing: border-box;
}

.depth-gallery-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--min-border, rgba(255, 255, 255, 0.08));
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10;
  position: relative;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.depth-filter-tabs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.depth-filter-tabs::-webkit-scrollbar {
  display: none;
}

.depth-filter-btn {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--min-text-muted, #94A3B8);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.32rem 0.85rem;
  border-radius: 9999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.depth-filter-btn:hover {
  color: var(--min-text-main, #FFFFFF);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.depth-filter-btn.active {
  color: #FFFFFF;
  background: var(--min-accent, #D4225B);
  border-color: var(--min-accent, #D4225B);
  box-shadow: 0 2px 12px var(--min-accent-bg, rgba(212, 34, 91, 0.35));
}

.depth-counter-pill {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--min-accent-text, var(--min-accent, #D4225B));
  background: var(--min-accent-bg, rgba(212, 34, 91, 0.16));
  border: 1px solid var(--min-accent-border, rgba(212, 34, 91, 0.35));
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.depth-gallery-viewport {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  background: radial-gradient(circle at 50% 50%, var(--min-accent-bg, rgba(212, 34, 91, 0.08)) 0%, rgba(0, 0, 0, 0.45) 100%);
  box-sizing: border-box;
}

.depth-gallery-viewport:active {
  cursor: grabbing;
}

.depth-ambient-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--min-accent, #D4225B) 0%, rgba(0, 0, 0, 0) 70%);
  opacity: 0.18;
  filter: blur(40px);
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.depth-grain-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 5;
}

.depth-perspective-stage {
  position: absolute;
  inset: 0;
  perspective-origin: 50% 50%;
  transform-style: preserve-3d;
  pointer-events: none;
}

.depth-plate {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 18px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform, opacity;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.12);
  background: #151A16;
  pointer-events: auto;
  cursor: grab;
  box-sizing: border-box;
}

.depth-plate:active {
  cursor: grabbing;
}

.depth-plate-photo-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #1A211C;
}

.depth-plate-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  pointer-events: none;
  transform: scale(1.02);
  transition: transform 0.4s ease;
}

.depth-plate-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.05) 30%,
    rgba(0, 0, 0, 0.6) 65%,
    rgba(0, 0, 0, 0.95) 100%
  );
  pointer-events: none;
}

.depth-plate-initials-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 38%, #1B241E 0%, #111713 55%, #0A0D0B 100%);
  overflow: hidden;
  padding-bottom: 2.2rem;
  user-select: none;
}

.depth-plate-initials-wrap.division-bph {
  background: radial-gradient(circle at 50% 38%, rgba(212, 34, 91, 0.16) 0%, #131714 60%, #090C0A 100%);
}

.depth-plate-initials-wrap.division-hukum {
  background: radial-gradient(circle at 50% 38%, rgba(14, 116, 144, 0.18) 0%, #101815 60%, #080D0B 100%);
}

.depth-plate-initials-wrap.division-maintara {
  background: radial-gradient(circle at 50% 38%, rgba(180, 83, 9, 0.18) 0%, #161811 60%, #0B0D08 100%);
}

.depth-initials-ambient {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  filter: blur(35px);
  pointer-events: none;
}

.depth-plate-initials-wrap.division-bph .depth-initials-ambient {
  background: radial-gradient(circle, rgba(212, 34, 91, 0.35) 0%, transparent 70%);
}

.depth-plate-initials-wrap.division-hukum .depth-initials-ambient {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.32) 0%, transparent 70%);
}

.depth-plate-initials-wrap.division-maintara .depth-initials-ambient {
  background: radial-gradient(circle, rgba(251, 191, 36, 0.32) 0%, transparent 70%);
}

.depth-initials-decor-rings {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.depth-decor-ring {
  position: absolute;
  border-radius: 50%;
}

.depth-decor-ring.ring-1 {
  width: 130px;
  height: 130px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  animation: depthRingSpin 24s linear infinite;
}

.depth-decor-ring.ring-2 {
  width: 165px;
  height: 165px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

@keyframes depthRingSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.depth-avatar-circle {
  position: relative;
  z-index: 2;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(135% 135% at 30% 25%, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 60%, rgba(0, 0, 0, 0.45) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.75), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.depth-avatar-circle.division-bph {
  border-color: rgba(212, 34, 91, 0.5);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.75), 0 0 20px -2px rgba(212, 34, 91, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

.depth-avatar-circle.division-hukum {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.75), 0 0 20px -2px rgba(14, 165, 233, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

.depth-avatar-circle.division-maintara {
  border-color: rgba(251, 191, 36, 0.5);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.75), 0 0 20px -2px rgba(245, 158, 11, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

.depth-avatar-initials {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1;
  color: #FFFFFF;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.depth-maintenance-pill {
  position: relative;
  z-index: 2;
  margin-top: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.75rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.depth-maintenance-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #F59E0B;
  box-shadow: 0 0 8px #F59E0B;
  animation: maintenancePulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes maintenancePulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 8px #F59E0B;
  }
  50% {
    opacity: 0.4;
    transform: scale(0.85);
    box-shadow: 0 0 2px #F59E0B;
  }
}

.depth-maintenance-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.structure-maintenance-notice {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: #FBBF24;
  letter-spacing: 0.02em;
}

.depth-plate-top-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  right: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
  z-index: 3;
}

.depth-role-tag {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  white-space: nowrap;
}

.depth-role-tag.badge-bph {
  background: var(--min-accent, #D4225B);
  border-color: var(--min-accent, #D4225B);
  color: #FFFFFF;
}

.depth-role-tag.badge-hukum,
.depth-role-tag.badge-hukum-sub {
  background: rgba(14, 116, 144, 0.85);
  border-color: rgba(56, 189, 248, 0.4);
  color: #F0F9FF;
}

.depth-role-tag.badge-maintara,
.depth-role-tag.badge-maintara-sub {
  background: rgba(180, 83, 9, 0.85);
  border-color: rgba(251, 191, 36, 0.4);
  color: #FFFBEB;
}

.depth-role-tag.badge-volunteer {
  background: rgba(71, 85, 105, 0.8);
  border-color: rgba(148, 163, 184, 0.3);
  color: #F8FAFC;
}

.depth-division-pill {
  font-size: 0.64rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.depth-plate-bottom-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 1rem 1rem;
  z-index: 3;
}

.depth-person-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.12rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 0.2rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.depth-person-meta {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.depth-gallery-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.18);
  border-top: 1px solid var(--min-border, rgba(255, 255, 255, 0.08));
}

.depth-dots-container {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
  overflow-x: auto;
  padding: 0.2rem 0;
  scrollbar-width: none;
}

.depth-dots-container::-webkit-scrollbar {
  display: none;
}

.depth-dot {
  width: 18px;
  height: 5px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.18);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.depth-dot:hover {
  background: rgba(255, 255, 255, 0.45);
}

.depth-dot.active {
  width: 34px;
  background: var(--min-accent, #7A9B76);
  box-shadow: 0 0 8px var(--min-accent-bg, rgba(122, 155, 118, 0.45));
}

[data-theme="light"] .depth-gallery-wrapper {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .depth-gallery-filter-bar {
  background: rgba(248, 250, 252, 0.9);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .depth-filter-btn {
  background: #F1F5F9;
  border-color: rgba(0, 0, 0, 0.12);
  color: #1E293B;
  font-weight: 700;
}

[data-theme="light"] .depth-filter-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
}

[data-theme="light"] .depth-filter-btn.active {
  background: var(--min-accent, #9E1B5B);
  border-color: var(--min-accent, #9E1B5B);
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(158, 27, 91, 0.3);
}

[data-theme="light"] .depth-gallery-viewport {
  background: radial-gradient(circle at 50% 50%, rgba(158, 27, 91, 0.04) 0%, rgba(241, 245, 249, 0.85) 100%);
}

[data-theme="light"] .depth-gallery-footer {
  background: rgba(248, 250, 252, 0.9);
  border-top-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .depth-dot {
  background: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .depth-dot.active {
  background: var(--min-accent, #9E1B5B);
}

[data-theme="light"] .depth-plate {
  background: #FFFFFF;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .depth-plate-initials-wrap {
  background: radial-gradient(circle at 50% 38%, #F8FAFC 0%, #EEF2F6 55%, #E2E8F0 100%);
}

[data-theme="light"] .depth-plate-initials-wrap.division-bph {
  background: radial-gradient(circle at 50% 38%, rgba(212, 34, 91, 0.08) 0%, #F8FAFC 60%, #EEF2F6 100%);
}

[data-theme="light"] .depth-plate-initials-wrap.division-hukum {
  background: radial-gradient(circle at 50% 38%, rgba(14, 116, 144, 0.08) 0%, #F8FAFC 60%, #EEF2F6 100%);
}

[data-theme="light"] .depth-plate-initials-wrap.division-maintara {
  background: radial-gradient(circle at 50% 38%, rgba(180, 83, 9, 0.08) 0%, #F8FAFC 60%, #EEF2F6 100%);
}

[data-theme="light"] .depth-avatar-circle {
  background: radial-gradient(135% 135% at 30% 25%, #FFFFFF 0%, #F1F5F9 60%, #E2E8F0 100%);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 14px 28px -6px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .depth-avatar-initials {
  color: #1E293B;
  text-shadow: none;
}

[data-theme="light"] .depth-maintenance-pill {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .depth-maintenance-label {
  color: #334155;
}

[data-theme="light"] .depth-decor-ring.ring-1 {
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .depth-decor-ring.ring-2 {
  border-color: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .depth-person-name {
  color: #0F172A;
  text-shadow: none;
}

[data-theme="light"] .depth-person-meta {
  color: #475569;
}

@media (max-width: 768px) {
  .depth-gallery-viewport {
    height: 420px;
  }

  .depth-gallery-filter-bar {
    padding: 0.65rem 1rem;
  }

  .depth-person-name {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .depth-gallery-viewport {
    height: 360px;
  }

  .depth-gallery-filter-bar {
    padding: 0.55rem 0.75rem;
    gap: 0.5rem;
  }

  .depth-filter-btn {
    font-size: 0.7rem;
    padding: 0.25rem 0.65rem;
  }

  .depth-counter-pill {
    font-size: 0.7rem;
    padding: 0.2rem 0.55rem;
  }

  .depth-gallery-footer {
    padding: 0.55rem 0.75rem;
  }

  .depth-dot {
    width: 14px;
    height: 4px;
  }

  .depth-dot.active {
    width: 26px;
  }

  .depth-person-name {
    font-size: 0.94rem;
  }

  .depth-person-meta {
    font-size: 0.68rem;
  }

  .depth-role-tag {
    font-size: 0.6rem;
    padding: 0.22rem 0.5rem;
  }

  .depth-division-pill {
    font-size: 0.58rem;
    padding: 0.2rem 0.45rem;
    max-width: 110px;
  }

  .depth-avatar-circle {
    width: 76px;
    height: 76px;
  }

  .depth-avatar-initials {
    font-size: 1.65rem;
  }

  .depth-maintenance-pill {
    margin-top: 0.75rem;
    padding: 0.22rem 0.6rem;
  }

  .depth-maintenance-label {
    font-size: 0.6rem;
  }

  .depth-decor-ring.ring-1 {
    width: 105px;
    height: 105px;
  }

  .depth-decor-ring.ring-2 {
    width: 135px;
    height: 135px;
  }

  .structure-maintenance-notice {
    font-size: 0.72rem;
    padding: 0.3rem 0.7rem;
  }
}

@media (max-width: 360px) {
  .depth-gallery-viewport {
    height: 330px;
  }

  .depth-filter-btn {
    font-size: 0.65rem;
    padding: 0.22rem 0.55rem;
  }

  .depth-avatar-circle {
    width: 68px;
    height: 68px;
  }

  .depth-avatar-initials {
    font-size: 1.45rem;
  }
}
