/* ============================================================
   VULKAN MC — Global Stylesheet
   Theme: Minecraft + Volcano/Lava + Dark Gaming
   ============================================================ */

/* ── Custom Properties ── */
:root {
  --bg-dark:       #0d1020;
  --bg-card:       #131729;
  --bg-card2:      #181e35;
  --lava-red:      #c74b4b;
  --lava-light:    #e05a5a;
  --lava-glow:     rgba(199, 75, 75, 0.35);
  --grass-green:   #54c84f;
  --grass-light:   #6de068;
  --text-white:    #f8fafc;
  --text-muted:    #9ca3af;
  --border-color:  rgba(199, 75, 75, 0.25);
  --pixel-border:  2px solid var(--lava-red);
  --font-main:     'Segoe UI', 'Inter', system-ui, sans-serif;
  --transition:    0.3s ease;
  --radius:        10px;
  --radius-lg:     16px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: var(--bg-dark);
  color: var(--text-white);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Scrollbar ── */
::-webkit-scrollbar              { width: 6px; }
::-webkit-scrollbar-track        { background: var(--bg-dark); }
::-webkit-scrollbar-thumb        { background: var(--lava-red); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover  { background: var(--lava-light); }

/* ── Selection ── */
::selection { background: var(--lava-red); color: #fff; }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--text-white);
  text-align: center;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 3rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.section-header {
  margin-bottom: 3rem;
}

/* Pixel accent line under titles */
.pixel-accent {
  display: block;
  width: 60px;
  height: 4px;
  background: var(--lava-red);
  margin: 0.6rem auto 0;
  image-rendering: pixelated;
  box-shadow: 0 0 12px var(--lava-glow);
}

/* Lava glow text */
.lava-text  { color: var(--lava-red); }
.green-text { color: var(--grass-green); }

/* Glassmorphism card */
.glass-card {
  background: rgba(19, 23, 41, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: var(--lava-red);
  box-shadow: 0 10px 40px var(--lava-glow);
}

/* Pixel-style corner accent on cards */
.glass-card::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 16px; height: 16px;
  border-top: 3px solid var(--lava-red);
  border-left: 3px solid var(--lava-red);
  border-radius: 4px 0 0 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 700;
  transition: all var(--transition);
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--lava-red);
  color: #fff;
  box-shadow: 0 4px 18px rgba(199,75,75,0.4);
}
.btn-primary:hover {
  background: var(--lava-light);
  box-shadow: 0 6px 28px rgba(199,75,75,0.65);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-white);
  border: 2px solid rgba(255,255,255,0.25);
}
.btn-outline:hover {
  border-color: var(--lava-red);
  color: var(--lava-red);
  transform: translateY(-2px);
}

.btn-green {
  background: var(--grass-green);
  color: #0d1020;
  box-shadow: 0 4px 18px rgba(84,200,79,0.35);
}
.btn-green:hover {
  background: var(--grass-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(84,200,79,0.55);
}

.btn-sm { padding: 8px 18px; font-size: 0.82rem; }
.btn-lg { padding: 15px 36px; font-size: 1.05rem; }

/* Badges */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.badge-red    { background: rgba(199,75,75,0.2);  color: var(--lava-red);    border: 1px solid rgba(199,75,75,0.4); }
.badge-green  { background: rgba(84,200,79,0.15); color: var(--grass-green); border: 1px solid rgba(84,200,79,0.35); }
.badge-blue   { background: rgba(59,130,246,0.15);color: #60a5fa;            border: 1px solid rgba(59,130,246,0.35); }
.badge-yellow { background: rgba(250,204,21,0.15);color: #fbbf24;            border: 1px solid rgba(250,204,21,0.35); }
.badge-purple { background: rgba(167,139,250,0.15);color: #a78bfa;           border: 1px solid rgba(167,139,250,0.35); }

/* ============================================================
   ANIMATED BACKGROUND PARTICLES (lava bubbles)
   ============================================================ */
.lava-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.lava-bubble {
  position: absolute;
  bottom: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199,75,75,0.18) 0%, transparent 70%);
  animation: rise linear infinite;
}

@keyframes rise {
  0%   { transform: translateY(0) scale(1);   opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.4; }
  100% { transform: translateY(-110vh) scale(1.4); opacity: 0; }
}

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(13, 16, 32, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: background var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  background: rgba(13, 16, 32, 0.98);
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  transition: opacity var(--transition);
}
.nav-logo:hover { opacity: 0.85; }

.nav-logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  image-rendering: pixelated;
  border: 2px solid var(--lava-red);
  box-shadow: 0 0 10px var(--lava-glow);
}

.nav-logo-text {
  font-size: 1.3rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--text-white) 0%, var(--lava-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 2px;
  background: var(--lava-red);
  border-radius: 2px;
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-white);
  background: rgba(199,75,75,0.1);
}

.nav-link:hover::after,
.nav-link.active::after { width: 60%; }

/* CTA in nav */
.nav-cta { margin-left: 8px; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 8px;
  transition: background var(--transition);
}
.hamburger:hover { background: rgba(199,75,75,0.15); }

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text-white);
  border-radius: 2px;
  transition: all 0.35s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: rgba(13,16,32,0.98);
  border-bottom: 2px solid var(--border-color);
  padding: 16px 20px 20px;
  flex-direction: column;
  gap: 6px;
  backdrop-filter: blur(16px);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mobile-nav.open { display: flex; }

.mobile-nav .nav-link {
  display: block;
  padding: 11px 14px;
  font-size: 1rem;
}

.mobile-nav .btn { width: 100%; justify-content: center; margin-top: 8px; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 100px 20px 60px;
}

/* Radial lava glow behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: 30%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(199,75,75,0.12) 0%, transparent 70%);
  pointer-events: none;
  animation: pulse 6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%       { transform: translate(-50%, -50%) scale(1.15); }
}

/* Grid lines overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(199,75,75,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(199,75,75,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 860px;
  gap: 24px;
}

/* Hero logo image */
.hero-logo {
  width: 100%;
  max-width: 560px;
  height: auto;
  filter: drop-shadow(0 0 30px rgba(199,75,75,0.5));
  animation: float 5s ease-in-out infinite;
  border-radius: 12px;
}

@keyframes float {
  0%, 100% { transform: translateY(0);    }
  50%       { transform: translateY(-12px); }
}

.hero-headline {
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -1px;
  max-width: 700px;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Floating Minecraft block (CSS only) */
.minecraft-block {
  position: absolute;
  width: 52px;
  height: 52px;
  image-rendering: pixelated;
  animation: floatBlock linear infinite;
  opacity: 0.6;
}

/* Cube faces */
.mc-cube {
  position: relative;
  width: 52px;
  height: 52px;
  transform-style: preserve-3d;
  transform: rotateX(25deg) rotateY(45deg);
  animation: spinCube 8s linear infinite;
}

.mc-face {
  position: absolute;
  width: 52px;
  height: 52px;
  border: 2px solid rgba(199,75,75,0.4);
  image-rendering: pixelated;
}

.mc-face-front  { background: #5d9427; transform: translateZ(26px); }
.mc-face-back   { background: #4a7a1e; transform: rotateY(180deg) translateZ(26px); }
.mc-face-right  { background: #4a7a1e; transform: rotateY(90deg) translateZ(26px); }
.mc-face-left   { background: #3d6319; transform: rotateY(-90deg) translateZ(26px); }
.mc-face-top    { background: #7ab832; transform: rotateX(90deg) translateZ(26px); }
.mc-face-bottom { background: #6b4423; transform: rotateX(-90deg) translateZ(26px); }

/* Grid texture on cube faces */
.mc-face::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.2) 1px, transparent 1px);
  background-size: 13px 13px;
}

@keyframes spinCube {
  0%   { transform: rotateX(25deg) rotateY(0deg); }
  100% { transform: rotateX(25deg) rotateY(360deg); }
}

/* Multiple floating blocks positioned around hero */
.block-wrap {
  position: absolute;
  perspective: 300px;
}

.block-wrap-1 { top: 15%; left: 5%;  animation: floatBlock 7s ease-in-out infinite; }
.block-wrap-2 { top: 20%; right: 4%; animation: floatBlock 9s ease-in-out 2s infinite; }
.block-wrap-3 { bottom: 20%; left: 8%; animation: floatBlock 11s ease-in-out 1s infinite; }
.block-wrap-4 { bottom: 15%; right: 6%; animation: floatBlock 8s ease-in-out 3s infinite; }

@keyframes floatBlock {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-18px); }
}

/* ============================================================
   STATS SECTION
   ============================================================ */
.stats-section {
  position: relative;
  z-index: 2;
  padding: 60px 0;
  background: rgba(199,75,75,0.04);
  border-top:    1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.stat-card {
  position: relative;
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius-lg);
  background: rgba(19,23,41,0.8);
  border: 1px solid var(--border-color);
  transition: all var(--transition);
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 20px; height: 20px;
  border-top: 3px solid var(--lava-red);
  border-left: 3px solid var(--lava-red);
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: -1px; right: -1px;
  width: 20px; height: 20px;
  border-bottom: 3px solid var(--lava-red);
  border-right: 3px solid var(--lava-red);
}

.stat-card:hover {
  background: rgba(199,75,75,0.08);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(199,75,75,0.2);
}

.stat-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
  display: block;
}

.stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--lava-red);
  display: block;
  line-height: 1.1;
  text-shadow: 0 0 20px rgba(199,75,75,0.5);
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 500;
}

/* ============================================================
   VIDEO CARDS
   ============================================================ */
.videos-section { padding: 80px 0; position: relative; z-index: 2; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.video-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  transform: translateY(-6px);
  border-color: var(--lava-red);
  box-shadow: 0 12px 40px rgba(199,75,75,0.3);
}

.video-thumbnail {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: linear-gradient(135deg, #1a1030 0%, #0d1020 100%);
  overflow: hidden;
}

.video-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.video-card:hover .video-thumb-img { transform: scale(1.06); }

/* Play button overlay */
.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.25);
  opacity: 0;
  transition: opacity var(--transition);
}

.video-card:hover .play-overlay { opacity: 1; }

.play-btn-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(199,75,75,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(199,75,75,0.7);
  transition: transform var(--transition);
}

.play-btn-circle:hover { transform: scale(1.1); }

.play-btn-circle svg { width: 22px; height: 22px; fill: #fff; margin-left: 3px; }

/* Placeholder thumbnail art */
.thumb-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
}

.thumb-emoji { font-size: 3rem; }

.thumb-bg-1  { background: linear-gradient(135deg, #1a2e0e 0%, #0d1020 100%); }
.thumb-bg-2  { background: linear-gradient(135deg, #2e0e0e 0%, #0d1020 100%); }
.thumb-bg-3  { background: linear-gradient(135deg, #0e1a2e 0%, #0d1020 100%); }
.thumb-bg-4  { background: linear-gradient(135deg, #2e1a0e 0%, #0d1020 100%); }
.thumb-bg-5  { background: linear-gradient(135deg, #1a0e2e 0%, #0d1020 100%); }
.thumb-bg-6  { background: linear-gradient(135deg, #0e2e1a 0%, #0d1020 100%); }

.video-info {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.video-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.video-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.video-views {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================================================
   SERIES SECTION
   ============================================================ */
.series-section { padding: 80px 0; position: relative; z-index: 2; background: rgba(0,0,0,0.2); }

.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.series-card {
  position: relative;
  padding: 30px 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-card2);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: all var(--transition);
  overflow: hidden;
  cursor: pointer;
}

.series-card:hover {
  transform: translateY(-6px);
  border-color: var(--lava-red);
  box-shadow: 0 12px 40px rgba(199,75,75,0.25);
}

/* Pixel corner */
.series-card::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 14px; height: 14px;
  border-top: 3px solid var(--lava-red);
  border-left: 3px solid var(--lava-red);
}

/* Gradient top bar */
.series-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}

.series-icon {
  font-size: 2.8rem;
  margin-bottom: 14px;
  display: block;
  filter: drop-shadow(0 0 8px rgba(199,75,75,0.4));
}

.series-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 8px;
}

.series-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

/* ============================================================
   RESOURCES SECTION
   ============================================================ */
.resources-section { padding: 80px 0; position: relative; z-index: 2; }

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}

.resource-card {
  position: relative;
  padding: 28px 22px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: all var(--transition);
  overflow: hidden;
}

.resource-card:hover {
  transform: translateY(-5px);
  border-color: var(--grass-green);
  box-shadow: 0 10px 35px rgba(84,200,79,0.2);
}

.resource-card::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 16px; height: 16px;
  border-top: 3px solid var(--grass-green);
  border-left: 3px solid var(--grass-green);
}

.resource-icon { font-size: 2.4rem; margin-bottom: 14px; display: block; }

.resource-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 8px;
}

.resource-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 18px;
}

.resource-count {
  font-size: 0.75rem;
  color: var(--grass-green);
  font-weight: 600;
  margin-bottom: 14px;
}

.resources-warning {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(250,204,21,0.08);
  border: 1px solid rgba(250,204,21,0.3);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-top: 32px;
  font-size: 0.87rem;
  color: #fbbf24;
}

.resources-warning-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 1px; }

/* ============================================================
   COMMUNITY SECTION
   ============================================================ */
.community-section {
  padding: 80px 0;
  position: relative;
  z-index: 2;
  background: rgba(199,75,75,0.04);
  border-top:    1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.community-inner {
  max-width: 700px;
  margin: 0 auto;
}

.community-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.community-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-telegram  { background: #229ed9; color: #fff; box-shadow: 0 4px 18px rgba(34,158,217,0.35); }
.btn-telegram:hover  { background: #1a8fc1; transform: translateY(-2px); box-shadow: 0 6px 28px rgba(34,158,217,0.5); }

.btn-discord   { background: #5865f2; color: #fff; box-shadow: 0 4px 18px rgba(88,101,242,0.35); }
.btn-discord:hover   { background: #4752d4; transform: translateY(-2px); box-shadow: 0 6px 28px rgba(88,101,242,0.5); }

.btn-youtube   { background: #ff0000; color: #fff; box-shadow: 0 4px 18px rgba(255,0,0,0.3); }
.btn-youtube:hover   { background: #cc0000; transform: translateY(-2px); box-shadow: 0 6px 28px rgba(255,0,0,0.45); }

.btn-tiktok    { background: linear-gradient(135deg, #010101, #69c9d0, #ee1d52); color: #fff; box-shadow: 0 4px 18px rgba(238,29,82,0.35); }
.btn-tiktok:hover    { opacity: 0.9; transform: translateY(-2px); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  z-index: 2;
  padding: 60px 0 30px;
  border-top: 1px solid var(--border-color);
  background: rgba(8,10,20,0.95);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid var(--lava-red);
  image-rendering: pixelated;
}

.footer-logo-text {
  font-size: 1.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #fff 0%, var(--lava-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
  max-width: 300px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
}
.social-link:hover {
  background: var(--lava-red);
  border-color: var(--lava-red);
  transform: translateY(-3px);
}

.footer-heading {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--lava-red);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 0.87rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-link:hover { color: var(--text-white); }

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-disclaimer {
  font-size: 0.78rem;
  color: rgba(156,163,175,0.6);
  max-width: 480px;
  text-align: right;
  line-height: 1.5;
}

/* ============================================================
   FILTER BAR (Videos page)
   ============================================================ */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 32px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--lava-red);
  color: #fff;
  border-color: var(--lava-red);
  box-shadow: 0 4px 14px rgba(199,75,75,0.4);
}

.search-wrap {
  margin-left: auto;
  position: relative;
}

.search-input {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 9px 16px 9px 38px;
  color: var(--text-white);
  font-size: 0.87rem;
  font-family: inherit;
  width: 220px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.search-input:focus {
  border-color: var(--lava-red);
  box-shadow: 0 0 0 3px rgba(199,75,75,0.15);
}

.search-input::placeholder { color: var(--text-muted); }

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
}

/* No results */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  display: none;
}

.no-results.show { display: block; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  position: relative;
  padding: 130px 0 60px;
  text-align: center;
  overflow: hidden;
  z-index: 2;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(199,75,75,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.page-hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-section { padding: 60px 0 80px; position: relative; z-index: 2; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: start;
}

.contact-info-card {
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.contact-info-card::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 20px; height: 20px;
  border-top: 3px solid var(--lava-red);
  border-left: 3px solid var(--lava-red);
}

.contact-info-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.contact-info-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 28px;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-channel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: rgba(199,75,75,0.06);
  border: 1px solid var(--border-color);
  font-size: 0.88rem;
  transition: all var(--transition);
}

.contact-channel:hover {
  border-color: var(--lava-red);
  background: rgba(199,75,75,0.12);
}

.contact-channel-icon { font-size: 1.3rem; }
.contact-channel-label { color: var(--text-muted); font-size: 0.78rem; }
.contact-channel-value { color: var(--text-white); font-weight: 600; font-size: 0.88rem; }

/* Form */
.contact-form-card {
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.contact-form-card::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 20px; height: 20px;
  border-top: 3px solid var(--lava-red);
  border-left: 3px solid var(--lava-red);
}

.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: rgba(13,16,32,0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--text-white);
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--lava-red);
  box-shadow: 0 0 0 3px rgba(199,75,75,0.15);
}

.form-input::placeholder,
.form-textarea::placeholder { color: rgba(156,163,175,0.5); }

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

/* Collab section */
.collab-section { padding: 60px 0 80px; position: relative; z-index: 2; }

.collab-card {
  padding: 40px;
  background: linear-gradient(135deg, rgba(199,75,75,0.1) 0%, rgba(13,16,32,0.95) 100%);
  border: 1px solid rgba(199,75,75,0.35);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.collab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.collab-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  background: rgba(0,0,0,0.2);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
}

.collab-item-icon { font-size: 1.6rem; flex-shrink: 0; }
.collab-item-title { font-size: 0.9rem; font-weight: 700; margin-bottom: 4px; }
.collab-item-desc  { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }

/* ============================================================
   INLINE PAGE-SPECIFIC: Videos Page
   ============================================================ */
.videos-page-section { padding: 40px 0 80px; position: relative; z-index: 2; }

/* ============================================================
   RESOURCES PAGE SPECIFIC
   ============================================================ */
.resources-page-section { padding: 40px 0 80px; position: relative; z-index: 2; }

.resources-cat-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-white);
  margin: 40px 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.resources-cat-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.resource-card-full {
  position: relative;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  overflow: hidden;
}

.resource-card-full:hover {
  border-color: var(--lava-red);
  box-shadow: 0 8px 30px rgba(199,75,75,0.2);
  transform: translateX(4px);
}

.resource-card-full::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--lava-red);
  border-radius: 3px 0 0 3px;
}

.resource-card-icon { font-size: 2rem; flex-shrink: 0; }
.resource-card-info { flex: 1; }
.resource-card-name { font-size: 0.98rem; font-weight: 700; margin-bottom: 4px; }
.resource-card-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 10px; }
.resource-card-tags { display: flex; gap: 6px; flex-wrap: wrap; }

.resource-actions { display: flex; gap: 8px; flex-shrink: 0; align-items: center; }

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  background: var(--grass-green);
  color: #0d1020;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 8px 30px rgba(84,200,79,0.4);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ============================================================
   SCROLL TO TOP BUTTON
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--lava-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(199,75,75,0.5);
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition);
  cursor: pointer;
  font-size: 1.1rem;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--lava-light);
  transform: translateY(-3px);
}

/* ============================================================
   MINECRAFT-STYLE DECORATIVE PIXEL BLOCK (pure CSS)
   ============================================================ */
.pixel-block {
  display: inline-block;
  width: 18px;
  height: 18px;
  background: var(--grass-green);
  image-rendering: pixelated;
  box-shadow:
    2px 2px 0 rgba(0,0,0,0.4),
    inset -3px -3px 0 rgba(0,0,0,0.25),
    inset 3px 3px 0 rgba(255,255,255,0.2);
  flex-shrink: 0;
}

/* ============================================================
   LOADING ANIMATION
   ============================================================ */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loader-blocks {
  display: flex;
  gap: 6px;
}

.loader-block {
  width: 14px;
  height: 14px;
  background: var(--lava-red);
  image-rendering: pixelated;
  animation: loaderBounce 0.8s ease-in-out infinite;
}

.loader-block:nth-child(2) { animation-delay: 0.15s; background: var(--grass-green); }
.loader-block:nth-child(3) { animation-delay: 0.3s; }
.loader-block:nth-child(4) { animation-delay: 0.45s; background: var(--grass-green); }

@keyframes loaderBounce {
  0%, 100% { transform: translateY(0); }
  40%       { transform: translateY(-16px); }
}

.loader-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ============================================================
   ANIMATIONS / ENTRANCE
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-disclaimer { text-align: left; }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta { display: none; }
  .hamburger { display: flex; }

  .hero-buttons .btn { padding: 12px 20px; font-size: 0.88rem; }

  .video-grid { grid-template-columns: 1fr; }
  .series-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
  .footer-disclaimer { text-align: left; }

  .block-wrap-1, .block-wrap-3 { display: none; }

  .filter-bar { flex-direction: column; align-items: stretch; }
  .search-wrap { margin-left: 0; }
  .search-input { width: 100%; }

  .resource-card-full { flex-direction: column; }
  .resource-actions { flex-direction: row; }

  .collab-grid { grid-template-columns: 1fr; }
  .contact-info-card, .contact-form-card { padding: 24px; }
}

@media (max-width: 480px) {
  .series-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .community-buttons .btn { width: 100%; justify-content: center; }
  .community-buttons { flex-direction: column; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .resources-grid { grid-template-columns: 1fr; }
}

/* Ensure sections sit above lava bg */
section, .header, .footer { position: relative; z-index: 2; }

/* Active page link for multi-page nav */
.nav-link[aria-current="page"] {
  color: var(--text-white);
  background: rgba(199,75,75,0.12);
}
.nav-link[aria-current="page"]::after { width: 60%; }

/* ============================================================
   LOGO IMAGE FALLBACK (when image is missing)
   ============================================================ */
.nav-logo-icon-fallback,
.footer-logo-icon-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--lava-red), #8a1a1a);
  border: 2px solid var(--lava-red);
  box-shadow: 0 0 10px var(--lava-glow);
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
  image-rendering: pixelated;
}

/* ============================================================
   HERO LOGO FALLBACK
   ============================================================ */
.hero-logo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 56px;
  background: linear-gradient(135deg, rgba(199,75,75,0.15), rgba(13,16,32,0.8));
  border: 2px solid rgba(199,75,75,0.4);
  border-radius: 16px;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: #f8fafc;
  width: 100%;
  max-width: 560px;
  box-shadow: 0 0 40px rgba(199,75,75,0.3);
  animation: float 5s ease-in-out infinite;
}

/* ============================================================
   DETAILS / FAQ SUMMARY RESET
   ============================================================ */
details summary::-webkit-details-marker { display: none; }
details summary { user-select: none; }

/* ============================================================
   GRADIENT TEXT (fallback for non-webkit) 
   ============================================================ */
@supports not (-webkit-background-clip: text) {
  .nav-logo-text,
  .footer-logo-text { color: var(--text-white); background: none; }
}

/* ============================================================
   FOCUS STYLES (accessibility)
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--lava-red);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .header, .scroll-top, .page-loader, .lava-bg,
  .block-wrap, .hamburger { display: none !important; }
  body { background: white; color: black; }
  a { color: black; text-decoration: underline; }
}
