:root {
  --bg: #05060a;
  --bg-elevated: #101320;
  --accent: #4fd1c5;
  --accent-soft: rgba(79, 209, 197, 0.15);
  --text-main: #f5f7ff;
  --text-muted: #9ca3c7;
  --border-subtle: #252a3b;
  --card-radius: 10px;
  --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #15192b 0, #05060a 55%);
  color: var(--text-main);
  min-height: 100vh;
}

header {
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(to right, rgba(79, 209, 197, 0.12), transparent);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-index {
  color: var(--text-main);
  text-decoration: none;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #ffffff 0, #4fd1c5 35%, #1a202c 70%);
  box-shadow: 0 0 18px rgba(79, 209, 197, 0.7);
}

.logo-text-main {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.logo-text-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  transition: 0.18s;
}

nav a:hover {
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--accent-soft);
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 3rem;
}

.breadcrumbs {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.leader-header {
  display: grid;
  grid-template-columns: 1.3fr 1.7fr;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

@media (max-width: 900px) {
  .leader-header { grid-template-columns: 1fr; }
}

.leader-title-block h1 {
  font-size: 2.2rem;
  margin-bottom: 0.25rem;
}

.leader-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.leader-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.leader-tag-pill {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.leader-images-panel {
  background: radial-gradient(circle at top, rgba(79, 209, 197, 0.18), transparent 60%),
			  linear-gradient(to bottom right, #050814, #05060a);
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
  padding: 1.25rem;
}

.leader-flip-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.leader-card-img {
  height: 100%;
  max-height: 24rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.7);
  transition: opacity 0.25s ease-in-out;
}

.flip-btn {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-main);
  font-size: 0.85rem;
  cursor: pointer;
  transition: 0.2s;
}

.flip-btn:hover {
  border-color: var(--accent);
  background: rgba(15, 23, 42, 1);
}


@media (max-width: 700px) {
  .leader-images-grid { grid-template-columns: 1fr; }
}

.leader-image-wrapper {
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #020617;
}

.leader-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* FILTER SECTIONS */
h2 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.filter-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-link {
  padding: 0.3rem 0.755rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: 0.16s;
}

.filter-link.active {
  border-color: var(--accent);
  color: var(--text-main);
  background: rgba(15, 23, 42, 1);
}

.set-filter {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

#setFilter {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: var(--text-main);
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
}

.aspect {
  margin: 0rem 0.755rem;
  padding: 0rem;
  border-radius: 0rem;
  border: 0rem;
  background: rgba(0, 0, 0, 0); ;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: 0.16s;
}

.aspect-btn img {
  /* width: 10px; */
  height: 100%;
  max-height: 2rem;
  padding: 0%;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.7);
  transition: opacity 0.25s ease-in-out;
}

.filter-link.active img{
  border-color: var(--accent);
  color: var(--text-main);
  background: rgba(15, 23, 42, 1);
}

/* CARD GRID */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1rem;
}

.card-tile {
  background: rgba(15, 23, 42, 0.98);
  border-radius: var(--card-radius);
  border: 1px solid rgba(148, 163, 184, 0.25);
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.6);
  transition: 0.16s;
}

.card-tile:hover {
  transform: translateY(-3px);
  border-color: var(--accent-soft);
}

.card-image-wrapper {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #020617;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-body {
  padding: 0.5rem;
}

.card-name {
  font-size: 0.85rem;
  margin-bottom: 0.15rem;
}

.card-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

.usage-stats {
  margin-top: 0.35rem;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.usage-row {
  padding: 0.15rem 0;
}

footer {
  margin-top: 3rem;
  padding: 1rem;
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
}

#cardZoomPopup {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  display: none;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.7);
  background: #000;
}

#cardZoomPopup img {
  display: block;
  width: 100%;
  height: auto;
}
