/* Fun, colorful, animated without any framework */
@font-face {
  font-family: "SpaceG";
  src: url("/assets/space-grotesk.woff2") format("woff2");
  font-display: swap;
}

:root {
  --bg: #051c0a;
  --text: #62ff42;
  --muted: #27eb00;
  --card: #000000aa;
  --accent1: #6eff9c;
  --accent2: #54ff89;
  --accent3: #9cff6e;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: SpaceG, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}

/* Animated background blobs */
.bg-anim {
  position: fixed;
  inset: -20vmax;
  filter: blur(60px);
  z-index: -1;
  opacity: 0.65;
}
.blob {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  mix-blend-mode: screen;
}
.b1 {
  top: 0; left: 0;
  background: radial-gradient(circle at 30% 30%, var(--accent1), transparent 60%);
  animation: drift1 22s ease-in-out infinite alternate;
}
.b2 {
  top: 20%; left: 50%;
  background: radial-gradient(circle at 60% 40%, var(--accent2), transparent 60%);
  animation: drift2 28s ease-in-out infinite alternate;
}
.b3 {
  top: 60%; left: 20%;
  background: radial-gradient(circle at 40% 70%, var(--accent3), transparent 60%);
  animation: drift3 26s ease-in-out infinite alternate;
}
@keyframes drift1 { to { transform: translate(15vmax, -10vmax) scale(1.1); } }
@keyframes drift2 { to { transform: translate(-10vmax, 8vmax) scale(1.05); } }
@keyframes drift3 { to { transform: translate(10vmax, 12vmax) scale(1.15); } }

/* Header */
.site-header {
  padding: 4rem 1rem 2rem;
  text-align: center;
}
.site-header h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  letter-spacing: 1px;
}
.tagline { margin: .5rem 0 0; color: var(--muted); }

/* Grid of videos */
.grid {
  width: min(1100px, 92vw);
  margin: 2rem auto 6rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

@media (min-width: 1400px) {
  .grid {
    width: min(1800px, 96vw);
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

/* Video cards */
.card {
  background: linear-gradient(180deg, #ffffff14, #00000022), var(--card);
  border: 1px solid #ffffff22;
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 0 10px 30px #00000055;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px #00000066;
  border-color: #ffffff44;
}

.card .thumb span {
  color: #62ff42;
  background-color: rgba(0, 40, 0, 0.4);  /* subtle dark overlay for contrast */
  text-shadow: 0 2px 8px #000a;
}

/* Thumbnails */
.thumb {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  background-image: var(--thumb);
  background-size: cover;
  background-position: center;
}
.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.35), rgba(0,0,0,.05));
  pointer-events: none;
}
.thumb span {
  position: relative;
  z-index: 1;
  color: #fff;
  font-weight: 600;
  text-shadow: 0 2px 10px #000a;
  padding: .25rem .75rem;
  border-radius: 8px;
  background-color: rgba(0,0,0,0.25);
}
.card.is-hidden { display: none; }

/* Filters */
.filters {
  width: min(1100px, 92vw);
  margin: 0 auto 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
}
.filters button {
  background: #ffffff15;
  border: 1px solid #ffffff22;
  color: var(--text);
  padding: .5rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: transform .15s, background .2s, border-color .2s;
}
.filters button:hover {
  background: #ffffff25;
  border-color: #ffffff33;
  transform: translateY(-1px);
}
.filters button.active {
  background: #ffffff35;
  border-color: #ffffff55;
}

/* Modal (video player) */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.8);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 70;
}
.modal.show {
  visibility: visible;
  opacity: 1;
}
.modal-body {
  position: relative;
  background: #000;
  padding: 1rem;
  border-radius: 12px;
  width: min(95vw, 1500px);
  box-shadow: 0 0 20px #000a;
  z-index: 10;
}
.modal-body h2 {
  margin: .25rem 0 .75rem;
  font-size: 1.1rem;
  color: var(--muted);
}

.card {
  border-color: #62ff42;                  /* your site’s accent green */
  box-shadow: 0 0 15px #62ff4233;         /* subtle glow */
  transition: transform .2s ease, 
              box-shadow .3s ease, 
              border-color .3s ease;
}

/* Hover effect: stronger glow */
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 25px #62ff42aa;
  border-color: #62ff42;
}

video {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  background: #000;
}
.close {
  position: absolute;
  right: .75rem;
  top: .6rem;
  background: #ffffff18;
  border: 1px solid #ffffff33;
  color: var(--text);
  border-radius: 10px;
  padding: .35rem .6rem;
  cursor: pointer;
}
.close:hover { background: #ffffff28; }

/* Footer */
.site-footer {
  color: #1db000;
  text-align: center;
  margin: 2rem 0 3rem;
}

/* --------------------------------------------------------------- WOOKIEE'S SECTION --------------------------------------------------*/

.card[data-category="wookiee"] {
  border-color: #4aedff;
  box-shadow: 0 0 0px #4aedff33;
}

.card[data-category="wookiee"] .thumb span {
  color: #4aedff;
  background-color: rgba(1, 62, 69, 0.4);
}

.card[data-category="wookiee"]:hover {
  border-color: #4aedff;
  box-shadow: 0 0 25px #4aedffaa;
}

.modal[data-cat="wookiee"] .modal-body h2 {
  color: #4aedff;
}

.filters button[data-filter="wookiee"] {
  background: #09484f;
  border-color: #09a4b5;
  color: #4aedff;
  transition: all 0.2s ease;
}
.filters button[data-filter="wookiee"]:hover,
.filters button[data-filter="wookiee"].active {
  background: #0e626b;
  border-color: #09a4b5;
}

/* --------------------------------------------------------------- KYUKI'S SECTION --------------------------------------------------*/

.card[data-category="kyuki"] {
  border-color: #ff9ed5;
  box-shadow: 0 0 0px #ff9ed5;
}

.card[data-category="kyuki"] .thumb span {
  color: #ff9ed5;
  background-color: rgba(105, 61, 86, 0.4);
}

.card[data-category="kyuki"]:hover {
  border-color: #ff9ed5;
  box-shadow: 0 0 25px #ff9ed5;
}

.modal[data-cat="kyuki"] .modal-body h2 {
  color: #ff9ed5;
}

.filters button[data-filter="kyuki"] {
  background: #6b3654;
  border-color: #ff9ed5;
  color: #ff9ed5;
  transition: all 0.2s ease;
}
.filters button[data-filter="kyuki"]:hover,
.filters button[data-filter="kyuki"].active {
  background: #6b3654;
  border-color: #ff9ed5;
}
