/* ===========================
   POKEVENTURE — MAIN STYLES
   =========================== */

:root {
  --red: #e53e3e;
  --red-dark: #c53030;
  --red-light: #fc8181;
  --yellow: #f6e05e;
  --yellow-dark: #d69e2e;
  --blue: #3182ce;
  --blue-dark: #2b6cb0;
  --dark: #0a0e1a;
  --dark2: #111827;
  --dark3: #1a2235;
  --dark4: #243044;
  --gray: #a0aec0;
  --gray-light: #e2e8f0;
  --white: #ffffff;
  --accent: #f6e05e;

  /* Type colors */
  --fire: #f97316;
  --water: #3b82f6;
  --grass: #22c55e;
  --electric: #eab308;
  --psychic: #a855f7;
  --dark-type: #374151;

  --font-main: 'Exo 2', sans-serif;
  --font-pixel: 'Press Start 2P', monospace;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 30px rgba(246,224,94,0.3);
  --transition: 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }

img { max-width: 100%; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== PARTICLES ===== */
.particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.15; }
  90% { opacity: 0.1; }
  100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  border-bottom: 1px solid rgba(246,224,94,0.15);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pokeball-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--red) 50%, var(--white) 50%);
  border: 3px solid var(--white);
  position: relative;
  box-shadow: 0 0 12px rgba(229,62,62,0.5);
  flex-shrink: 0;
}

.pokeball-icon::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 10px; height: 10px;
  background: var(--white);
  border-radius: 50%;
  border: 2px solid #333;
}

.pokeball-icon::after {
  content: '';
  position: absolute;
  top: calc(50% - 1.5px); left: 0; right: 0;
  height: 3px;
  background: #333;
}

.pokeball-icon.sm { width: 28px; height: 28px; }
.pokeball-icon.sm::before { width: 8px; height: 8px; }

.logo-text {
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--white);
  letter-spacing: 1px;
}

.logo-accent { color: var(--yellow); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-weight: 600;
  font-size: 15px;
  color: var(--gray-light);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--yellow);
  transition: width var(--transition);
}

.nav-links a:hover { color: var(--yellow); }
.nav-links a:hover::after { width: 100%; }

.btn-nav {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 700;
  transition: all var(--transition);
  box-shadow: 0 0 20px rgba(229,62,62,0.4);
}

.btn-nav:hover {
  background: var(--red-dark) !important;
  box-shadow: 0 0 30px rgba(229,62,62,0.6);
  transform: translateY(-1px);
}

.btn-nav::after { display: none !important; }

.shop-nav {
  background: linear-gradient(135deg, var(--yellow-dark), var(--yellow)) !important;
  color: var(--dark) !important;
  box-shadow: 0 0 20px rgba(246,224,94,0.35) !important;
}
.shop-nav:hover {
  box-shadow: 0 0 30px rgba(246,224,94,0.6) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(229,62,62,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(49,130,206,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 80%, rgba(246,224,94,0.08) 0%, transparent 60%),
    linear-gradient(135deg, #0a0e1a 0%, #111827 50%, #0a0e1a 100%);
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0);
  background-size: 40px 40px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  max-width: 680px;
  padding-left: 80px;
}

.hero-badge {
  display: inline-block;
  background: rgba(246,224,94,0.15);
  border: 1px solid rgba(246,224,94,0.4);
  color: var(--yellow);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeInDown 0.6s ease;
}

.hero-title {
  font-family: var(--font-pixel);
  font-size: clamp(32px, 6vw, 64px);
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 20px;
  animation: fadeInDown 0.8s ease;
  text-shadow: 0 0 40px rgba(229,62,62,0.4);
}

.hero-title .accent { color: var(--yellow); text-shadow: 0 0 30px rgba(246,224,94,0.6); }

.hero-sub {
  font-size: 20px;
  color: var(--gray);
  margin-bottom: 36px;
  animation: fadeInDown 1s ease;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
  animation: fadeInUp 1s ease;
}

.stat { text-align: center; }

.stat-num {
  display: block;
  font-family: var(--font-pixel);
  font-size: 24px;
  color: var(--yellow);
  text-shadow: 0 0 20px rgba(246,224,94,0.5);
}

.stat-label {
  font-size: 12px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 1.1s ease;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(229,62,62,0.5);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(229,62,62,0.7);
}

.btn-icon { font-size: 12px; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  transition: all var(--transition);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--yellow);
  color: var(--yellow);
  transform: translateY(-2px);
}

.hero-pokemon {
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  animation: floatBall 3s ease-in-out infinite;
}

.poke-ball-large {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--red) 50%, var(--white) 50%);
  border: 8px solid rgba(255,255,255,0.2);
  position: relative;
  box-shadow:
    0 0 60px rgba(229,62,62,0.4),
    0 0 120px rgba(229,62,62,0.2),
    inset 0 0 60px rgba(0,0,0,0.3);
}

.poke-ball-large::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60px; height: 60px;
  background: var(--white);
  border-radius: 50%;
  border: 6px solid #222;
  box-shadow: 0 0 20px rgba(255,255,255,0.5);
  z-index: 2;
}

.poke-ball-large::after {
  content: '';
  position: absolute;
  top: calc(50% - 4px); left: -8px; right: -8px;
  height: 8px;
  background: #222;
  z-index: 1;
}

@keyframes floatBall {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(calc(-50% - 20px)); }
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-arrow {
  width: 24px; height: 24px;
  border-right: 2px solid var(--gray);
  border-bottom: 2px solid var(--gray);
  transform: rotate(45deg);
  animation: scrollBounce 1.5s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 1; }
  50% { transform: rotate(45deg) translateY(8px); opacity: 0.5; }
}

/* ===== SECTION COMMONS ===== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  background: rgba(246,224,94,0.1);
  border: 1px solid rgba(246,224,94,0.3);
  color: var(--yellow);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-pixel);
  font-size: clamp(20px, 4vw, 36px);
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.3;
}

.section-desc {
  color: var(--gray);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto;
}

/* ===== FEATURES ===== */
.features {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

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

.feature-card {
  background: var(--dark3);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  cursor: default;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.feature-card.type-fire::before { background: var(--fire); }
.feature-card.type-water::before { background: var(--water); }
.feature-card.type-grass::before { background: var(--grass); }
.feature-card.type-electric::before { background: var(--electric); }
.feature-card.type-psychic::before { background: var(--psychic); }
.feature-card.type-dark::before { background: #6b7280; }

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.12);
  box-shadow: var(--shadow);
}

.type-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.type-badge.fire { background: rgba(249,115,22,0.2); color: var(--fire); border: 1px solid var(--fire); }
.type-badge.water { background: rgba(59,130,246,0.2); color: var(--water); border: 1px solid var(--water); }
.type-badge.grass { background: rgba(34,197,94,0.2); color: var(--grass); border: 1px solid var(--grass); }
.type-badge.electric { background: rgba(234,179,8,0.2); color: var(--electric); border: 1px solid var(--electric); }
.type-badge.psychic { background: rgba(168,85,247,0.2); color: var(--psychic); border: 1px solid var(--psychic); }
.type-badge.dark { background: rgba(107,114,128,0.2); color: #9ca3af; border: 1px solid #4b5563; }

.feature-icon {
  font-size: 40px;
  margin-bottom: 16px;
  display: block;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.7;
}

/* ===== NEWS ===== */
.news {
  padding: 100px 0;
  background: var(--dark2);
  position: relative;
  z-index: 1;
}

.news-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 24px;
}

.news-card {
  background: var(--dark3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  transition: all var(--transition);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(246,224,94,0.2);
}

.news-img {
  height: 160px;
  background: var(--dark4);
  position: relative;
  overflow: hidden;
}

.news-card.featured .news-img { height: 220px; }

/* Zdjęcie uploadu */
.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              filter 0.5s ease;
  filter: brightness(0.88) saturate(1.1);
}

.news-card:hover .news-img img {
  transform: scale(1.07);
  filter: brightness(1) saturate(1.25);
}

/* Gradient overlay na dole zdjęcia */
.news-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    rgba(10, 14, 26, 0.7) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Shimmer na hover gdy jest zdjęcie */
.news-img.has-photo::after {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,0.08) 50%,
    transparent 100%
  );
  z-index: 2;
  transform: skewX(-20deg);
  transition: left 0s;
  pointer-events: none;
}

.news-card:hover .news-img.has-photo::after {
  left: 150%;
  transition: left 0.6s ease;
}

.news-img.patch {
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
}
.news-img.patch::after {
  content: '🔧';
  font-size: 60px;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.4;
}

.news-img.event {
  background: linear-gradient(135deg, #1a0a2e, #2d1b69, #4c1d95);
}
.news-img.event::after {
  content: '🥚';
  font-size: 60px;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.4;
}

.news-img.balance {
  background: linear-gradient(135deg, #0a1a0a, #14532d, #166534);
}
.news-img.balance::after {
  content: '⚖️';
  font-size: 60px;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.4;
}

.news-body { padding: 24px; }

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.news-tag {
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.news-tag.update { background: rgba(49,130,206,0.2); color: var(--blue); }
.news-tag.event { background: rgba(168,85,247,0.2); color: var(--psychic); }
.news-tag.fix { background: rgba(34,197,94,0.2); color: var(--grass); }

.news-date { color: var(--gray); font-size: 13px; }

.news-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.4;
}

.news-card p {
  color: var(--gray);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.news-link {
  color: var(--yellow);
  font-weight: 600;
  font-size: 14px;
  transition: color var(--transition);
}

.news-link:hover { color: var(--yellow-dark); }

/* ===== HOW TO PLAY ===== */
.howtoplay {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.step {
  background: var(--dark3);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.06);
  flex: 1;
  min-width: 220px;
  max-width: 280px;
  position: relative;
  transition: all var(--transition);
}

.step:hover {
  border-color: rgba(246,224,94,0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(246,224,94,0.1);
}

.step-number {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--yellow);
  opacity: 0.6;
  margin-bottom: 12px;
}

.step-icon { font-size: 44px; margin-bottom: 16px; }

.step h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.step p { color: var(--gray); font-size: 14px; line-height: 1.6; }

.step-arrow {
  font-size: 28px;
  color: var(--yellow);
  opacity: 0.5;
  flex-shrink: 0;
}

.starter-pick {
  text-align: center;
}

.starter-pick h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 32px;
}

.starters {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.starter {
  background: var(--dark3);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.starter:hover { transform: translateY(-8px) scale(1.05); }

.starter.fire-starter:hover { border-color: var(--fire); box-shadow: 0 8px 30px rgba(249,115,22,0.3); }
.starter.water-starter:hover { border-color: var(--water); box-shadow: 0 8px 30px rgba(59,130,246,0.3); }
.starter.grass-starter:hover { border-color: var(--grass); box-shadow: 0 8px 30px rgba(34,197,94,0.3); }

.starter-type {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.starter-type.fire { background: rgba(249,115,22,0.2); color: var(--fire); }
.starter-type.water { background: rgba(59,130,246,0.2); color: var(--water); }
.starter-type.grass { background: rgba(34,197,94,0.2); color: var(--grass); }

.starter-sprite { font-size: 48px; margin-bottom: 12px; }

.starter span {
  display: block;
  font-weight: 700;
  color: var(--white);
  font-size: 16px;
}

/* ===== RANKING ===== */
.ranking {
  padding: 100px 0;
  background: var(--dark2);
  position: relative;
  z-index: 1;
}

.ranking-table {
  background: var(--dark3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}

.ranking-header {
  display: grid;
  grid-template-columns: 60px 1fr 140px 80px 120px;
  padding: 14px 24px;
  background: rgba(255,255,255,0.05);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray);
}

.ranking-row {
  display: grid;
  grid-template-columns: 60px 1fr 140px 80px 120px;
  padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,0.04);
  align-items: center;
  transition: background var(--transition);
}

.ranking-row:hover { background: rgba(255,255,255,0.03); }

.ranking-row.gold { background: rgba(246,224,94,0.05); }
.ranking-row.silver { background: rgba(160,174,192,0.05); }
.ranking-row.bronze { background: rgba(180,83,9,0.05); }

.rank { font-size: 20px; }

.trainer-name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 15px;
}

.trainer-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--dark4);
  flex-shrink: 0;
}

.av1 { background: linear-gradient(135deg, #7c3aed, #4f46e5); }
.av2 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.av3 { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.av4 { background: linear-gradient(135deg, #92400e, #78716c); }
.av5 { background: linear-gradient(135deg, #9333ea, #ec4899); }

.pokemon-badge {
  background: rgba(246,224,94,0.1);
  border: 1px solid rgba(246,224,94,0.3);
  color: var(--yellow);
  padding: 3px 12px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  display: inline-block;
}

.level {
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--gray-light);
}

.points {
  font-weight: 700;
  color: var(--yellow);
}

/* Ranking loading state */
.ranking-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  color: var(--gray);
  gap: 16px;
}

.ranking-error {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  color: #fc8181;
  gap: 10px;
  font-size: 15px;
}

.poke-spinner {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--red) 50%, var(--white) 50%);
  border: 3px solid rgba(255,255,255,0.2);
  animation: spinBall 1s linear infinite;
  flex-shrink: 0;
}

.ranking-updated {
  font-size: 13px;
  color: var(--gray);
  margin-top: 4px;
  min-height: 20px;
}

.ranking-footer {
  text-align: center;
  margin-top: 32px;
}

.btn-outline {
  display: inline-block;
  border: 1px solid rgba(246,224,94,0.4);
  color: var(--yellow);
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  transition: all var(--transition);
}

.btn-outline:hover {
  background: rgba(246,224,94,0.1);
  border-color: var(--yellow);
}

/* ===== DOWNLOAD ===== */
.download {
  padding: 100px 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.download-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(229,62,62,0.15) 0%, transparent 70%),
    linear-gradient(180deg, var(--dark) 0%, var(--dark3) 50%, var(--dark) 100%);
}

.download-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 80px;
}

.download-text {
  flex: 1;
}

.download-text h2 {
  font-family: var(--font-pixel);
  font-size: clamp(20px, 3vw, 36px);
  color: var(--white);
  margin: 12px 0 20px;
  line-height: 1.4;
}

.download-text p {
  color: var(--gray);
  font-size: 17px;
  margin-bottom: 28px;
  line-height: 1.7;
}

.download-features {
  list-style: none;
  margin-bottom: 36px;
}

.download-features li {
  color: var(--gray-light);
  font-size: 15px;
  padding: 6px 0;
}

.download-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.btn-lg { padding: 18px 36px; font-size: 17px; }

.btn-register {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  padding: 18px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 17px;
  transition: all var(--transition);
}

.btn-register:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--yellow);
  color: var(--yellow);
}

.server-info {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gray);
  font-size: 14px;
}

.server-info code {
  background: var(--dark3);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 6px 14px;
  border-radius: 8px;
  font-family: monospace;
  color: var(--yellow);
  font-size: 15px;
}

.copy-btn {
  background: rgba(246,224,94,0.1);
  border: 1px solid rgba(246,224,94,0.3);
  color: var(--yellow);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-main);
}

.copy-btn:hover { background: rgba(246,224,94,0.2); }

.download-visual {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Pokeball animation */
.pokeball-anim {
  width: 200px; height: 200px;
  position: relative;
  animation: spinBall 4s linear infinite;
}

.pb-top {
  width: 200px; height: 100px;
  background: var(--red);
  border-radius: 100px 100px 0 0;
  position: absolute;
  top: 0;
  box-shadow: inset 0 -10px 20px rgba(0,0,0,0.3);
}

.pb-bot {
  width: 200px; height: 100px;
  background: var(--white);
  border-radius: 0 0 100px 100px;
  position: absolute;
  bottom: 0;
  box-shadow: inset 0 10px 20px rgba(0,0,0,0.1);
}

.pb-mid {
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 16px;
  background: #222;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.pb-btn {
  width: 48px; height: 48px;
  background: var(--white);
  border-radius: 50%;
  border: 6px solid #222;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.3);
  z-index: 3;
}

@keyframes spinBall {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== SERVER STATUS BAR ===== */
.server-status-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  padding: 12px 24px;
  backdrop-filter: blur(8px);
  width: fit-content;
  animation: fadeInUp 1s ease;
}

.status-dot-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gray);
  transition: background 0.4s ease;
  flex-shrink: 0;
}

.status-dot.online {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,0.25);
  animation: pulseDot 2s ease-in-out infinite;
}

.status-dot.offline {
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239,68,68,0.2);
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(34,197,94,0.25); }
  50% { box-shadow: 0 0 0 8px rgba(34,197,94,0.1); }
}

.status-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-light);
  transition: color 0.4s ease;
}

.status-label.online { color: #22c55e; }
.status-label.offline { color: #ef4444; }

.status-divider { width: 1px; height: 28px; background: rgba(255,255,255,0.12); }

.status-stat { text-align: center; }

.status-num {
  display: block;
  font-family: var(--font-pixel);
  font-size: 16px;
  color: var(--yellow);
  text-shadow: 0 0 16px rgba(246,224,94,0.4);
}

.status-sub {
  font-size: 11px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== SCREENSHOTS ===== */
.screenshots {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 200px 200px;
  gap: 16px;
}

.screenshots-grid .shot:first-child {
  grid-column: 1 / 3;
  grid-row: 1;
}

.screenshots-grid .shot:nth-child(4) {
  grid-column: 3;
  grid-row: 1 / 3;
}

.shot {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--dark3);
}

.shot-1 { background: linear-gradient(135deg, #1a0a0a, #7f1d1d, #991b1b); }
.shot-2 { background: linear-gradient(135deg, #0a1a2e, #1e3a5f, #1d4ed8); }
.shot-3 { background: linear-gradient(135deg, #0a1a0a, #14532d, #15803d); }
.shot-4 { background: linear-gradient(135deg, #1a0a1a, #4c1d95, #7e22ce); }
.shot-5 { background: linear-gradient(135deg, #1a1a0a, #713f12, #92400e); }
.shot-6 { background: linear-gradient(135deg, #0a1a1a, #134e4a, #0d9488); }

/* Zdjęcie z galerii DB */
.shot.shot-photo {
  background: var(--dark3);
}
.shot.shot-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94),
              filter 0.5s ease;
  filter: brightness(0.85) saturate(1.1);
}
.shot.shot-photo:hover img {
  transform: scale(1.06);
  filter: brightness(1) saturate(1.3);
}

.shot::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  transition: background var(--transition);
}

.shot:hover::before { background: rgba(0,0,0,0.1); }

.shot-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity var(--transition);
}

.shot:hover .shot-overlay { opacity: 1; }

.shot-overlay span {
  background: rgba(0,0,0,0.7);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

/* Screenshot placeholder icons */
.shot-1::after { content: '⚔️'; }
.shot-2::after { content: '🗺️'; }
.shot-3::after { content: '🔴'; }
.shot-4::after { content: '👾'; }
.shot-5::after { content: '🏙️'; }
.shot-6::after { content: '🎉'; }

.shot::after {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 52px;
  opacity: 0.25;
  pointer-events: none;
  transition: opacity var(--transition);
}

.shot:hover::after { opacity: 0.15; }

/* ===== FAQ ===== */
.faq {
  padding: 100px 0;
  background: var(--dark2);
  position: relative;
  z-index: 1;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--dark3);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.open {
  border-color: rgba(246,224,94,0.3);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color var(--transition);
  gap: 16px;
}

.faq-question:hover { color: var(--yellow); }

.faq-item.open .faq-question { color: var(--yellow); }

.faq-icon {
  font-size: 22px;
  font-weight: 300;
  color: var(--gray);
  flex-shrink: 0;
  transition: transform var(--transition), color var(--transition);
  line-height: 1;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--yellow);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding: 0 24px 20px;
}

.faq-answer p {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.7;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 16px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark2);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 64px 0 0;
  position: relative;
  z-index: 1;
}

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

.footer-brand p {
  color: var(--gray);
  font-size: 14px;
  line-height: 1.7;
  margin: 16px 0 24px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-btn {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.social-btn.discord {
  background: rgba(88,101,242,0.15);
  border-color: rgba(88,101,242,0.4);
  color: #818cf8;
}
.social-btn.discord:hover {
  background: rgba(88,101,242,0.25);
}

.social-btn.facebook {
  background: rgba(24,119,242,0.15);
  border-color: rgba(24,119,242,0.4);
  color: #60a5fa;
}
.social-btn.facebook:hover { background: rgba(24,119,242,0.25); }

.social-btn.youtube {
  background: rgba(255,0,0,0.15);
  border-color: rgba(255,0,0,0.3);
  color: #f87171;
}
.social-btn.youtube:hover { background: rgba(255,0,0,0.25); }

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  color: var(--gray);
  font-size: 14px;
  transition: color var(--transition);
}

.footer-col ul a:hover { color: var(--yellow); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p {
  color: var(--gray);
  font-size: 13px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .server-status-bar {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 10px 16px;
    width: 100%;
  }
  .screenshots-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 160px);
  }
  .screenshots-grid .shot:first-child,
  .screenshots-grid .shot:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 1024px) {
  .hero-content { padding-left: 40px; }
  .hero-pokemon { right: 40px; }
  .poke-ball-large { width: 200px; height: 200px; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-card.featured { grid-column: 1 / -1; }
}

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

  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    padding: 100px 24px 60px;
    max-width: 100%;
  }

  .hero-pokemon { display: none; }

  .hero-stats { justify-content: center; }

  .hero-buttons { justify-content: center; }

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

  .news-grid { grid-template-columns: 1fr; }
  .news-card.featured { grid-column: auto; }

  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }

  .download-content { flex-direction: column; }
  .download-visual { order: -1; }
  .pokeball-anim { width: 140px; height: 140px; }
  .pb-top, .pb-bot { width: 140px; height: 70px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .ranking-header,
  .ranking-row { grid-template-columns: 40px 1fr 80px; }
  .ranking-header span:nth-child(3),
  .ranking-header span:nth-child(4),
  .ranking-row .pokemon-badge,
  .ranking-row .level { display: none; }

  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .social-links { flex-wrap: wrap; }
  .download-buttons { flex-direction: column; }
  .btn-lg { width: 100%; justify-content: center; }
  .btn-register { justify-content: center; }
}
