/*
Theme Name: ErangelZ Community
Theme URI: https://erangelz.example
Author: ErangelZ Community
Description: Dark tactical WordPress theme for the ErangelZ custom DayZ map project and The BadlanderZ PVP server. Includes a map-project front page (emerald) and a server page template (amber), with Customizer controls for the server IP, community links and key copy.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: erangelz
Tags: dark, gaming, one-column, custom-colors, full-width-template
*/

:root {
  --radius: 0.375rem;
  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-display: "Oswald", system-ui, sans-serif;
  --background: oklch(0.105 0.012 255);
  --foreground: oklch(0.96 0.008 150);
  --primary: oklch(0.72 0.19 153);
  --primary-foreground: oklch(0.1 0.02 155);
  --primary-glow: oklch(0.72 0.19 153 / 35%);
  --secondary: oklch(0.2 0.018 250);
  --muted-foreground: oklch(0.67 0.02 240);
  --border: oklch(1 0 0 / 10%);
  --border-strong: oklch(1 0 0 / 18%);
  --surface-glass: oklch(0.15 0.014 250 / 78%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--background); }
body { margin: 0; font-family: var(--font-sans); background: var(--background); color: var(--foreground); }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
svg { flex: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding: 0 22px; border-radius: var(--radius); font: 700 12px var(--font-sans); letter-spacing: .1em; text-transform: uppercase; transition: transform .2s, background .2s, box-shadow .2s, border-color .2s; }
.btn svg { width: 17px; height: 17px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 13px; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 11px; }
.btn-tactical { background: var(--primary); color: var(--primary-foreground); box-shadow: 0 0 0 var(--primary-glow); }
.btn-tactical:hover { box-shadow: 0 0 28px var(--primary-glow); transform: translateY(-1px); }
.btn-outline { border: 1px solid var(--border-strong); color: var(--foreground); background: color-mix(in oklab, var(--background) 55%, transparent); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-block { width: 100%; }

.site-shell { min-height: 100vh; overflow-x: clip; overflow-y: visible; background: var(--background); color: var(--foreground); }
.theme-badlands { --primary: oklch(0.76 0.17 71); --primary-foreground: oklch(0.12 0.025 55); --primary-glow: oklch(0.76 0.17 71 / 35%); }
.section-wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header { 
  position: fixed; 
  z-index: 50; 
  top: 0; 
  left: 0; 
  right: 0; 
  padding: 18px 20px; 
  background: transparent; 
  border-bottom: 0; 
  backdrop-filter: none; 
}
.theme-badlands .nav-inner { 
  background: color-mix(in oklab, var(--background) 66%, transparent); 
  border: 1px solid var(--border); 
  box-shadow: 0 16px 50px oklch(0 0 0 / 25%); 
  backdrop-filter: blur(16px); 
}
.nav-inner,
.theme-badlands .nav-inner {
  width: min(1240px, 100%);
  height: 58px;
  margin: auto;
  padding: 0 12px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: var(--radius);
  background: rgba(13, 15, 20, 0.88) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5) !important;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.brand img { width: 34px; height: 34px; filter: drop-shadow(0 0 10px var(--primary-glow)); }
.brand span span, h1 span { color: var(--primary); }

/* Dedytkowane, stale kolory logotypow w headerze */
.brand.brand-erangelz span span { color: oklch(0.72 0.19 153) !important; }
.brand.brand-erangelz img { filter: drop-shadow(0 0 10px oklch(0.72 0.19 153 / 35%)) !important; }
.brand.brand-badlanderz span span { color: oklch(0.76 0.17 71) !important; }
.brand.brand-badlanderz img { filter: drop-shadow(0 0 10px oklch(0.76 0.17 71 / 35%)) !important; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links > a { color: var(--muted-foreground); font-size: 12px; font-weight: 700; text-transform: uppercase; transition: color .2s; }
.nav-links > a:hover { color: var(--primary); }
.menu-button { display: none; width: 40px; height: 40px; place-items: center; border: 1px solid var(--border); border-radius: var(--radius); }
.menu-button svg { width: 20px; height: 20px; }
.home-hero, .badlands-hero { position: relative; min-height: 760px; height: 96vh; max-height: 980px; display: flex; align-items: center; isolation: isolate; }
.hero-media, .hero-shade, .tactical-grid { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { object-fit: cover; z-index: -3; }
.hero-shade { z-index: -2; background: linear-gradient(90deg, oklch(0.08 0.01 250 / 94%) 0%, oklch(0.08 0.01 250 / 64%) 49%, oklch(0.08 0.01 250 / 15%) 78%), linear-gradient(0deg, var(--background) 0%, transparent 30%); }
.tactical-grid { z-index: -1; opacity: .16; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(to bottom, transparent, black 25%, transparent 90%); }
.hero-content { width: min(1180px, calc(100% - 40px)); margin: auto; padding-top: 74px; }
.home-layout { display: grid; grid-template-columns: 1fr .72fr; align-items: center; gap: 80px; }
.home-copy { max-width: 690px; }
.eyebrow, .section-kicker { display: flex; align-items: center; gap: 9px; color: var(--primary); font: 600 11px/1.4 var(--font-sans); text-transform: uppercase; letter-spacing: .12em; }
.eyebrow b { color: var(--muted-foreground); }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 14px var(--primary); animation: status-pulse 2s infinite; }
h1, h2, h3 { font-family: var(--font-display); text-transform: uppercase; }
.home-copy h1, .badlands-copy h1 { margin: 18px 0; font-size: clamp(84px, 11vw, 166px); line-height: .82; font-weight: 600; }
.home-copy p, .badlands-copy > p { max-width: 650px; color: oklch(0.87 0.015 160); font-size: clamp(17px, 1.8vw, 22px); line-height: 1.65; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 34px; }
.text-link { display: flex; gap: 10px; color: var(--foreground); font-size: 13px; font-weight: 700; text-transform: uppercase; }
.text-link span { color: var(--primary); }
.emblem-wrap { position: relative; display: grid; place-items: center; }
.emblem-wrap img { position: relative; width: min(30vw, 360px); height: auto; filter: drop-shadow(0 0 35px var(--primary-glow)); }
.emblem-glow { position: absolute; width: 68%; aspect-ratio: 1; border-radius: 50%; background: var(--primary-glow); filter: blur(70px); opacity: .7; }
.hero-coordinate { position: absolute; right: 28px; bottom: 36px; display: flex; align-items: center; gap: 10px; color: var(--muted-foreground); font: 600 10px var(--font-sans); letter-spacing: .12em; transform: rotate(-90deg); transform-origin: right; }
.hero-coordinate span { width: 30px; height: 1px; background: var(--primary); }
.intel-band { padding: 110px 0; background: var(--background); }
.intel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; }
.intel-grid h2, .section-heading h2, .gallery-layout h2, .rules-layout h2 { margin: 14px 0 0; font-size: clamp(42px, 6vw, 72px); line-height: .98; font-weight: 600; }
.intel-list article { display: grid; grid-template-columns: 34px 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid var(--border); }
.intel-list svg { width: 26px; height: 26px; color: var(--primary); }
.intel-list strong { font-size: 15px; text-transform: uppercase; }
.intel-list p, .server-callout p, .section-heading p, .gallery-layout p, .rules-layout > div > p { margin: 7px 0 0; color: var(--muted-foreground); font-size: 14px; line-height: 1.7; }
.server-callout { padding: 64px 0; background: var(--secondary); border-block: 1px solid var(--border); }
.server-callout-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.server-callout h2 { margin: 8px 0 0; font-size: 42px; }
.site-footer { border-top: 1px solid var(--border); background: oklch(0.08 0.01 250); }
.footer-main { min-height: 140px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 44px; height: 44px; filter: saturate(.8); }
.footer-brand strong, .footer-brand span { display: block; }
.footer-brand strong { font-family: var(--font-display); font-size: 18px; }
.footer-brand span, .footer-legal { color: var(--muted-foreground); font-size: 11px; }
.footer-links { display: flex; gap: 28px; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.footer-links a:hover { color: var(--primary); }
.footer-legal { padding: 20px 0; display: flex; justify-content: space-between; border-top: 1px solid var(--border); }
.badlands-hero { min-height: 820px; height: 100vh; }
.badlands-hero .hero-shade { background: linear-gradient(90deg, oklch(0.08 0.01 250 / 92%) 0%, oklch(0.08 0.01 250 / 60%) 52%, transparent 78%), linear-gradient(0deg, var(--background) 0%, transparent 35%); }
.badlands-copy { padding-top: 80px; }
.badlands-copy h1 { font-size: clamp(76px, 10vw, 144px); }
.badlands-copy h1 span { color: var(--primary); }
.server-dock { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); min-height: 92px; padding: 18px 28px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 28px; border: 1px solid var(--border-strong); border-left: 3px solid var(--primary); border-radius: var(--radius); background: color-mix(in oklab, var(--background) 78%, transparent); backdrop-filter: blur(16px); }
.dock-status, .dock-address { display: flex; align-items: center; gap: 14px; }
.dock-status small, .dock-status strong, .dock-address small, .dock-address strong { display: block; }
.dock-status small, .dock-address small { margin-bottom: 5px; color: var(--muted-foreground); font-size: 9px; letter-spacing: .14em; }
.dock-status strong, .dock-address strong, .launcher-link { font: 600 13px var(--font-display); letter-spacing: .06em; }
.dock-status i { color: var(--primary); font-style: normal; }
.dock-address { padding-left: 24px; padding-right: 0; border-left: 1px solid var(--border); border-right: none; }
.dock-address button { color: var(--primary); }
.dock-address button svg { width: 18px; height: 18px; }
.launcher-link { display: flex; gap: 8px; color: var(--primary); }
.content-section { padding: 110px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 52px; }
.section-heading p { max-width: 410px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-left: 1px solid var(--border); border-top: 1px solid var(--border); }
.feature-grid article { position: relative; min-height: 250px; padding: 34px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); transition: background .25s, border-color .25s; }
.feature-grid article:hover { background: var(--surface-glass); border-color: color-mix(in oklab, var(--primary) 40%, transparent); }
.feature-grid svg { width: 30px; height: 30px; color: var(--primary); }
.feature-index { position: absolute; top: 22px; right: 24px; color: var(--muted-foreground); font: 500 11px var(--font-display); }
.feature-grid h3 { margin: 46px 0 10px; font-size: 23px; }
.feature-grid p { color: var(--muted-foreground); font-size: 13px; line-height: 1.65; }
.gallery-section { padding: 60px 0 110px; }
.gallery-layout { display: grid; grid-template-columns: 1.45fr .65fr; align-items: center; gap: 64px; }
.gallery-image { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); text-align: left; padding: 0; }
.gallery-image img { display: block; width: 100%; aspect-ratio: 16/8.8; object-fit: cover; transition: transform .5s; }
.gallery-image:hover img { transform: scale(1.025); }
.gallery-image span { position: absolute; left: 20px; bottom: 18px; display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--background); color: var(--primary); font-size: 10px; font-weight: 700; }
.gallery-image span svg { width: 14px; height: 14px; }
.connect-section { background: var(--secondary); border-block: 1px solid var(--border); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); }
.steps li { display: flex; gap: 20px; padding: 30px; border-left: 1px solid var(--border); }
.steps li:last-child { border-right: 1px solid var(--border); }
.steps > li > span { color: var(--primary); font: 600 27px var(--font-display); }
.steps strong { font-family: var(--font-display); font-size: 22px; text-transform: uppercase; }
.steps p { margin-top: 6px; color: var(--muted-foreground); font-size: 13px; line-height: 1.6; }
.rules-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 100px; }
.rules-accordion { border-top: 1px solid var(--border); }
.rules-accordion .rule-item { border-bottom: 1px solid var(--border); }
.rules-accordion .rule-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 20px; font: 500 20px var(--font-display); text-transform: uppercase; text-align: left; transition: color .2s; }
.rules-accordion .rule-trigger b { margin-right: 20px; color: var(--primary); font-size: 11px; }
.rules-accordion .rule-trigger svg { width: 18px; height: 18px; transition: transform .25s; }
.rules-accordion .rule-trigger[aria-expanded="true"] { color: var(--primary); }
.rules-accordion .rule-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.rules-accordion .rule-panel { display: none; padding-bottom: 22px; max-width: 720px; color: var(--muted-foreground); font-size: 14px; line-height: 1.7; }
.rules-accordion .rule-panel.is-open { display: block; }
.support-section { background: var(--secondary); border-top: 1px solid var(--border); }
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tier-grid article { padding: 30px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-glass); backdrop-filter: blur(10px); }
.tier-grid .tier-featured { border-color: color-mix(in oklab, var(--primary) 60%, transparent); box-shadow: 0 0 35px var(--primary-glow); }
.tier-top { display: flex; justify-content: space-between; color: var(--primary); font: 600 12px var(--font-display); text-transform: uppercase; }
.tier-top small { color: var(--muted-foreground); }
.tier-grid h3 { margin: 38px 0 24px; font-size: 28px; }
.tier-grid ul { min-height: 140px; margin-bottom: 22px; border-top: 1px solid var(--border); padding-top: 20px; }
.tier-grid li { display: flex; gap: 10px; margin: 13px 0; color: var(--muted-foreground); font-size: 13px; }
.tier-grid li svg { width: 15px; height: 15px; color: var(--primary); }
.ticket-note { margin-top: 18px; padding: 22px 24px; display: flex; align-items: center; gap: 18px; border: 1px solid var(--border); background: var(--background); }
.ticket-note > svg { width: 22px; height: 22px; color: var(--primary); }
.ticket-note p { flex: 1; color: var(--muted-foreground); font-size: 12px; }
.ticket-note strong { display: block; margin-bottom: 3px; color: var(--foreground); text-transform: uppercase; }
.gallery-modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 4vw; background: oklch(0.03 0.005 250 / 92%); backdrop-filter: blur(14px); animation: fade-in .2s ease-out; }
.gallery-modal[hidden] { display: none; }
.gallery-modal img { width: min(1400px, 100%); max-height: 86vh; object-fit: contain; border: 1px solid var(--border-strong); }
.gallery-modal .gallery-close { position: absolute; top: 24px; right: 24px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--border-strong); background: var(--background); }

/* Toast */
.ez-toasts { position: fixed; z-index: 200; right: 20px; bottom: 20px; display: grid; gap: 10px; }
.ez-toast { min-width: 240px; padding: 14px 18px; border: 1px solid var(--border-strong); border-left: 3px solid var(--primary); border-radius: var(--radius); background: color-mix(in oklab, var(--background) 92%, transparent); backdrop-filter: blur(14px); box-shadow: 0 18px 50px oklch(0 0 0 / 45%); animation: fade-in .2s ease-out; }
.ez-toast strong { display: block; font: 600 13px var(--font-display); text-transform: uppercase; }
.ez-toast span { color: var(--muted-foreground); font-size: 12px; }

/* Default WP content pages */
.page-content { padding: 170px 0 110px; }
.page-content h1 { font-size: clamp(40px, 6vw, 68px); margin-bottom: 24px; }
.page-content .entry, .page-content .entry p { color: var(--muted-foreground); font-size: 15px; line-height: 1.8; }
.page-content .entry p { margin-bottom: 16px; }
.page-content a { color: var(--primary); }

@keyframes status-pulse { 0%, 100% { opacity: 1; box-shadow: 0 0 5px var(--primary); } 50% { opacity: .55; box-shadow: 0 0 18px var(--primary); } }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .site-header, .theme-badlands .site-header { padding: 10px; }
  .nav-inner { height: 54px; }
  .menu-button { display: grid; }
  .nav-links { position: absolute; top: 66px; left: 10px; right: 10px; padding: 24px; display: none; align-items: stretch; flex-direction: column; border: 1px solid var(--border); background: var(--background); }
  .nav-links.is-open { display: flex; }
  .home-layout, .intel-grid, .gallery-layout, .rules-layout { grid-template-columns: 1fr; gap: 50px; }
  .emblem-wrap { position: absolute; right: 4%; opacity: .2; }
  .emblem-wrap img { width: 45vw; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .server-dock { grid-template-columns: 1fr auto; }
  .dock-address { display: none; }
  .section-heading { align-items: start; flex-direction: column; }
}
@media (max-width: 620px) {
  .section-wrap, .hero-content { width: min(100% - 28px, 1180px); }
  .home-hero, .badlands-hero { min-height: 720px; height: 100svh; }
  .home-copy h1, .badlands-copy h1 { font-size: clamp(64px, 22vw, 100px); }
  .home-copy p, .badlands-copy > p { font-size: 16px; }
  .eyebrow { max-width: 320px; flex-wrap: wrap; }
  .feature-grid, .steps, .tier-grid { grid-template-columns: 1fr; }
  .feature-grid article { min-height: 220px; }
  .steps li, .steps li:last-child { border: 0; border-top: 1px solid var(--border); padding-inline: 0; }
  .server-dock { bottom: 14px; padding: 14px; gap: 10px; }
  .dock-status strong { font-size: 11px; }
  .launcher-link { font-size: 0; }
  .launcher-link svg { width: 22px; height: 22px; }
  .content-section, .intel-band { padding: 80px 0; }
  .gallery-section { padding: 20px 0 80px; }
  .server-callout-inner, .footer-main, .footer-legal, .ticket-note { align-items: flex-start; flex-direction: column; }
  .footer-main { padding-block: 40px; }
  .footer-links { flex-wrap: wrap; gap: 18px; }
  .ez-toasts { right: 14px; left: 14px; bottom: 14px; }
  .hero-coordinate { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }