/* === Greek Videogames - Focused 4 badges + Search === */
:root {
  --ink: #0b1b2b;
  --sea: #0a2b45;
  --blue: #1f73b7;
  --deep: #0b5aa3;
  --teal: #56c4cc;
  --aqua: #a7e1e3;
  --gold: #dfb148;
  --orange: #d97a3d;
  --white: #f8fbff;
}

strong {
  font-weight: 900;
}

@font-face {
  font-family: "URW Geometric";
  src: url("../fonts/urwgeometricext-regular.woff2");
  font-weight: 400;
}

@font-face {
  font-family: "URW Geometric";
  src: url("../fonts/URWGeometricExt-Black.ttf");
  font-weight: 900;
}

* {
  box-sizing: border-box;
  font-family: "URW Geometric", system-ui, -apple-system, Segoe UI, Roboto,
    Ubuntu, Cantarell, "Helvetica Neue", Arial;
}
html,
body {
  height: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;

  /* background: radial-gradient(
    1440px 1440px at 70% 20%,
    #103b60 0%,
    #081c2a 50%,
    #040e16 100%
  ); */

  background: #06060a;

  color: var(--white);
  overflow-x: hidden;
}

/* === Background elements === */
.bg .stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(#fff6 1px, transparent 1px) 0 0/3px 3px,
    radial-gradient(#fff3 1px, transparent 1px) 2px 2px/5px 5px;
  animation: twinkle 10s linear infinite;
  opacity: 0.5;
  z-index: -3;
}
.bg .vignette {
  position: fixed;
  inset: -10vmax;
  pointer-events: none;
  z-index: -2;
  background: radial-gradient(
    1000px 600px at 50% 0%,
    transparent 0 70%,
    #0009 100%
  );
}
.bg .grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.15;
  background-image: linear-gradient(
      transparent 0 49.5%,
      #fff2 50%,
      transparent 50.5%
    ),
    linear-gradient(90deg, transparent 0 49.5%, #fff2 50%, transparent 50.5%);
  background-size: 100px 100px;
  transform: perspective(900px) rotateX(60deg) translateY(25vh);
  transform-origin: top;
  animation: gridScroll 14s linear infinite;
}
.bg .blobs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
  filter: blur(60px);
}
.bg .blob {
  position: absolute;
  width: 40vmax;
  height: 40vmax;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--teal),
    var(--blue),
    var(--deep),
    var(--orange),
    var(--gold),
    var(--teal)
  );
  opacity: 0.12;
  mix-blend-mode: screen;
  animation: blob 24s linear infinite;
}
.bg .blob:nth-child(2) {
  right: -10vmax;
  top: -5vmax;
  animation-duration: 32s;
}
.bg .blob:nth-child(3) {
  left: -15vmax;
  bottom: -10vmax;
  animation-duration: 28s;
}

/* === Hero & logo === */
.home {
  min-height: 110svh;
  display: grid;
  place-items: center;
  position: relative;
  padding-top: 20vh;

  perspective: 1000px;
}
.logo-stack {
  display: grid;
  place-items: center;
  gap: 10rem;
  transform-style: preserve-3d;
}
.logo-wrap {
  position: relative;
  width: min(900px, 82vw);
  animation: float 6s ease-in-out infinite;
}
.homepage .logo {
  width: 100%;
  height: auto;
  display: block;

  max-width: 800px;
  margin: auto;
}

/* === Focused badge cloud === */
.badge-cloud {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.badge {
  position: absolute;
  top: var(--y);
  left: var(--x);
  transform: translate(-50%, -50%);
  pointer-events: auto;
  padding: 10px 16px;
  min-width: 130px;
  border-radius: 999px;
  background: radial-gradient(120% 140% at 30% 20%, #ffffff, #d7ecff);
  color: #0b3a59;
  text-align: center;
  box-shadow: 0 8px 26px #0a41664d, inset 0 0 0 2px #ffffffcc,
    0 0 0 1px #75c7ff33;
  display: grid;
  gap: 4px;
  animation: drift var(--speed, 16s) ease-in-out infinite alternate,
    hoverPulse 6s ease-in-out infinite;
}
.badge::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--ringAngle, 0deg),
    #6bd4ff,
    #ffc56b,
    #6bd4ff
  );
  filter: blur(10px);
  opacity: 0.35;
  z-index: -1;
}
.badge:hover {
  transform: translate(-50%, -50%) scale(1.03);
  z-index: 5;
}
.badge__num {
  font-weight: 800;
  font-size: clamp(20px, 3.5vw, 30px);
  background: linear-gradient(90deg, var(--deep), var(--blue), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.badge__label {
  font-size: clamp(12px, 2vw, 14px);
  font-weight: 600;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: #0d395b;
}

/* === Animated rounded border for the search (Google-style) === */
/* Container stays the same */
.search-wrap {
  width: min(1440px, 92vw);
  margin-inline: auto;
  position: relative;
}

/* --- Animated gradient border lives on the WRAPPER --- */
.search-frame {
  --radius: 40px;
  --bw: 6px; /* border thickness */
  border-radius: var(--radius);
  padding: var(--bw); /* creates the border area */
  background: linear-gradient(
    120deg,
    var(--deep),
    var(--blue),
    var(--teal),
    var(--gold),
    var(--orange),
    var(--deep)
  );
  background-size: 300% 300%;
  animation: borderLoop 8s linear infinite paused; /* paused until focus */
  --glow-color: rgba(70, 184, 255, 0.35);
  transition: filter 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
}

/* Run animation + give a subtle glow when typing/focused */
.search-frame:has(.search:focus-within) {
  animation-play-state: running;
  /* filter: drop-shadow(0 0 12px var(--glow-color)); */
  opacity: 1;
}
/* The actual bar content (sits above the animated border) */
.search {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-radius: calc(
    var(--radius) - var(--bw)
  ); /* keeps the same roundness inside */
  background: #121a24; /* inner fill */
  padding: 0.6rem 1rem;
  backdrop-filter: blur(8px) saturate(130%);
  box-shadow: inset 0 0 0 1px #ffffff08;
}

/* Icons / inputs / button (unchanged) */
.search__icon {
  width: 28px;
  height: 28px;
  fill: #a7e1e3;
  opacity: 0.9;
  flex: 0 0 auto;
}
.search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: #eaf7ff;
  font-size: clamp(16px, 2.4vw, 26px);
  padding: 0.7rem 0.6rem;
  outline: none;
  font-weight: 900;
}
.btn {
  appearance: none;
  border: 0;
  padding: 0.8rem 1.1rem;
  border-radius: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
  cursor: pointer;
  color: #0b1b2b;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  box-shadow: 0 10px 20px #d97a3d55, inset 0 -2px 0 #0002;
  transition: transform 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}

/* Keyframes for the flowing gradient */
@keyframes borderLoop {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* === Results table === */
.results {
  margin-top: 2rem;
  background: #051724e0;
  border: 1px solid #113b59;
  border-radius: 16px;
  box-shadow: 0 8px 24px #05131f88;
  overflow: hidden;
}
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
  font-size: 15px;
  color: #eaf7ff;
  border-collapse: collapse;
  table-layout: auto; /* Important for flexible columns */
  padding: 0.5rem;
}

.table thead th {
  text-align: left;
  padding: 14px 18px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #a7bdd3;
  backdrop-filter: blur(6px);
}

/* Row cards */
.table tbody tr {
  background: linear-gradient(180deg, #0c1c2a 0%, #081520 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

/* Space between row-cards */
.table tbody tr td:first-child {
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
}
.table tbody tr td:last-child {
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
}

.table tbody td {
  vertical-align: middle;
  border: none;
}

.table tbody td span {
  background: linear-gradient(90deg, var(--gold), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 16px rgba(217, 122, 61, 0.25);
}

/* Hover interaction */
.table tbody tr:hover {
  transform: translateY(-3px);
  background: linear-gradient(180deg, #102a3e 0%, #0a1e30 100%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(70, 184, 255, 0.25);
}

/* Link styling */

.table tr {
  position: relative;
}

.table td {
  color: #eaf7ff;
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 17px;
  padding: 0.5rem 1rem;
}

.table td:last-child {
  padding: 0;
}

.table td:nth-child(2) {
  font-weight: 900;
  font-size: 19px;
}
.table tr:hover td {
  color: var(--gold, #dfb148);
}

/* Image column */
.table td img {
  border-radius: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.table tr:hover td img {
  transform: scale(1.06);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.table td:last-child {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.table td:last-child a {
  width: 100%;
  height: 100%;
  display: block;
  padding: 0.5rem 1rem;
}

/* Empty state */
.table tbody tr:only-child td[colspan] {
  text-align: center;
  padding: 30px;
  font-size: 16px;
  opacity: 0.7;
}

/* === Filler section === */
.filler {
  min-height: 120vh;
  padding: 6rem 8vw;
  background: linear-gradient(#051420, #081b2a);
}
.filler h2 {
  font-size: clamp(28px, 5vw, 56px);
  margin: 0 0 0.6rem;
  font-weight: 900;
}
.filler p {
  max-width: 60ch;
  opacity: 0.85;
}

/* === Confetti === */
.confetto {
  position: fixed;
  width: 10px;
  height: 6px;
  z-index: 9999;
  background: linear-gradient(
    90deg,
    var(--gold),
    var(--orange),
    var(--teal),
    var(--blue)
  );
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: shoot 1.1s ease-out forwards;
  border-radius: 2px;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #0b1c2a, #071521);
  border: 1px solid var(--pager-line);
  box-shadow: 0 8px 24px rgba(5, 19, 31, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin: 2rem 0;
}
.pagination::-webkit-scrollbar {
  display: none;
}

.search-wrap .pagination {
  margin: 2rem 1rem;
}

.pagination li,
.pagination .page {
  list-style: none;
}

.pagination a,
.pagination span {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.8rem;
  border-radius: 12px;
  font-weight: 900;
  letter-spacing: 0.2px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(180deg, #0e2132, #0a1a29);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease,
    color 0.2s ease;
  position: relative;
  font-size: 15px;
}

/* hover / focus */
.pagination a:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.pagination a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(70, 184, 255, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* active/current page */
.pagination .active > span,
.pagination li.active > span,
.pagination li.current > span,
.pagination .active > a,
.pagination li.active > a,
.pagination li.current > a {
  color: var(--orange);
  background: linear-gradient(
    90deg,
    var(--pager-accent-1),
    var(--pager-accent-2)
  );
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(217, 122, 61, 0.35),
    inset 0 -2px 0 rgba(0, 0, 0, 0.15);
}

/* First/Last and Prev/Next: make them pill-ish */
.pagination .edge a,
.pagination .prev a,
.pagination .next a,
.pagination > a {
  /* this last selector catches your current markup's loose anchors */
  background: linear-gradient(180deg, #0c1e2e, #0a1826);

  min-width: 46px;
}

/* If you have disabled states (server-side), style them */
.pagination .disabled > span,
.pagination .disabled > a[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

/* === category === */
.container {
  width: min(1440px, 92%);
  margin-inline: auto;
}

.categories-container {
  margin-top: 200px;
}

.inner-hero {
  position: relative;
  padding: 34px 0 10px;
}

.title {
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.2rem);
  font-weight: 900;
  letter-spacing: 0.6px;
  margin: 0 0 8px;
  color: #e8f1ff;
}

.title span {
  background: linear-gradient(90deg, var(--gold), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 16px rgba(217, 122, 61, 0.25);
}

.title a {
  color: #e8f1ff;
  text-decoration: none;
}

.subtitle {
  margin: 40px 0;
  font-size: 18px;
  line-height: 1.4;
  max-width: 1200px;
}

.articles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 1rem;
}

.card {
  position: relative;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px rgba(15, 240, 252, 0.12);
  border-color: rgba(15, 240, 252, 0.35);
}

.card__image {
  /* aspect-ratio: 1/1; */
  position: relative;
  overflow: hidden;
  background: radial-gradient(
      800px 300px at 10% 10%,
      rgba(15, 240, 252, 0.12),
      transparent 60%
    ),
    radial-gradient(
      800px 300px at 90% 20%,
      rgba(223, 177, 72, 0.12),
      transparent 60%
    ),
    #0d0f16;
  width: 100%;
  min-height: 450px;
  display: flex;
  align-items: center;
}

.card__image > a {
  display: flex;
  /* height: 100%; */
  align-items: center;
  justify-content: center;
  width: 100%;
}

.card.horizontal .card__image a img {
  width: 100%;
}

/* .card__image > a > img,
.card__image > a {
  width: 100%;
} */

.card__content {
  padding: 15px;
}

.card-thumb {
  max-width: 250px;
  margin: auto;
}

.shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 20%,
    rgba(255, 255, 255, 0.15) 40%,
    transparent 60%
  );
  transform: translateX(-100%);
  transition: transform 600ms ease;
}
.card:hover .shine {
  transform: translateX(100%);
}

.card__content > h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: 900;
}

.card__content > h3 > a {
  background: linear-gradient(90deg, var(--gold), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.card__content > p {
  font-size: 16px;
  color: #a4b2c7;
}

/* === article === */

.article__hero {
  position: relative;
  height: 82vh;
  min-height: 520px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  isolation: isolate;
}

.article__hero > #parallax {
  position: absolute;
  inset: -10% -10% 0 -10%;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  filter: contrast(1.05) saturate(1.1) brightness(0.85) blur(5px);
  transform: translateY(0px) scale(1.08);
  will-change: transform;
}

.article__hero > .hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.25),
    rgba(6, 6, 10, 0.9) 70%
  );
}

.article__hero > .hero__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  place-content: end center;
  padding: 4rem 1.5rem;
  text-align: center;
}

.hero__inner > h1 > a {
  background: linear-gradient(90deg, var(--gold), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(2rem, 5vw, 4rem);
  margin: 40px 0;
}

.hero__inner > p {
  max-width: 900px;

  color: #9fb1c8;
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  margin: 20px 0;
}

.hero__cta {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 20px 0;
}

.hero__cta > a:nth-child(1) {
  --glow: var(--orange);
  border-color: var(--orange);
}

.hero__cta > a {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.02)
  );
  border: 2px solid rgba(255, 255, 255, 0.08);
  color: #e8eef7;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  font-weight: 900;
  letter-spacing: 0.3px;
  text-decoration: none;
  box-shadow: 0 0 0 0 var(--glow), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: 0.25s transform, 0.25s box-shadow, 0.25s border-color;
  font-size: 18px;
  cursor: pointer;
}

.hero__cta > a:nth-child(1):hover {
  transform: translateY(-2px);
  box-shadow: 0 0 22px -4px var(--glow);
}

.hero__cta > a:nth-child(2) {
  --glow: var(--gold);
  border-color: var(--gold);
}

.hero__cta > a:nth-child(2):hover {
  transform: translateY(-2px);
  box-shadow: 0 0 22px -4px var(--glow);
}

.hero__cta > a:nth-child(3) {
  --glow: var(--blue);
  border-color: var(--blue);
}

.hero__cta > a:nth-child(3):hover {
  transform: translateY(-2px);
  box-shadow: 0 0 22px -4px var(--glow);
}

.article {
  max-width: 1440px;
  margin: auto;
  padding: 50px 10px;
}

.article > .container {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
  width: 100%;
  margin: 20px auto;
}

.article__block {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  padding: 35px;
  transition: 0.25s transform, 0.25s box-shadow;
  margin-bottom: 20px;
}

.article__block + .article__block {
  margin-bottom: 0rem;
}

.article__block a img {
  width: 100%;
}

.article__block:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15, 240, 252, 0.15);
}

.article__block > h2 {
  color: var(--gold);
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 900;
}

.article__block > p {
  color: #cbd7ea;
  margin-bottom: 20px;
  font-size: 18px;
  line-height: 1.4;
}

.article__side--card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 35px;
  margin-bottom: 20px;
  transition: 0.25s transform, 0.25s box-shadow;
}

.article__side--card img {
  width: 100%;
}

.article__side--card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15, 240, 252, 0.15);
}

.article__side--card:last-child {
  margin-bottom: 0;
}

.tilt {
  transform-style: preserve-3d;
  perspective: 900px;
}
.tilt > * {
  transform: translateZ(0);
}

.article__side--info {
  position: sticky;
  top: 1rem;
  align-self: start;
}

.article__side--card > h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 19px;
  color: var(--orange);
  font-weight: 900;
}

.article__side--card > p {
  color: #c7d8efc0;
  font-size: 18px;
}

.article__side--card > p > a {
  color: #dbe7f6;
  font-weight: 900;
}

.chips {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin: 1.25rem 0 2.25rem;
}

.chip {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.03)
  );
  padding: 0.5rem 0.8rem;
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(6px);
}

.chip > a {
  font-size: 18px;
  color: #dbe7f6;
  text-decoration: none;
}

#player {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio (9 ÷ 16 = 0.5625) */
  overflow: hidden;
  border-radius: 12px; /* optional rounded corners */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* optional shadow */
}

#player iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.gallery__header > h3 {
  background: linear-gradient(90deg, var(--gold), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 32px;
  font-weight: 900;
}

.gallery__container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  max-width: 1440px;
  margin: auto;
}

.gallery__container > div {
  grid-column: span 3;
  height: 200px;
}

.gallery__container > div > a {
  display: block;
  height: 100%;

  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0d0d15;
}

.gallery__container > div > a > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__container > div:nth-child(1) {
  grid-column: span 7;
  height: 350px;
}

.gallery__container > div:nth-child(2) {
  grid-column: span 5;
  height: 350px;
}

.gallery__container > div > a > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery__container > div > a:hover > img {
  transform: scale(1.07);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  max-width: 1440px;
  margin-bottom: 40px;

  position: relative;
  z-index: 2;
}

.breadcrumbs a {
  color: #a6b7cc;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.2s ease;
}

.breadcrumbs span {
  opacity: 0.5;
  color: #a6b7cc;
  font-size: 16px;
}

.breadcrumbs a:hover {
  color: var(--gold);
}

.breadcrumbs .current + span {
  display: none;
}

/* === footer === */

.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(
      1440px 600px at 85% 10%,
      rgba(155, 109, 255, 0.25),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at 10% 80%,
      rgba(109, 240, 255, 0.2),
      transparent 55%
    ),
    #0a0e17;
}

footer {
  padding: 50px 0;
}

.footer__tags {
  width: min(1440px, 92vw);
  margin: auto;
}

.footer__tags > h3 {
  background: linear-gradient(90deg, var(--gold), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.2rem);

  text-shadow: 0 2px 16px rgba(217, 122, 61, 0.25);
  margin-top: 0;
  font-weight: 900;
}

.footer__tags > div {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  margin-top: 18px;
  max-width: 1440px;
  margin: auto;
}

.footer__category {
  grid-column: span 4;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.02)
  );
  border: 2px solid rgba(157, 173, 255, 0.18);
  border-top-color: rgba(157, 173, 255, 0.18);
  border-right-color: rgba(157, 173, 255, 0.18);
  border-bottom-color: rgba(157, 173, 255, 0.18);
  border-left-color: rgba(157, 173, 255, 0.18);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45),
    0 0 42px rgba(109, 240, 255, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
  border-color: rgba(61, 214, 255, 0.35);
}

.footer__category:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);

  border-color: #3dd6ff;
}

.footer__category > h5 {
  cursor: pointer;
  padding: 18px 18px 14px 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  outline: none;
  user-select: none;
  margin: 0;
}

.footer__category > h5 > a {
  color: #e8f1ff;
  font-size: 16px;
  text-decoration: none;
}

.footer__category > h5 > span {
  font-size: 12px;
  color: #a2b0d9;
  font-weight: 900;
  letter-spacing: 0.3px;
  background: rgba(157, 173, 255, 0.14);
  border: 1px solid rgba(157, 173, 255, 0.22);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__category > div {
  padding: 0 18px 18px 18px;
}

.footer__category > div > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer__category > div > div > div > a {
  text-decoration: none;
  color: #e8f1ff;
  letter-spacing: 0.2px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0)
  );
  border: 1px solid rgba(157, 173, 255, 0.22);
  padding: 10px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.12s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
  font-size: 14px;
}

.glow {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
      600px 120px at 10% -10%,
      rgba(109, 240, 255, 0.12),
      transparent 60%
    ),
    radial-gradient(
      500px 120px at 110% 110%,
      rgba(155, 109, 255, 0.12),
      transparent 60%
    );
  mix-blend-mode: screen;
  filter: blur(1px);
  height: 100%;
}

.footer__bottom {
  max-width: 1440px;
  margin: 25px auto;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer__bottom > div {
  margin-top: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.footer__bottom p {
  background: linear-gradient(90deg, var(--gold), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 25px;
  text-align: center;
  text-shadow: 0 2px 16px rgba(217, 122, 61, 0.25);
}

.footer__bottom p:last-child {
  font-size: 18px;
}

.footer__bottom svg {
  width: 250px;
  height: auto;
}

.innerpage .logo {
  max-width: 200px;
}

.innerpage header > a {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 199;
}

.languages {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 100;
}

.languages > span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 16px;
  border: 2px solid rgba(157, 173, 255, 0.18);
  border-top-color: rgba(157, 173, 255, 0.18);
  border-right-color: rgba(157, 173, 255, 0.18);
  border-bottom-color: rgba(157, 173, 255, 0.18);
  border-left-color: rgba(157, 173, 255, 0.18);
  border-radius: 60px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45),
    0 0 42px rgba(109, 240, 255, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
  padding: 5px 10px;
  border-color: rgba(61, 214, 255, 0.35);
  background: radial-gradient(
      1440px 600px at 85% 10%,
      rgba(155, 109, 255, 0.25),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at 10% 80%,
      rgba(109, 240, 255, 0.2),
      transparent 55%
    ),
    #0a0e17;
  cursor: pointer;
}

.languages span svg {
  width: 2.1rem;
  height: 2.1rem;
  fill: #cbd7ea;
}

.languages span svg path {
  fill: #cbd7ea;
}

.languages ul {
  border: 2px solid rgba(157, 173, 255, 0.18);
  border-top-color: rgba(157, 173, 255, 0.18);
  border-right-color: rgba(157, 173, 255, 0.18);
  border-bottom-color: rgba(157, 173, 255, 0.18);
  border-left-color: rgba(157, 173, 255, 0.18);
  border-radius: 15px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45),
    0 0 42px rgba(109, 240, 255, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
  padding: 5px 10px;
  border-color: rgba(61, 214, 255, 0.35);
  background: radial-gradient(
      1440px 600px at 85% 10%,
      rgba(155, 109, 255, 0.25),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at 10% 80%,
      rgba(109, 240, 255, 0.2),
      transparent 55%
    ),
    #0a0e17;
}

.languages ul {
  list-style: none;
  display: none;
}

.languages ul.active {
  display: block;
}

.languages ul > li > a {
  padding: 10px 0px;
  display: flex;
  align-items: center;
  gap: 7.5px;
}

.languages ul > li > a {
  color: #cbd7ea;
  text-decoration: none;
}

/* === Animations === */
@keyframes drift {
  0% {
    transform: translate(-50%, -50%) translateX(-4px) translateY(-3px)
      rotate(-0.6deg);
  }
  100% {
    transform: translate(-50%, -50%) translateX(4px) translateY(3px)
      rotate(0.6deg);
  }
}
@keyframes shoot {
  from {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy)))
      rotate(var(--dr));
  }
}
@keyframes twinkle {
  to {
    background-position: 100% 0, 0 100%;
  }
}
@keyframes gridScroll {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 0 1000px, 1000px 0;
  }
}
@keyframes blob {
  0% {
    transform: translate(-10%, 0) scale(1);
  }
  50% {
    transform: translate(10%, 5%) scale(1.2);
  }
  100% {
    transform: translate(-10%, 0) scale(1);
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes hoverPulse {
  0%,
  100% {
    box-shadow: 0 10px 30px #0a41664d, inset 0 0 0 2px #ffffffcc;
  }
  50% {
    box-shadow: 0 18px 50px #0a416680, inset 0 0 0 2px #ffffffaa;
  }
}

/* === Motion safety === */
@media (prefers-reduced-motion: reduce) {
  .bg .grid,
  .bg .blobs .blob,
  .badge,
  .logo-wrap {
    animation: none !important;
  }
}

#cursorGlow {
  position: fixed;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 200;
  filter: blur(50px);
  background: radial-gradient(
    closest-side,
    rgba(15, 240, 252, 0.65),
    rgba(15, 240, 252, 0.08),
    transparent 70%
  );
  transform: translate(-50%, -50%);
}

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 4px;
  z-index: 1000;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  transform-origin: left;
  transform: scaleX(0);
  box-shadow: 0 0 10px var(--gold);
}

@media screen and (max-width: 1024px) {
}

@media screen and (max-width: 1024px) {
  .footer__tags > div {
    grid-template-columns: repeat(6, 1fr);
  }

  .footer__category {
    grid-column: span 3;
  }

  .articles {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================
   UNIFIED RESPONSIVE RULES (layout + type)
   Breakpoints: 1280, 1024, 900, 768, 600, 480, 360
   ======================================== */

/* Big screens tighten spacing a bit */
@media (max-width: 1280px) {
  body {
    font-size: 17px;
  }
  .logo-wrap {
    width: min(760px, 86vw);
  }
  .logo-stack {
    gap: 7rem;
  }
  .badge {
    transform: translate(-50%, -50%) scale(0.92);
  }
  .articles {
    gap: 16px;
  }
}

/* Tablets / small laptops */
@media (max-width: 1024px) {
  body {
    font-size: 16px;
  }
  .home {
    padding-top: 14vh;
  }
  .logo-stack {
    gap: 6rem;
  }

  .search {
    padding: 0.5rem 0.75rem;
  }
  .btn {
    padding: 0.75rem 1rem;
  }

  .results {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .table {
    min-width: 800px;
  }
  .table td {
    font-size: 16px;
  }
  .table td:nth-child(2) {
    font-size: 17px;
  }

  .article > .container {
    grid-template-columns: 1fr;
  }
  .article__side--info {
    position: relative;
    top: auto;
  }

  .article__hero {
    height: 70vh;
    min-height: 420px;
  }

  .subtitle {
    font-size: 17px;
  }
  .card__content > p {
    font-size: 15px;
  }
  .article__block > p {
    font-size: 17px;
  }
  .article__side--card > p {
    font-size: 16px;
  }
  .breadcrumbs a,
  .breadcrumbs span {
    font-size: 15px;
  }
  .hero__cta > a {
    font-size: 16px;
  }

  .footer__tags > div {
    grid-template-columns: repeat(6, 1fr);
  }
  .footer__category {
    grid-column: span 3;
  }
  .articles {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large phones / portrait tablets */
@media (max-width: 900px) {
  body {
    font-size: 15.5px;
  }
  .logo-wrap {
    width: min(620px, 88vw);
  }
  .badge {
    min-width: 110px;
    padding: 8px 12px;
  }

  .search input {
    font-size: clamp(16px, 3.5vw, 22px);
  }
  .hero__cta > a {
    font-size: 16px;
    padding: 0.75rem 1rem;
  }

  .articles {
    grid-template-columns: 1fr 1fr;
  }
  .gallery__container {
    gap: 10px;
  }

  .pagination a,
  .pagination span {
    min-width: 38px;
    height: 38px;
    font-size: 14px;
  }
}

/* Phones */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
  .container {
    width: min(1200px, 94%);
  }
  .home {
    min-height: 96svh;
    padding-top: 12vh;
  }

  .badge {
    transform: translate(-50%, -50%) scale(0.85);
  }
  .badge__num {
    font-size: clamp(18px, 5vw, 26px);
  }
  .badge__label {
    font-size: clamp(11px, 3vw, 13px);
  }

  .search-frame {
    --radius: 28px;
    --bw: 4px;
  }
  .search {
    gap: 0.6rem;
  }
  .btn {
    padding: 0.7rem 0.95rem;
  }

  .results {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  .table {
    min-width: 640px;
  }
  .table td {
    font-size: 14px;
  }
  .table td:nth-child(2) {
    font-size: 15px;
  }

  .title {
    font-size: clamp(1.35rem, 4.5vw, 1.9rem);
  }
  .subtitle {
    font-size: 15px;
  }
  .gallery__header > h3 {
    font-size: 26px;
  }
  .card__content > p {
    font-size: 14.5px;
  }
  .article__block > h2 {
    font-size: 22px;
  }
  .article__block > p {
    font-size: 16px;
  }
  .article__side--card > h2 {
    font-size: 18px;
  }
  .article__side--card > p {
    font-size: 15px;
  }
  .chip > a {
    font-size: 16px;
  }
  .breadcrumbs a,
  .breadcrumbs span {
    font-size: 14px;
  }

  .gallery__container > div {
    grid-column: span 6;
    height: 180px;
  }
  .gallery__container > div:nth-child(1),
  .gallery__container > div:nth-child(2) {
    grid-column: span 12;
    height: 260px;
  }

  .footer__tags > div {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer__category {
    grid-column: span 4;
  }

  .breadcrumbs {
    margin-bottom: 24px;
  }
}

/* Small phones */
@media (max-width: 600px) {
  body {
    font-size: 14.5px;
  }
  .logo-wrap {
    width: min(520px, 92vw);
  }
  .innerpage .logo {
    max-width: 160px;
  }

  .search__icon {
    width: 24px;
    height: 24px;
  }
  .search input {
    padding: 0.55rem 0.5rem;
  }

  .table td {
    font-size: 13px;
  }
  .table td:nth-child(2) {
    font-size: 14px;
  }

  .hero__cta {
    gap: 0.6rem;
  }
  .chip {
    padding: 0.45rem 0.7rem;
  }
  .chip > a {
    font-size: 15px;
  }

  .card__content > p {
    font-size: 14px;
  }
  .article__block,
  .article__side--card {
    padding: 22px;
  }
  .article__block > p,
  .article__side--card > p {
    font-size: 15px;
  }

  .gallery__header > h3 {
    font-size: 22px;
  }

  .breadcrumbs a,
  .breadcrumbs span {
    font-size: 13.5px;
  }

  .footer__bottom svg {
    width: 200px;
  }

  /* Hide fancy cursor on touch */
  #cursorGlow {
    display: none;
  }
}

/* Tiny phones */
@media (max-width: 480px) {
  body {
    font-size: 14px;
  }
  .logo-wrap {
    width: 92vw;
  }
  .homepage .logo {
    max-width: 82vw;
  }

  .table td {
    font-size: 12.5px;
  }
  .table td:nth-child(2) {
    font-size: 13px;
  }

  .card__content > p {
    font-size: 13.5px;
  }
  .article__block > p,
  .article__side--card > p {
    font-size: 14px;
  }

  .gallery__header > h3 {
    font-size: 20px;
  }
  .breadcrumbs a,
  .breadcrumbs span {
    font-size: 13px;
  }

  .pagination a,
  .pagination span {
    font-size: 12.5px;
  }

  .title {
    font-size: clamp(1.4rem, 5.5vw, 1.8rem);
  }
  .subtitle {
    font-size: 16px;
    margin: 24px 0;
  }

  .pagination {
    gap: 0.4rem;
    padding: 0.6rem 0.7rem;
  }
  .pagination a,
  .pagination span {
    min-width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .gallery__container {
    gap: 8px;
  }
  .gallery__container > div {
    grid-column: span 12;
    height: 180px;
  }

  .footer__tags > div {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer__category {
    grid-column: span 2;
  }

  .footer__bottom p {
    font-size: 20px;
  }
  .footer__bottom p:last-child {
    font-size: 16px;
  }

  .footer__bottom > div {
    margin-top: 50px;
  }

  .article__hero {
    height: 100vh;
  }

  .articles {
    grid-template-columns: 1fr;
  }

  .innerpage header > a {
    top: 15px;
    left: 10px;
  }

  .languages {
    top: 15px;
    right: 10px;
  }

  .languages span svg {
    width: 1.8rem;
    height: 1.8rem;
    fill: #cbd7ea;
  }

  .languages > span {
    font-size: 14px;
    padding: 5px 7.5px;
  }
}

@media (max-width: 360px) {
  body {
    font-size: 13.5px;
  }
  .btn {
    padding: 0.6rem 0.8rem;
  }
  .search input {
    font-size: 16px;
  }
  .badge {
    transform: translate(-50%, -50%) scale(0.8);
  }
}

/* Pointer coarse (touch devices) */
@media (pointer: coarse) {
  #cursorGlow {
    display: none;
  }
}
