/* ========================= */
/* RESET + BASE */
/* ========================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, sans-serif;
  background: #0e0e0e;
  color: #f5e9d8;
  overflow-x: hidden;
}

/* ========================= */
/* HEADER */
/* ========================= */

.header {
  text-align: center;
  padding: 20px;
  background: rgba(20,20,20,0.9);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* ========================= */
/* NAV */
/* ========================= */

.nav {
  text-align: center;
  padding: 10px;
}

.nav a {
  color: #5fd1ff;
  margin: 0 10px;
  text-decoration: none;
  cursor: pointer;
}

.nav a:hover {
  text-shadow: 0 0 8px #5fd1ff;
}

/* ========================= */
/* FILTERS */
/* ========================= */

.filters {
  text-align: center;
  margin: 10px;
}

.filters button {
  margin: 5px;
  padding: 6px 12px;
  background: #1a1a1a;
  color: #5fd1ff;
  border: 1px solid #5fd1ff;
  cursor: pointer;
  transition: 0.2s;
}

.filters button:hover {
  background: #5fd1ff;
  color: black;
}

/* ========================= */
/* GRID (FIXED CARD SIZE) */
/* ========================= */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 300px);
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

/* ========================= */
/* PROJECT CARDS */
/* ========================= */

.card {
  width: 300px;
  background: rgba(42,31,26,0.85);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid rgba(255,255,255,0.05);
}

.card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 30px rgba(95,209,255,0.25);
}

/* IMAGE (300x100 CROPPED) */

.card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.4s ease, filter 0.3s ease;
}

.card:hover img {
  transform: scale(1.08);
  filter: brightness(1.1);
}

.card h3 {
  padding: 10px;
  margin: 0;
}

/* ========================= */
/* GALLERY */
/* ========================= */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  padding: 20px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
  filter: brightness(1.1);
}

/* ========================= */
/* PROJECT PAGE */
/* ========================= */

.project-page {
  padding: 20px;
}

.gallery-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.gallery-row img {
  width: 180px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.gallery-row img:hover {
  transform: scale(1.05);
}

.info {
  max-width: 600px;
}

/* ========================= */
/* PROJECT TEXT CONTENT */
/* ========================= */

.short-desc {
  font-style: italic;
  opacity: 0.7;
  margin-bottom: 10px;
}

.long-desc {
  margin-top: 10px;
  line-height: 1.6;
  font-size: 14px;
  opacity: 0.9;
}

/* ========================= */
/* STRUCTURED SECTIONS */
/* ========================= */

.section {
  margin-top: 20px;
}

.section h3 {
  margin-bottom: 8px;
  color: #5fd1ff;
  text-shadow: 0 0 6px rgba(95,209,255,0.4);
}

/* ========================= */
/* MATERIALS LIST */
/* ========================= */

.materials-list {
  list-style: none;
  padding: 0;
}

.materials-list li {
  background: rgba(95,209,255,0.1);
  border: 1px solid rgba(95,209,255,0.2);
  padding: 6px 10px;
  margin: 4px 0;
  border-radius: 6px;
  font-size: 13px;
}

/* ========================= */
/* LIGHTBOX */
/* ========================= */

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.92);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.lightbox.active img {
  transform: scale(1);
}

/* controls */

.lightbox .close,
.lightbox .prev,
.lightbox .next {
  position: absolute;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
}

.lightbox .close {
  top: 20px;
  right: 25px;
}

.lightbox .prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox .next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* ========================= */
/* NEON SIGN */
/* ========================= */

.neon-sign {
  position: relative;
  display: inline-block;
}

.neon-main {
  font-size: 3rem;
  letter-spacing: 3px;
  color: #ffd1dc;

  text-shadow:
    0 0 5px #ff7aa2,
    0 0 10px #ff7aa2,
    0 0 20px #ff4f81,
    0 0 40px #ff2e63,
    0 0 80px #ff2e63;

  filter: blur(0.3px);

  animation:
    neonFlicker 4s infinite,
    neonPulse 2s infinite;
}

@keyframes neonFlicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: 0.4; }
}

@keyframes neonPulse {
  0%, 100% {
    text-shadow:
      0 0 5px #ff7aa2,
      0 0 10px #ff7aa2,
      0 0 20px #ff4f81,
      0 0 40px #ff2e63,
      0 0 80px #ff2e63;
  }
  50% {
    text-shadow:
      0 0 3px #ff7aa2,
      0 0 6px #ff7aa2,
      0 0 12px #ff4f81,
      0 0 25px #ff2e63;
  }
}

/* glow spill */

.neon-sign::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 90px;
  background: radial-gradient(
    ellipse,
    rgba(255, 46, 99, 0.25),
    transparent 70%
  );
  filter: blur(25px);
  z-index: -1;
}

/* ========================= */
/* NOISE OVERLAY */
/* ========================= */

.noise {
  position: fixed;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255,255,255,0.02) 3px
  );
}

/* ========================= */
/* RESULT BADGES */
/* ========================= */

.result-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 4px;
  font-weight: bold;
}

.result-badge.win {
  background: rgba(0, 255, 100, 0.2);
  border: 1px solid rgba(0, 255, 100, 0.5);
  color: #6cff9a;
}

.result-badge.loss {
  background: rgba(255, 50, 50, 0.2);
  border: 1px solid rgba(255, 50, 50, 0.5);
  color: #ff6b6b;
}

/* ========================= */
/* RESULT BANNER */
/* ========================= */

.result-banner {
  margin: 10px 0;
  padding: 8px;
  text-align: center;
  font-weight: bold;
  border-radius: 6px;
}

.result-banner.win {
  background: rgba(0,255,100,0.15);
  border: 1px solid rgba(0,255,100,0.4);
  color: #6cff9a;
}

.result-banner.loss {
  background: rgba(255,50,50,0.15);
  border: 1px solid rgba(255,50,50,0.4);
  color: #ff6b6b;
}

/* ========================= */
/* ========================= */
/*MORDHEIM*/
/* ========================= */

/* ========================= */
/* PLAYERS LIST */
/* ========================= */

.players-list {
  list-style: none;
  padding: 0;
}

.players-list li {
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* ========================= */
/* INJURY LIST */
/* ========================= */

.injury-list {
  list-style: none;
  padding: 0;
}

.injury-list li {
  background: rgba(255,50,50,0.1);
  border: 1px solid rgba(255,50,50,0.2);
  padding: 6px;
  margin: 4px 0;
  border-radius: 4px;
  font-size: 13px;
}

/* ========================= */
/* BLOG META */
/* ========================= */

.blog-meta {
  font-size: 12px;
  opacity: 0.6;
}

/* ========================= */
/* DRAW STATE */
/* ========================= */

.result-badge.draw {
  background: rgba(200,200,200,0.2);
  border: 1px solid rgba(200,200,200,0.4);
  color: #ccc;
}

.result-banner.draw {
  background: rgba(200,200,200,0.15);
  border: 1px solid rgba(200,200,200,0.4);
  color: #ddd;
}

/* ========================= */
/* OUTCOME BLOCKS */
/* ========================= */

.outcome-block {
  margin-top: 10px;
  padding: 10px;
  border-radius: 6px;
}

.outcome-block.win {
  background: rgba(0,255,100,0.1);
  border: 1px solid rgba(0,255,100,0.3);
}

.outcome-block.loss {
  background: rgba(255,50,50,0.1);
  border: 1px solid rgba(255,50,50,0.3);
}

.outcome-block ul {
  margin: 5px 0 0 0;
  padding-left: 15px;
}

/* Thumbnail captions */
.gallery-item-caption {
  text-align: center;                 /* Center text under each thumbnail */
  font-family: "Creepster", cursive; /* Fun retro/fantasy font */
  font-size: 0.9em;
  color: #ffe;                        /* light yellow for readability */
  margin-top: 4px;
  line-height: 1.2em;
  text-shadow: 1px 1px 2px #000;     /* subtle shadow for pop */
  max-width: 150px;                   /* match thumbnail width */
  word-wrap: break-word;
   text-shadow: 0 0 2px #fff, 0 0 4px #f0f, 0 0 6px #f0f;
}

/* Load Google Font for captions */
@import url('https://fonts.googleapis.com/css2?family=Creepster&display=swap');

/* Thumbnail container */
.gallery-row img {
  width: 150px;       /* fixed thumbnail width */
  height: 100px;      /* fixed thumbnail height */
  object-fit: cover;  /* crop while keeping aspect ratio */
  margin: 5px;
  border: 2px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

/* Hover effect */
.gallery-row img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 8px #fff;
}

/* Caption overlay on hover */
.gallery-item-caption {
  font-size: 0.85em;
  color: #eee;
  text-align: center;
  margin-top: 2px;
}