/* ═══════════════════════════════════════════════════════════════
   PANBOI.EU — Main CSS — Dark Theme — Mobile First
   ═══════════════════════════════════════════════════════════════ */

/* ── VARIABLES ─────────────────────────────────────────────────── */
:root {
  --bg:        #080810;
  --bg2:       #0f0f1a;
  --surface:   #13131f;
  --card:      #1a1a2e;
  --card-hover:#1f1f38;
  --border:    rgba(255,255,255,0.07);
  --border2:   rgba(255,255,255,0.12);
  --text:      #e8e8f0;
  --text-muted:#888899;
  --text-dim:  #555566;
  --accent:      #7c6af0;
  --accent2:     #a855f7;
  --accent-rgb:  124,106,240;
  --accent2-rgb: 168,85,247;
  --white:       #ffffff;
  --font-display: 'Dancing Script', cursive;
  --danger:    #e05757;
  --success:   #4ade80;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.6);
  --font:      'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'Courier New', monospace;
}

/* ── RESET ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent2); }
ul { list-style: none; }

/* ── TYPOGRAPHY ────────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; color: var(--white); }
h1 { font-size: clamp(1.8rem, 5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }

/* ── SCROLLBAR ─────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ── CONTAINER ─────────────────────────────────────────────────── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* ── NAVIGATION ────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(8,8,16,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

/* Row 1: logo centered */
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.3rem 1.25rem 0.4rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none !important;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.brand-wordmark {
  display: flex;
  align-items: baseline;
  gap: 0;
  line-height: 1;
}
.brand-main {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: linear-gradient(110deg, var(--white) 0%, var(--white) 45%, var(--accent) 65%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.brand-tld {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: lowercase;
  color: var(--text-dim);
  -webkit-text-fill-color: var(--text-dim);
  padding-bottom: 0.3em;
  align-self: flex-end;
  margin-left: 0.05em;
}
.brand-logo-img {
  height: 90px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  display: block;
  filter: brightness(1);
  transition: filter 0.2s;
}
.navbar-brand:hover .brand-logo-img { filter: brightness(1.15); }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-spacer { width: 38px; } /* balances toggle on mobile */

/* Row 2: centered links */
.nav-links-row {
  display: none;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.3rem 1rem 0.7rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
}
.nav-links-row.open { display: flex; }

/* Base nav-btn (shared mobile + desktop) */
.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.18s;
  white-space: nowrap;
}

/* Mobile: plain link style inside dropdown */
@media (max-width: 767px) {
  .navbar-brand { position: static; transform: none; }
  .brand-logo-img { height: 64px; max-width: 180px; }
  .nav-spacer { display: none; }
  .nav-links-row {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(8,8,16,0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    gap: 0.2rem;
  }
  .nav-btn {
    width: 100%;
    justify-content: center;
    padding: 0.55rem 1rem;
    color: var(--text-muted);
    border-radius: 8px;
  }
  .nav-btn:hover  { color: var(--white); background: rgba(255,255,255,0.05); }
  .nav-btn.active { color: var(--white); background: rgba(var(--accent-rgb), 0.12); }
}

/* Desktop: pill buttons with icon + glow */
@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav-links-row { display: flex !important; }
  .nav-spacer { display: none; }

  .nav-btn {
    padding: 0.38rem 0.9rem;
    border-radius: 50px;
    color: var(--text-muted);
    border: 1px solid rgba(var(--accent-rgb), 0.15);
    background: rgba(var(--accent-rgb), 0.05);
  }
  .nav-btn svg { flex-shrink: 0; }
  .nav-btn:hover {
    color: var(--white);
    background: rgba(var(--accent-rgb), 0.14);
    border-color: rgba(var(--accent-rgb), 0.42);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.22);
  }
  .nav-btn.active {
    color: var(--white);
    background: linear-gradient(135deg,
      rgba(var(--accent-rgb), 0.28) 0%,
      rgba(var(--accent2-rgb), 0.18) 100%);
    border-color: rgba(var(--accent-rgb), 0.55);
    box-shadow: 0 2px 12px rgba(var(--accent-rgb), 0.28), inset 0 1px 0 rgba(255,255,255,0.07);
  }
  .nav-btn.active svg { filter: drop-shadow(0 0 3px rgba(var(--accent-rgb), 0.7)); }
}

/* ── HERO BANNER (full-screen with see-through text) ───────────── */
.hero-banner {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bannerFadeIn 1.2s ease both;
}
@keyframes bannerFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Background layer with slow zoom-breathe animation */
.hero-banner-bg {
  position: absolute;
  inset: -8%;
  background-size: cover;
  background-position: center center;
  will-change: transform;
  animation: heroBgBreathe 12s ease-in-out infinite;
}
@keyframes heroBgBreathe {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}

.hero-banner-overlay {
  position: absolute; inset: 0;
  background: var(--hero-overlay, rgba(0,0,0,0.72));
  animation: overlayIn 1s ease 0.3s both;
}
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }

/* Wrapper: fades in then fades out, revealing content underneath */
.hero-banner-text-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  padding: 0 1rem;
  animation: titleReveal 1.4s cubic-bezier(0.16,1,0.3,1) 0.6s both,
             titleFadeOut 1.2s ease 3.2s forwards;
}
@keyframes titleReveal {
  from { opacity: 0; transform: scale(1.08); filter: blur(16px); }
  to   { opacity: 1; transform: scale(1);    filter: blur(0); }
}
@keyframes titleFadeOut {
  0%   { opacity: 1; transform: scale(1);    filter: blur(0); }
  100% { opacity: 0; transform: scale(1.06); filter: blur(10px); }
}

/* Normal hero content — fades in after the big title exits */
.hero-content-main {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 3;
  padding: 0 1.5rem;
  text-align: center;
  animation: heroContentIn 1.1s cubic-bezier(0.16,1,0.3,1) 3.9s both;
}
@keyframes heroContentIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-main-site-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  border-radius: 50px;
  padding: 0.35rem 1.1rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 1.4rem;
}
/* Decorative dot in the tag */
.hero-main-site-tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.hero-main-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  text-shadow: 0 4px 40px rgba(0,0,0,0.9);
  margin-bottom: 0.8rem;
  line-height: 1.02;
}
.hero-main-slogan {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 2.2vw, 1.1rem);
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  margin-bottom: 2.5rem;
  max-width: 480px;
  line-height: 1.7;
  letter-spacing: 0.01em;
}
.hero-cta-row {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-banner-title {
  font-family: 'Bebas Neue', var(--font-display);
  font-size: clamp(4rem, 20vw, 16rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 0.88;
  user-select: none;
  text-align: center;
  width: 100%;
  background-attachment: fixed;
  background-size: cover;
  background-position: center center;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Fallback when no image: show outline text */
.hero-banner-title.no-image {
  background: none;
  color: rgba(255,255,255,0.08);
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.18);
  -webkit-background-clip: unset;
  background-clip: unset;
}

.hero-banner-sub {
  font-size: clamp(0.75rem, 2.5vw, 1.1rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-top: 1.5rem;
}

/* Bottom fade to page */
.hero-banner-fade {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 220px;
  background: linear-gradient(to bottom, transparent 0%, var(--bg) 100%);
  pointer-events: none;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  color: rgba(255,255,255,0.3);
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite 2s;
}
.hero-scroll-arrow { font-size: 1.2rem; }
@keyframes scrollBounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

/* Fallback when no banner image set */
.hero-banner-fallback {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(var(--accent-rgb),0.15) 0%, transparent 70%);
}

/* ── OLD SECTION HERO (for blog/gallery page headers) ──────────── */
.hero {
  padding-top: 90px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.hero-content { padding: 2rem 1rem 1rem; text-align: center; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(var(--accent-rgb),0.15); border: 1px solid rgba(var(--accent-rgb),0.3);
  border-radius: 50px; padding: 0.35rem 1rem; font-size: 0.8rem;
  color: var(--accent2); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem;
}
.hero-subtitle { color: var(--text-muted); font-size: 1rem; margin-bottom: 2rem; }

/* ── FEATURED POSTS GRID ───────────────────────────────────────── */
.featured-grid { display: grid; gap: 1rem; padding: 1rem; }
@media (min-width: 640px) {
  .featured-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .featured-grid { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
  .featured-main { grid-row: span 2; }
}

.featured-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--card);
  min-height: 220px;
}
.featured-main { min-height: 360px; }
@media (min-width: 1024px) { .featured-main { min-height: 500px; } }

.featured-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.featured-card:hover img { transform: scale(1.05); }
.featured-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.featured-tag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  width: fit-content;
}
.featured-card-overlay h3 { color: #fff; font-size: 1rem; margin-bottom: 0.25rem; }
.featured-main .featured-card-overlay h3 { font-size: 1.4rem; }
.featured-card-overlay p { color: rgba(255,255,255,0.75); font-size: 0.8rem; line-height: 1.4; }
.btn-read {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  background: var(--white);
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.2s;
  width: fit-content;
}
.btn-read:hover { background: var(--accent); color: #fff; }

/* ── SECTION ───────────────────────────────────────────────────── */
.section { padding: 3rem 0; }
.section-header {
  text-align: center;
  margin-bottom: 2rem;
}
.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
}
.section-header p { color: var(--text-muted); margin-top: 0.5rem; font-size: 0.95rem; }
.section-divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 2px;
  margin: 0.75rem auto 0;
}

/* ── BLOG POSTS GRID ───────────────────────────────────────────── */
.posts-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .posts-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .posts-grid { grid-template-columns: 1fr 1fr 1fr; } }

.post-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--border2);
  box-shadow: var(--shadow);
}
.post-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg2);
}
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.post-card:hover .post-card-image img { transform: scale(1.06); }
.post-card-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.post-card-cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent2);
  margin-bottom: 0.5rem;
}
.post-card-body h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.post-card-body p { color: var(--text-muted); font-size: 0.85rem; flex: 1; }
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.85rem;
  font-size: 0.75rem;
  color: var(--text-dim);
}
.post-card-meta span { display: flex; align-items: center; gap: 0.3rem; }

/* ── BUTTON ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
}
.btn-primary:hover { opacity: 0.85; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(var(--accent-rgb),0.4); color: #fff; }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--text);
}
.btn-outline:hover { background: var(--card); color: var(--white); border-color: var(--accent); }
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* ── GALLERY SECTION ───────────────────────────────────────────── */
.gallery-filters {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0 1rem 0.75rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.gallery-filters::-webkit-scrollbar { display: none; }
.filter-btn {
  flex-shrink: 0;
  padding: 0.45rem 1rem;
  border-radius: 50px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.gallery-grid { display: grid; gap: 0.5rem; grid-template-columns: repeat(2, 1fr); padding: 0 1rem; }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }

.gallery-item {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--card);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay svg { color: #fff; width: 32px; height: 32px; }

/* ── LIGHTBOX ──────────────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox img { max-width: 95vw; max-height: 90vh; border-radius: var(--radius); object-fit: contain; }
.lightbox-close {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover { background: var(--danger); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none; color: #fff;
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lightbox-nav:hover { background: var(--accent); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* ── NEWSLETTER ────────────────────────────────────────────────── */
.newsletter-section {
  background: linear-gradient(135deg, var(--surface), var(--card));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 1rem;
  text-align: center;
}
.newsletter-section h2 { margin-bottom: 0.5rem; }
.newsletter-section p { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 0.95rem; }
.newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 420px;
  margin: 0 auto;
  flex-direction: column;
}
@media (min-width: 480px) { .newsletter-form { flex-direction: row; } }
.newsletter-form input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  color: var(--white);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-form input::placeholder { color: var(--text-dim); }
.newsletter-msg { margin-top: 0.75rem; font-size: 0.85rem; min-height: 1.2em; }
.newsletter-msg.success { color: var(--success); }
.newsletter-msg.error { color: var(--danger); }

/* ── FOOTER ────────────────────────────────────────────────────── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2rem 1rem 1rem;
  text-align: center;
}
.footer-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.footer-links {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.footer-links a { color: var(--text-muted); font-size: 0.85rem; }
.footer-links a:hover { color: var(--white); }
.footer-socials {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.footer-socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: all 0.2s;
}
.footer-socials a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.footer-copy { color: var(--text-dim); font-size: 0.8rem; }

/* ── BLOG PAGE ─────────────────────────────────────────────────── */
.page-hero {
  padding: 110px 1rem 2rem;
  text-align: center;
}
.page-hero h1 { margin-bottom: 0.5rem; }
.page-hero p { color: var(--text-muted); }
.search-bar {
  display: flex;
  gap: 0.5rem;
  max-width: 480px;
  margin: 1.5rem auto 0;
}
.search-bar input {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  color: var(--white);
  font-size: 0.9rem;
  outline: none;
}
.search-bar input:focus { border-color: var(--accent); }
.blog-categories {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0 1rem 1rem;
  justify-content: flex-start;
  scrollbar-width: none;
}
.blog-categories::-webkit-scrollbar { display: none; }
.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
  transition: all 0.2s;
}
.pagination a:hover, .pagination .current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ── BLOG POST ─────────────────────────────────────────────────── */
.post-hero {
  padding-top: 90px;
  position: relative;
}
.post-hero-image {
  position: relative;
  max-height: 520px;
  overflow: hidden;
  background: var(--card);
}
.post-hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-hero-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,8,16,1) 0%, rgba(8,8,16,0.3) 50%, transparent 100%);
}
.post-content-wrap { max-width: 800px; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }
.post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  font-size: 0.83rem;
  color: var(--text-muted);
}
.post-meta .cat-tag {
  background: rgba(var(--accent-rgb),0.15);
  border: 1px solid rgba(var(--accent-rgb),0.35);
  color: var(--accent2);
  padding: 0.2rem 0.75rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.post-title { font-size: clamp(1.9rem, 4.5vw, 3rem); margin-bottom: 1.5rem; line-height: 1.15; }
.post-excerpt-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.post-body { line-height: 1.85; }
.post-body h2, .post-body h3 { margin: 2rem 0 0.75rem; }
.post-body h2 { font-size: clamp(1.3rem, 3vw, 1.75rem); }
.post-body p { margin-bottom: 1.1rem; color: var(--text); }
.post-body img { border-radius: var(--radius); margin: 1.5rem 0; width: 100%; }
.post-body pre {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem; overflow-x: auto; margin: 1rem 0;
}
.post-body code { font-family: var(--font-mono); font-size: 0.85em; }
.post-body blockquote {
  border-left: 3px solid var(--accent); padding: 0.85rem 1.2rem; margin: 1.5rem 0;
  background: rgba(var(--accent-rgb),0.05); border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted); font-style: italic;
}
.post-body a { text-decoration: underline; text-decoration-color: rgba(var(--accent-rgb),0.4); }
.post-body a:hover { text-decoration-color: var(--accent2); }
.post-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 2rem; }
.tag-chip {
  background: var(--card); border: 1px solid var(--border);
  padding: 0.25rem 0.75rem; border-radius: 50px; font-size: 0.78rem; color: var(--text-muted);
  transition: all 0.2s;
}
.tag-chip:hover { border-color: var(--accent); color: var(--accent2); }
.related-posts { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.related-posts h3 { margin-bottom: 1.25rem; font-size: 1.1rem; }

/* ── SHARE BUTTONS ─────────────────────────────────────────────── */
.share-section {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.share-section h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}
.share-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.share-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.2s;
  border: 1px solid transparent;
  cursor: pointer;
  background: none;
  font-family: inherit;
}
.share-btn-x      { background: #000; color: #fff; border-color: #333; }
.share-btn-x:hover { background: #111; color: #fff; }
.share-btn-fb     { background: #1877f2; color: #fff; }
.share-btn-fb:hover { opacity: 0.85; color: #fff; }
.share-btn-reddit { background: #ff4500; color: #fff; }
.share-btn-reddit:hover { opacity: 0.85; color: #fff; }
.share-btn-wa     { background: #25d366; color: #fff; }
.share-btn-wa:hover { opacity: 0.85; color: #fff; }
.share-btn-tg     { background: #229ed9; color: #fff; }
.share-btn-tg:hover { opacity: 0.85; color: #fff; }
.share-btn-copy   { background: var(--card); color: var(--text); border-color: var(--border2); }
.share-btn-copy:hover { border-color: var(--accent); color: var(--white); }

/* ── GALLERY PAGE ──────────────────────────────────────────────── */
.gallery-page { padding-top: 90px; }

/* ── Gallery browser (landing) ── */
.gallery-browser { padding: 2rem 1rem 4rem; max-width: 1280px; margin: 0 auto; }

.gallery-game-filter {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.gallery-game-pill {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  border: 1px solid var(--border2);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.82rem; font-weight: 600;
  text-decoration: none;
  transition: all 0.18s;
  cursor: pointer;
}
.gallery-game-pill:hover {
  border-color: rgba(var(--accent-rgb), 0.5);
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--white);
}
.gallery-game-pill.active {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.3), rgba(var(--accent2-rgb), 0.2));
  border-color: rgba(var(--accent-rgb), 0.6);
  color: var(--white);
  box-shadow: 0 2px 10px rgba(var(--accent-rgb), 0.25);
}
.gallery-game-pill-cover {
  width: 20px; height: 20px; border-radius: 4px; object-fit: cover; flex-shrink: 0;
}
.gallery-game-pill-icon { font-size: 0.9rem; }

/* Category cards grid */
.gallery-cat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.gallery-cat-card {
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex; flex-direction: column;
}
.gallery-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.4), 0 0 0 1px rgba(var(--accent-rgb), 0.3);
  border-color: rgba(var(--accent-rgb), 0.4);
}
.gallery-cat-card-img {
  position: relative; height: 180px; overflow: hidden; background: var(--surface);
}
.gallery-cat-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-cat-card:hover .gallery-cat-card-img img { transform: scale(1.05); }
.gallery-cat-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 55%);
}
.gallery-cat-card-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; opacity: 0.25;
}
.gallery-cat-card-body {
  padding: 0.9rem 1rem 1rem;
  display: flex; flex-direction: column; gap: 0.3rem;
  flex: 1;
}
.gallery-cat-card-game {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--accent2);
}
.gallery-cat-card-name {
  font-size: 1.05rem; font-weight: 700; color: var(--white);
  margin: 0; line-height: 1.2;
}
.gallery-cat-card-meta {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
  margin-top: 0.2rem;
}
.gallery-cat-card-badge {
  font-size: 0.7rem; padding: 0.18rem 0.55rem;
  border-radius: 50px;
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  color: var(--accent);
}
.gallery-cat-card-count {
  font-size: 0.7rem; color: var(--text-dim);
}
.gallery-cat-card-desc {
  font-size: 0.78rem; color: var(--text-muted);
  margin: 0.2rem 0 0; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Tab bar (inside category view) */
.gallery-tabbar {
  display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap;
  background: var(--bg2); border-bottom: 1px solid var(--border);
  padding: 0.65rem 1rem;
}
.gallery-tabbar-back {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  border: 1px solid var(--border2);
  background: var(--surface);
  color: var(--text-dim); font-size: 0.8rem;
  text-decoration: none; transition: all 0.15s;
  margin-right: 0.25rem;
}
.gallery-tabbar-back:hover { border-color: rgba(var(--accent-rgb), 0.4); color: var(--white); }

/* Hero plain variant (no cover) */
.gallery-cat-hero--plain {
  height: clamp(180px, 25vw, 280px);
  background: linear-gradient(135deg, var(--surface), var(--card));
}

/* Game tag inside hero */
.gallery-cat-game-tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--accent2);
  text-decoration: none; opacity: 0.9;
  transition: opacity 0.15s;
}
.gallery-cat-game-tag:hover { opacity: 1; }
.gallery-cat-game-tag img { width: 20px; height: 20px; border-radius: 4px; object-fit: cover; }
.gallery-cat-type-badge {
  display: inline-block; margin-top: 0.5rem;
  font-size: 0.72rem; padding: 0.2rem 0.65rem;
  border-radius: 50px; background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.75);
}

/* Video grid */
.gallery-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  padding: 1.5rem 1rem 3rem;
  max-width: 1280px; margin: 0 auto;
}
.gallery-video-card {
  cursor: pointer; border-radius: 10px; overflow: hidden;
  background: var(--card); border: 1px solid var(--border);
  transition: transform 0.18s, box-shadow 0.18s;
}
.gallery-video-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.gallery-video-thumb {
  position: relative; aspect-ratio: 16/9; overflow: hidden; background: #000;
}
.gallery-video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-video-card:hover .gallery-video-thumb img { transform: scale(1.03); }
.gallery-video-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.3);
  transition: background 0.18s;
}
.gallery-video-play svg {
  width: 48px; height: 48px; color: #fff; opacity: 0.9;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
}
.gallery-video-card:hover .gallery-video-play { background: rgba(var(--accent-rgb), 0.35); }
.gallery-video-title {
  padding: 0.6rem 0.75rem; font-size: 0.82rem; color: var(--white);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0;
}

/* Video modal */
.video-modal {
  position: fixed; inset: 0; z-index: 9100;
  background: rgba(0,0,0,0.88); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.video-modal-inner {
  position: relative; width: 100%; max-width: 900px;
  background: var(--card); border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border2);
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
}
.video-modal-close {
  position: absolute; top: 0.75rem; right: 0.75rem; z-index: 2;
  background: rgba(0,0,0,0.5); border: none; color: #fff;
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  font-size: 0.85rem; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.video-modal-close:hover { background: rgba(var(--accent-rgb), 0.7); }
.video-modal-title {
  padding: 0.9rem 1rem 0.5rem;
  font-size: 0.9rem; font-weight: 700; color: var(--white);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.video-modal-player { aspect-ratio: 16/9; background: #000; }

/* Gallery category hero banner */
.gallery-cat-hero {
  position: relative;
  width: 100%;
  height: clamp(360px, 55vw, 640px);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 2rem 1.5rem;
  margin-bottom: 0;
  background-color: var(--bg2);
}
.gallery-cat-hero-bg {
  position: absolute;
  inset: -6%;
  background-size: cover;
  animation: heroBgBreathe 12s ease-in-out infinite;
}
.gallery-cat-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
  z-index: 1;
}
.gallery-cat-hero-content {
  position: relative; z-index: 2;
}
.gallery-cat-hero h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.4rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
}
.gallery-cat-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}
.gallery-no-cover {
  height: clamp(180px, 30vw, 320px);
  background: linear-gradient(135deg, var(--surface), var(--card));
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; opacity: 0.3;
}

/* Masonry-style gallery grid */
.gallery-masonry {
  columns: 2;
  column-gap: 0.75rem;
  padding: 0 1rem 3rem;
}
@media (min-width: 640px)  { .gallery-masonry { columns: 3; } }
@media (min-width: 1024px) { .gallery-masonry { columns: 4; } }

.gallery-masonry-item {
  break-inside: avoid;
  margin-bottom: 0.75rem;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--card);
  display: block;
}
.gallery-masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.gallery-masonry-item:hover img { transform: scale(1.05); }
.gallery-masonry-item-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.35s;
  display: flex; align-items: flex-end; padding: 0.75rem;
}
.gallery-masonry-item:hover .gallery-masonry-item-overlay { opacity: 1; }
.gallery-masonry-item-overlay span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}

.gallery-fullgrid { padding: 0 1rem 2rem; }

/* ── PROJECT HORROR ────────────────────────────────────────────── */
.horror-page {
  min-height: 100vh;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 2rem;
}
@import url('https://fonts.googleapis.com/css2?family=Creepster&family=Special+Elite&display=swap');
.horror-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(120,0,0,0.2) 0%, #000 60%);
}
.horror-particles { position: absolute; inset: 0; overflow: hidden; }
.horror-content { position: relative; z-index: 1; }
.horror-eyeball {
  font-size: 5rem;
  margin-bottom: 1rem;
  animation: eyePulse 3s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(200,0,0,0.8));
}
@keyframes eyePulse {
  0%,100% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(200,0,0,0.8)); }
  50% { transform: scale(1.1); filter: drop-shadow(0 0 40px rgba(255,0,0,1)); }
}
.horror-title {
  font-family: 'Creepster', 'Special Elite', cursive;
  font-size: clamp(3rem, 10vw, 7rem);
  color: #cc0000;
  letter-spacing: 0.05em;
  line-height: 1;
  text-shadow: 0 0 30px rgba(255,0,0,0.7), 0 0 60px rgba(255,0,0,0.4), 2px 2px 0 #000;
  animation: flicker 4s step-end infinite;
  margin-bottom: 0.5rem;
}
.horror-sub {
  font-family: 'Special Elite', 'Creepster', cursive;
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: rgba(200,0,0,0.7);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255,0,0,0.5);
  animation: flicker 6s step-end infinite 1s;
}
@keyframes flicker {
  0%,19%,21%,23%,25%,54%,56%,100% { opacity: 1; }
  20%,24%,55% { opacity: 0.4; }
}
.horror-line {
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #cc0000, transparent);
  margin: 1.5rem auto;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }
.horror-text {
  font-family: 'Special Elite', serif;
  color: rgba(180,0,0,0.6);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.blood-drop {
  position: absolute;
  top: 0;
  width: 3px;
  background: linear-gradient(to bottom, #8b0000, #cc0000);
  animation: drip linear infinite;
  border-radius: 0 0 50% 50%;
}
@keyframes drip {
  0% { top: -20%; opacity: 1; }
  100% { top: 110%; opacity: 0.3; }
}
.horror-back {
  margin-top: 2rem;
  color: rgba(200,0,0,0.4);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.3s;
}
.horror-back:hover { color: rgba(200,0,0,0.8); }

/* ── ABOUT PAGE ────────────────────────────────────────────────── */
.about-page { padding-top: 80px; }
.about-hero {
  padding: 3rem 1rem;
  text-align: center;
  background: linear-gradient(135deg, var(--bg) 0%, var(--surface) 100%);
}
.about-content { max-width: 760px; margin: 0 auto; padding: 2rem 1rem 3rem; }
.about-content p { margin-bottom: 1rem; color: var(--text); line-height: 1.8; }
.about-grid {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
}
@media (min-width: 640px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}
.about-card-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.about-card h3 { margin-bottom: 0.5rem; }
.about-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ── 404 PAGE ──────────────────────────────────────────────────── */
.not-found {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.not-found h1 {
  font-size: 8rem;
  font-weight: 900;
  opacity: 0.1;
  line-height: 1;
}
.not-found h2 { margin-bottom: 1rem; }
.not-found p { color: var(--text-muted); margin-bottom: 2rem; }

/* ── COOKIE BANNER ─────────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9000;
  width: min(96vw, 680px);
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.55);
  animation: cookieFadeIn 0.4s ease;
}
@keyframes cookieFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.cookie-banner-inner {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  padding: 1rem 1.25rem;
  flex-wrap: wrap;
}
.cookie-banner-text {
  flex: 1;
  min-width: 220px;
}
.cookie-banner-text strong {
  display: block;
  color: var(--white);
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}
.cookie-banner-text p {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 0;
}
.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-shrink: 0;
}
.cookie-link {
  font-size: 0.8rem;
  color: var(--text-dim);
}
.cookie-link:hover { color: var(--accent); }

/* ── TOAST ─────────────────────────────────────────────────────── */
.toast-container {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9000;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.toast {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  animation: slideIn 0.3s ease;
  max-width: 300px;
}
.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ── SKELETON LOADER ───────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--card) 25%, var(--card-hover) 50%, var(--card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── GAME REVIEWS ─────────────────────────────────────────────── */
.reviews-page { padding-top: 90px; }

/* Score badge — big circle, color-coded */
.score-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  font-size: 1.3rem;
  font-weight: 900;
  border: 2px solid currentColor;
  flex-shrink: 0;
}
.score-badge.lg {
  width: 88px;
  height: 88px;
  border-radius: 14px;
  font-size: 2.2rem;
  border-width: 3px;
}
.score-great { color: #4ade80; background: rgba(74,222,128,0.1); }
.score-mixed { color: #fbbf24; background: rgba(251,191,36,0.1); }
.score-bad   { color: #e05757; background: rgba(224,87,87,0.1); }
.score-na    { color: var(--text-dim); background: var(--card); font-size: 0.9rem; }

/* Review list cards */
.reviews-grid {
  display: grid;
  gap: 1.25rem;
  padding: 1rem;
}
@media (min-width: 640px)  { .reviews-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .reviews-grid { grid-template-columns: 1fr 1fr 1fr; } }

.review-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.review-card:hover {
  transform: translateY(-3px);
  border-color: var(--border2);
  box-shadow: var(--shadow);
}
.review-card-cover {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--surface);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
}
.review-card-cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.review-card:hover .review-card-cover img { transform: scale(1.04); }
.review-card-score-overlay {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
}
.review-card-body {
  padding: 1rem 1.1rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.review-card-meta {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}
.review-meta-tag {
  background: rgba(var(--accent-rgb),0.12);
  border: 1px solid rgba(var(--accent-rgb),0.25);
  color: var(--accent2);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
}
.review-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}
.review-card-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.review-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* Review detail page */
.review-detail { padding-top: 90px; }

.review-hero {
  position: relative;
  max-height: 480px;
  overflow: hidden;
  background: var(--card);
}
.review-hero img { width: 100%; height: 100%; object-fit: cover; display: block; max-height: 480px; }
.review-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,8,16,1) 0%, rgba(8,8,16,0.35) 55%, transparent 100%);
}

.review-content-wrap { max-width: 860px; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }

.review-header-block {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.review-header-info { flex: 1; min-width: 220px; }
.review-title-main {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.review-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}
.review-meta-list span { display: flex; align-items: center; gap: 0.3rem; }

/* Overall score + sub-scores panel */
.review-scores-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.review-scores-panel h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.review-scores-header {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.review-score-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }
.review-score-verdict-text {
  font-size: 1rem;
  color: var(--text);
  font-style: italic;
  line-height: 1.5;
}
.review-sub-scores { display: flex; flex-direction: column; gap: 0.65rem; }
.review-score-row {
  display: grid;
  grid-template-columns: 120px 1fr 32px;
  align-items: center;
  gap: 0.75rem;
}
.review-score-row-label { font-size: 0.82rem; color: var(--text-muted); font-weight: 600; }
.score-bar-track {
  height: 7px;
  background: var(--card);
  border-radius: 50px;
  overflow: hidden;
}
.score-bar-fill {
  height: 100%;
  border-radius: 50px;
  transition: width 0.6s ease;
}
.score-bar-fill.score-great { background: #4ade80; }
.score-bar-fill.score-mixed { background: #fbbf24; }
.score-bar-fill.score-bad   { background: #e05757; }
.review-score-row-num { font-size: 0.82rem; font-weight: 700; text-align: right; }

/* Pros & Cons */
.review-pros-cons {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
}
@media (min-width: 640px) { .review-pros-cons { grid-template-columns: 1fr 1fr; } }
.review-pros-box, .review-cons-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
}
.review-pros-box { border-left: 3px solid #4ade80; }
.review-cons-box { border-left: 3px solid #e05757; }
.review-pros-box h4 { color: #4ade80; font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.65rem; }
.review-cons-box h4 { color: #e05757; font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.65rem; }
.review-pros-box li, .review-cons-box li {
  font-size: 0.88rem;
  color: var(--text);
  padding: 0.22rem 0;
  padding-left: 1rem;
  position: relative;
  list-style: none;
  line-height: 1.5;
}
.review-pros-box li::before { content: '+'; position: absolute; left: 0; color: #4ade80; font-weight: 700; }
.review-cons-box li::before { content: '−'; position: absolute; left: 0; color: #e05757; font-weight: 700; }

.review-body { line-height: 1.85; }
.review-body h2, .review-body h3 { margin: 2rem 0 0.75rem; }
.review-body p { margin-bottom: 1.1rem; color: var(--text); }
.review-body img { border-radius: var(--radius); margin: 1.5rem 0; width: 100%; }

/* Admin review form score inputs */
.score-input-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}
.score-input-wrap {
  position: relative;
}
.score-input-wrap input[type="number"] {
  padding-right: 2.5rem;
}
.score-input-wrap::after {
  content: attr(data-max);
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: var(--text-dim);
  pointer-events: none;
}

/* ── SCROLL-TO-TOP ──────────────────────────────────────────────── */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  z-index: 800;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border2);
  color: var(--accent2);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s, background 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}
.scroll-top-btn.visible {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}
.scroll-top-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── UTILS ─────────────────────────────────────────────────────── */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.no-items { color: var(--text-muted); text-align: center; padding: 3rem 1rem; font-size: 0.95rem; }
