/*
Theme Name: U4EA Gaming Community
Theme URI: https://www.u4ealounge.com
Author: -U4EA- Community
Author URI: https://www.u4ealounge.com
Description: A custom homepage theme for the -U4EA- online gaming community. Dark, neon-accented design with animated hero, game screenshot slider, TeamSpeak section and more.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: u4ea
Tags: gaming, dark, custom-menu, custom-logo, full-width-template, one-page
*/

/* =========================================================
   CSS VARIABLES
   ========================================================= */
:root {
  --neon-green: #00ff88;
  --neon-blue: #00d4ff;
  --dark: #080c10;
  --darker: #050709;
  --card: #0d1520;
  --accent: #ff4b6e;
  --text: #c8d8e8;
  --mid: #1a2a3a;
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--dark);
  color: var(--text);
  font-family: 'Exo 2', sans-serif;
  overflow-x: hidden;
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--darker); }
::-webkit-scrollbar-thumb { background: var(--neon-green); border-radius: 3px; }

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }
ul { list-style: none; }

/* =========================================================
   NAVIGATION
   ========================================================= */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2.5rem;
  background: rgba(8, 12, 16, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 255, 136, 0.15);
}

.site-logo {
  font-family: 'Orbitron', monospace;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--neon-green);
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
  letter-spacing: 2px;
  text-decoration: none;
}

/* WordPress nav menu */
#site-navigation {
  display: flex;
  align-items: center;
  gap: 2rem;
}

#primary-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

#primary-menu li a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: color 0.3s;
}

#primary-menu li a:hover,
#primary-menu li.current-menu-item > a {
  color: var(--neon-green);
}

/* "Join Us" CTA — add class 'nav-cta' to menu item in WP admin */
#primary-menu .nav-cta > a,
#primary-menu li.nav-cta > a {
  background: var(--neon-green);
  color: var(--dark) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  transition: box-shadow 0.3s, transform 0.2s;
}

#primary-menu .nav-cta > a:hover,
#primary-menu li.nav-cta > a:hover {
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
  transform: translateY(-1px);
}

/* Mobile hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(0,255,136,0.3);
  color: var(--neon-green);
  font-size: 1.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  cursor: pointer;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn-primary {
  display: inline-block;
  background: var(--neon-green);
  color: var(--dark);
  padding: 0.9rem 2.2rem;
  border-radius: 4px;
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  letter-spacing: 1px;
  transition: box-shadow 0.3s, transform 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary:hover {
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
  transform: translateY(-2px);
  color: var(--dark);
}

.btn-secondary {
  display: inline-block;
  border: 1px solid rgba(0, 212, 255, 0.4);
  color: var(--neon-blue);
  padding: 0.9rem 2.2rem;
  border-radius: 4px;
  font-family: 'Orbitron', monospace;
  font-size: 0.85rem;
  text-decoration: none;
  letter-spacing: 1px;
  transition: all 0.3s;
}
.btn-secondary:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--neon-blue);
  color: var(--neon-blue);
}

/* =========================================================
   SHARED SECTION STYLES
   ========================================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 6rem 2rem;
}

.section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 5px;
  color: var(--neon-green);
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 1rem;
}

/* =========================================================
   SCROLL REVEAL ANIMATION
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 60%, #0a1f2e 0%, var(--dark) 70%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 136, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  from { transform: translateY(0); }
  to   { transform: translateY(60px); }
}

.hero-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.07) 0%, transparent 70%);
  animation: glowPulse 4s ease-in-out infinite;
  pointer-events: none;
}

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

.hero-content {
  position: relative;
  text-align: center;
  z-index: 2;
  padding: 0 2rem;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 5px;
  color: var(--neon-blue);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 0.9;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.4s forwards;
}

.hero-title .line1 { color: #fff;              display: block; }
.hero-title .line2 {
  color: var(--neon-green);
  display: block;
  text-shadow: 0 0 40px rgba(0, 255, 136, 0.4);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.6s forwards;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.8s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  right: 2rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #3a4a5a;
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.scroll-hint::before {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--neon-green));
  animation: scrollLine 1.5s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 1; }
}

/* =========================================================
   GAMES SLIDER SECTION
   ========================================================= */
.games-section {
  background: var(--darker);
  overflow: hidden;
}

.games-header {
  text-align: center;
  margin-bottom: 3rem;
}

.games-header p {
  color: #6a7a8a;
  font-size: 0.9rem;
}

.slider-wrapper {
  position: relative;
  overflow: hidden;
}

.slider-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide {
  flex: 0 0 340px;
  height: 220px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(0, 255, 136, 0.1);
  transition: border-color 0.3s, transform 0.3s;
  display: block;          /* works whether div or <a> */
  text-decoration: none;   /* strip link underline when <a> */
}
.slide:hover {
  border-color: rgba(0, 255, 136, 0.4);
  transform: translateY(-4px);
}

/* Slide background colours (replace with real screenshots via WP media) */
.game-cod  { background: linear-gradient(135deg, #1a0a0a 0%, #3d1515 40%, #1a0808 100%); }
.game-gta  { background: linear-gradient(135deg, #0a1a0a 0%, #1a3d1a 40%, #0d260d 100%); }
.game-dayz { background: linear-gradient(135deg, #0a120a 0%, #1e2a15 40%, #0c1a0c 100%); }
.game-iron { background: linear-gradient(135deg, #0a0a1a 0%, #15153d 40%, #0a0a1a 100%); }
.game-misc { background: linear-gradient(135deg, #1a0a1a 0%, #3d153d 40%, #1a0a1a 100%); }

/* If a real image is used as background */
.slide[style*="background-image"] {
  background-size: cover;
  background-position: center;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
}

.slide-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.2rem;
  z-index: 1;
}

.slide-game {
  font-family: 'Orbitron', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.2rem;
}

.slide-meta {
  font-size: 0.75rem;
  color: var(--neon-green);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0, 255, 136, 0.3);
  background: transparent;
  color: var(--neon-green);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-btn:hover {
  background: rgba(0, 255, 136, 0.1);
  border-color: var(--neon-green);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

.slider-dots { display: flex; gap: 0.5rem; }
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2a3a4a;
  cursor: pointer;
  transition: all 0.3s;
}
.dot.active {
  background: var(--neon-green);
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
  width: 20px;
  border-radius: 3px;
}

/* Gallery / Server browser links */
.gallery-link,
.server-browser-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Orbitron', monospace;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 0.75rem 1.8rem;
  border-radius: 4px;
  transition: all 0.3s;
  text-transform: uppercase;
  text-decoration: none;
}

.gallery-link {
  color: var(--neon-blue);
  border: 1px solid rgba(0, 212, 255, 0.25);
}
.gallery-link:hover {
  background: rgba(0, 212, 255, 0.08);
  border-color: var(--neon-blue);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
  color: var(--neon-blue);
}

.server-browser-link {
  color: var(--neon-green);
  border: 1px solid rgba(0, 255, 136, 0.25);
}
.server-browser-link:hover {
  background: rgba(0, 255, 136, 0.08);
  border-color: var(--neon-green);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.15);
  color: var(--neon-green);
}

.gallery-arrow { transition: transform 0.3s; display: inline-block; }
.gallery-link:hover .gallery-arrow,
.server-browser-link:hover .gallery-arrow { transform: translateX(4px); }

/* =========================================================
   ABOUT SECTION
   ========================================================= */
.about-section {
  background: var(--dark);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 1.2rem;
  font-size: 1rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: 0;
}

.feature-chip {
  background: var(--card);
  border: 1px solid rgba(0, 255, 136, 0.1);
  border-radius: 6px;
  padding: 0.8rem 1rem;
  font-size: 0.85rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: border-color 0.3s;
}
.feature-chip:hover { border-color: rgba(0, 255, 136, 0.4); }
.chip-icon { font-size: 1.1rem; }

.game-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.game-tag {
  font-family: 'Orbitron', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
}
.game-tag:hover { transform: translateY(-3px) scale(1.05); }

.tag-green { background: rgba(0,255,136,0.08); border: 1px solid rgba(0,255,136,0.25); color: var(--neon-green); }
.tag-blue  { background: rgba(0,212,255,0.08); border: 1px solid rgba(0,212,255,0.25); color: var(--neon-blue); }
.tag-red   { background: rgba(255,75,110,0.08); border: 1px solid rgba(255,75,110,0.25); color: var(--accent); }

/* =========================================================
   TEAMSPEAK SECTION
   ========================================================= */
.ts-section {
  background: linear-gradient(135deg, #050a0f 0%, #0a1520 50%, #050a0f 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.ts-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0,212,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.ts-icon-wrap {
  width: 100px;
  height: 100px;
  background: var(--card);
  border: 2px solid rgba(0, 212, 255, 0.3);
  border-radius: 20px;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.15);
  animation: floatIcon 3s ease-in-out infinite;
}
@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.ts-desc {
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  color: var(--text);
  font-size: 1rem;
}

.ts-server-box {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--card);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin-bottom: 2.5rem;
  font-family: 'Orbitron', monospace;
  font-size: 0.85rem;
  color: var(--neon-blue);
}

.dot-live {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--neon-green);
  border-radius: 50%;
  animation: liveBlink 1.5s ease-in-out infinite;
}
@keyframes liveBlink {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,255,136,0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(0,255,136,0); }
}

.ts-steps {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  text-align: left;
}

.ts-step {
  flex: 0 1 200px;
  background: var(--card);
  border: 1px solid rgba(0, 212, 255, 0.1);
  border-radius: 10px;
  padding: 1.5rem;
  transition: border-color 0.3s, transform 0.3s;
}
.ts-step:hover {
  border-color: rgba(0, 212, 255, 0.35);
  transform: translateY(-4px);
}

.ts-step-num {
  font-family: 'Orbitron', monospace;
  font-size: 2rem;
  font-weight: 900;
  color: rgba(0, 212, 255, 0.2);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.ts-step-title {
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.ts-step-text {
  font-size: 0.82rem;
  color: #6a7a8a;
  line-height: 1.6;
}

/* =========================================================
   VIBE / RULES SECTION
   ========================================================= */
.vibe-section {
  background: var(--darker);
}

.vibe-section > .container > div:first-child {
  text-align: center;
}

.vibe-section > .container > div:first-child p:last-child {
  color: #6a7a8a;
  max-width: 500px;
  margin: 0 auto;
  font-size: 0.9rem;
}

.vibe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.vibe-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 2rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.vibe-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--neon-green), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.vibe-card:hover::before { opacity: 1; }
.vibe-card:hover {
  border-color: rgba(0, 255, 136, 0.15);
  transform: translateY(-4px);
}

.vibe-emoji { font-size: 2.5rem; margin-bottom: 1rem; display: block; }

.vibe-title {
  font-family: 'Orbitron', monospace;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.7rem;
}

.vibe-text { font-size: 0.88rem; color: #7a8a9a; line-height: 1.65; }

/* =========================================================
   FOOTER
   ========================================================= */
#colophon {
  background: var(--darker);
  border-top: 1px solid rgba(0, 255, 136, 0.1);
  padding: 3rem 2rem 2rem;
  text-align: center;
}

.footer-logo {
  font-family: 'Orbitron', monospace;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--neon-green);
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
  display: block;
}

.footer-tagline {
  color: #4a5a6a;
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

#footer-navigation ul {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding: 0;
  list-style: none;
}

#footer-navigation a {
  color: #4a5a6a;
  text-decoration: none;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s;
}
#footer-navigation a:hover { color: var(--neon-green); }

.footer-copy {
  font-size: 0.75rem;
  color: #2a3a4a;
}

/* =========================================================
   WORDPRESS POST / PAGE CONTENT (inner pages)
   ========================================================= */
.site-main {
  padding-top: 80px; /* offset for fixed nav */
}

.entry-content {
  max-width: 860px;
  margin: 4rem auto;
  padding: 0 2rem;
  color: var(--text);
  line-height: 1.8;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: 'Orbitron', monospace;
  color: #fff;
  margin: 2rem 0 1rem;
}

.entry-content p  { margin-bottom: 1.2rem; }
.entry-content a  { color: var(--neon-green); }
.entry-content a:hover { text-decoration: underline; }

.entry-content ul,
.entry-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }

/* WP admin bar offset */
.admin-bar #site-header { top: 32px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  #site-header { padding: 1rem 1.5rem; }

  #primary-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(8, 12, 16, 0.98);
    border-bottom: 1px solid rgba(0,255,136,0.15);
    padding: 1.5rem;
    gap: 1.2rem;
  }
  #primary-menu.is-open { display: flex; }

  .menu-toggle { display: block; }

  .about-features { grid-template-columns: 1fr; }

  .ts-steps { flex-direction: column; align-items: center; }
  .ts-step { flex: 0 0 auto; width: 100%; max-width: 340px; }

  section { padding: 4rem 1.5rem; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; align-items: center; }
  .slide { flex: 0 0 280px; }
}

/* =========================================================
   GALLERY PAGE
   ========================================================= */
.gallery-page { padding-top: 80px; }

.gallery-page-header {
  background: linear-gradient(135deg, #050a0f 0%, #0a1520 50%, #050a0f 100%);
  padding: 4rem 2rem 3rem;
  text-align: center;
  border-bottom: 1px solid rgba(0,255,136,0.1);
  position: relative;
  overflow: hidden;
}
.gallery-page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(0,255,136,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.gallery-intro {
  color: #6a7a8a;
  max-width: 560px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.7;
}

.gallery-container { padding: 3rem 1.5rem 5rem; }

/* Upload panel */
.gallery-upload-panel {
  margin-bottom: 2.5rem;
  background: var(--card);
  border: 1px solid rgba(0,255,136,0.15);
  border-radius: 10px;
  overflow: hidden;
}

.upload-panel-toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-family: 'Orbitron', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--neon-green);
  letter-spacing: 1px;
  text-transform: uppercase;
  user-select: none;
  transition: background 0.2s;
}
.upload-panel-toggle:hover { background: rgba(0,255,136,0.04); }
.toggle-arrow { margin-left: auto; font-size: 0.7rem; transition: transform 0.3s; }
.toggle-arrow.open { transform: rotate(180deg); }

.upload-panel-body {
  padding: 1.5rem;
  border-top: 1px solid rgba(0,255,136,0.08);
}

.upload-msg {
  padding: 0.8rem 1.2rem;
  border-radius: 6px;
  margin-bottom: 1.2rem;
  font-size: 0.88rem;
}
.upload-success { background: rgba(0,255,136,0.08); border: 1px solid rgba(0,255,136,0.25); color: var(--neon-green); }
.upload-error   { background: rgba(255,75,110,0.08); border: 1px solid rgba(255,75,110,0.25); color: var(--accent); }

.upload-form { display: flex; flex-direction: column; gap: 1.2rem; }
.upload-field { display: flex; flex-direction: column; gap: 0.4rem; }
.upload-field label { font-size: 0.85rem; font-weight: 600; color: #aabbc8; }
.upload-field .req { color: var(--neon-green); font-size: 0.75rem; }
.upload-field input[type="text"] {
  background: var(--dark);
  border: 1px solid rgba(0,255,136,0.15);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: #fff;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.3s;
}
.upload-field input[type="text"]:focus {
  outline: none;
  border-color: rgba(0,255,136,0.5);
  box-shadow: 0 0 0 3px rgba(0,255,136,0.06);
}

.file-drop-zone {
  border: 2px dashed rgba(0,255,136,0.2);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}
.file-drop-zone:hover, .file-drop-zone.dragover {
  border-color: rgba(0,255,136,0.5);
  background: rgba(0,255,136,0.03);
}
.file-drop-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
}
.drop-icon { font-size: 2rem; margin-bottom: 0.5rem; display: block; }
.file-drop-zone p { color: #aabbc8; font-size: 0.88rem; }
.drop-sub { color: #4a6a7a; font-size: 0.78rem; margin-top: 0.3rem; }

.image-preview-wrap {
  margin-top: 1rem;
  position: relative;
  display: inline-block;
  max-width: 100%;
}
.image-preview-wrap img {
  max-height: 200px;
  border-radius: 6px;
  border: 1px solid rgba(0,255,136,0.2);
}
.clear-preview {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  background: rgba(255,75,110,0.8);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  cursor: pointer;
}

.upload-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.upload-note { font-size: 0.78rem; color: #4a6a7a; }

.gallery-login-notice {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card);
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin-bottom: 2.5rem;
  font-size: 0.9rem;
  color: #7a8a9a;
}
.gallery-login-notice a { color: var(--neon-green); }
.gallery-login-notice span { font-size: 1.4rem; }

/* Gallery grid — 4 columns */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.gallery-item {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.3s;
}
.gallery-item:hover {
  border-color: rgba(0,255,136,0.25);
  transform: translateY(-3px);
}

.gallery-thumb-link { display: block; cursor: pointer; }
.gallery-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #0a1218;
  max-width: 350px;
  max-height: 350px;
  margin: 0 auto;
  width: 100%;
}
.gallery-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.gallery-item:hover .gallery-thumb-img { transform: scale(1.06); }
.gallery-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  opacity: 0.3;
}
.gallery-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .gallery-thumb-overlay { opacity: 1; }
.gallery-view-icon { font-size: 1.8rem; }

.gallery-item-info {
  padding: 0.7rem 0.8rem 0.5rem;
  flex: 1;
}
.gallery-item-title {
  font-family: 'Orbitron', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ddeeff;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gallery-item-caption {
  font-size: 0.75rem;
  color: #7a8a9a;
  margin-bottom: 0.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gallery-item-meta {
  font-size: 0.7rem;
  color: #3a5a6a;
}

/* Vote buttons */
.gallery-item-votes {
  display: flex;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.vote-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 0.6rem 0.4rem;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: background 0.2s, color 0.2s;
  font-family: 'Exo 2', sans-serif;
}
.vote-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.vote-up   { color: #5a8a6a;  border-right: 1px solid rgba(255,255,255,0.04); }
.vote-down { color: #8a5a6a; }
.vote-up:hover:not(:disabled)   { background: rgba(0,255,136,0.08); color: var(--neon-green); }
.vote-down:hover:not(:disabled) { background: rgba(255,75,110,0.08); color: var(--accent); }
.vote-up.voted   { color: var(--neon-green); background: rgba(0,255,136,0.06); }
.vote-down.voted { color: var(--accent);     background: rgba(255,75,110,0.06); }
.vote-count { min-width: 1ch; }

/* Gallery pagination */
.gallery-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.page-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid rgba(0,255,136,0.2);
  color: var(--text);
  font-family: 'Orbitron', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
}
.page-btn:hover, .page-btn.active {
  background: var(--neon-green);
  color: var(--dark);
  border-color: var(--neon-green);
}

.gallery-empty {
  text-align: center;
  padding: 5rem 2rem;
  color: #4a5a6a;
}
.gallery-empty-icon { font-size: 3rem; display: block; margin-bottom: 1rem; }

/* Responsive gallery grid */
@media (max-width: 1100px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 750px)  { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .gallery-grid { grid-template-columns: 1fr; } }

/* =========================================================
   SERVERS PAGE
   ========================================================= */
.servers-page { padding-top: 80px; }

.servers-page-header {
  background: linear-gradient(135deg, #050a0f 0%, #0a1520 50%, #050a0f 100%);
  padding: 4rem 2rem 3rem;
  text-align: center;
  border-bottom: 1px solid rgba(0,255,136,0.1);
  position: relative;
  overflow: hidden;
}
.servers-page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(0,212,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.servers-intro {
  color: #7a8a9a;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}
.servers-intro a { color: var(--neon-blue); }
.servers-refresh-note { font-size: 0.78rem; color: #3a5a6a; }
.servers-live-count {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--neon-green);
  font-weight: 600;
  margin-left: 0.5rem;
}

.servers-container { padding: 3rem 1.5rem 5rem; }

.servers-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid rgba(0,255,136,0.12);
}

.servers-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.servers-table thead th {
  background: rgba(0,255,136,0.06);
  color: var(--neon-green);
  font-family: 'Orbitron', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 1rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid rgba(0,255,136,0.12);
  white-space: nowrap;
}

.server-row td {
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  vertical-align: middle;
  color: var(--text);
  transition: background 0.2s;
}
.server-row:hover td { background: rgba(0,255,136,0.03); }
.server-row:last-child td { border-bottom: none; }

.row-online  { background: rgba(0,255,136,0.02); }
.row-empty   { opacity: 0.7; }

.srv-name a {
  color: #ddeeff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.srv-name a:hover { color: var(--neon-green); }

.srv-badge-live {
  display: inline-block;
  background: rgba(0,255,136,0.12);
  color: var(--neon-green);
  font-family: 'Orbitron', monospace;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  margin-left: 0.5rem;
  vertical-align: middle;
  animation: liveBlink 2s ease-in-out infinite;
}

.srv-game { color: #8a9aaa; white-space: nowrap; }

.players-wrap { min-width: 80px; }
.players-text { font-weight: 700; display: block; margin-bottom: 0.3rem; }
.players-text.text-green { color: var(--neon-green); }
.player-bar {
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}
.player-bar-fill {
  height: 100%;
  background: linear-gradient(to right, var(--neon-green), var(--neon-blue));
  border-radius: 2px;
  transition: width 0.8s ease;
}

.map-badge {
  background: rgba(0,212,255,0.07);
  color: var(--neon-blue);
  font-size: 0.78rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-family: 'Orbitron', monospace;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.srv-ip code {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: #6a7a8a;
  background: rgba(255,255,255,0.03);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.connect-btn {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(0,255,136,0.25);
  border-radius: 4px;
  color: var(--neon-green);
  font-family: 'Orbitron', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: all 0.3s;
  white-space: nowrap;
}
.connect-btn:hover {
  background: rgba(0,255,136,0.1);
  border-color: var(--neon-green);
  color: var(--neon-green);
}

.servers-footer-note {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: #3a5a6a;
}
.servers-footer-note a { color: var(--neon-blue); }

.servers-error {
  text-align: center;
  padding: 4rem 2rem;
  color: #4a5a6a;
}
.servers-error a { color: var(--neon-green); }

/* =========================================================
   SLIDER LIGHTBOX
   ========================================================= */

/* Zoom hint icon on hover */
.slide-zoom-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  font-size: 2rem;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
  z-index: 2;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.8));
}
.slide-lightbox:hover .slide-zoom-hint {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Lightbox overlay */
.u4ea-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.u4ea-lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}

/* Semi-transparent backdrop */
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 12, 0.94);
  cursor: pointer;
}

/* Close button — top right */
.lightbox-close {
  position: fixed;
  top: 1.2rem;
  right: 1.5rem;
  z-index: 10001;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(8, 12, 16, 0.85);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  backdrop-filter: blur(8px);
}
.lightbox-close:hover {
  background: rgba(255,75,110,0.85);
  border-color: var(--accent);
  transform: scale(1.1) rotate(90deg);
}

/* Inner content — sits above backdrop */
.lightbox-inner {
  position: relative;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 92vw;
  max-height: 92vh;
  pointer-events: none; /* clicks on image don't close */
}

/* The full-size image */
.lightbox-img {
  max-width: 92vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 60px rgba(0,0,0,0.8);
  display: block;
  transform: scale(0.92);
  transition: transform 0.3s ease;
}
.u4ea-lightbox.is-open .lightbox-img {
  transform: scale(1);
}

/* Caption area */
.lightbox-caption-wrap {
  margin-top: 1rem;
  text-align: center;
  pointer-events: none;
}
.lightbox-title {
  font-family: 'Orbitron', monospace;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}
.lightbox-caption {
  font-size: 0.82rem;
  color: #7a8a9a;
}
