/* ================================================================
   ZEDTERNAL UNLIMITED — Shared Site Theme
   Dark cyberpunk/horror aesthetic matching the configurator
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Share+Tech+Mono&family=Orbitron:wght@400;500;600;700;800&family=Exo+2:wght@300;400;500;600;700;800&display=swap');

/* ---- CSS Variables ---- */
:root {
  --bg-dark: #0a0a0f;
  --bg-panel: #12131a;
  --bg-card: #1a1b26;
  --bg-card-hover: #22243a;
  --bg-input: #0f1018;
  --border: #2a2b3a;
  --border-hover: #3a3b5a;
  --text: #e0e0e0;
  --text-dim: #888;
  --text-muted: #555;
  --accent: #e53935;
  --accent-glow: rgba(229, 57, 53, 0.3);
  --accent-secondary: #ff6f61;
  --gold: #ffd700;
  --blue: #4fc3f7;
  --green: #66bb6a;
  --purple: #ab47bc;
  --orange: #ff9800;
  --cyan: #00e5ff;
  --font-display: 'Orbitron', sans-serif;
  --font-heading: 'Rajdhani', sans-serif;
  --font-body: 'Exo 2', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
  --nav-height: 60px;
  --max-width: 1400px;
  --radius: 8px;
  --radius-lg: 12px;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #2a2b3a #0a0a0f;
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #2a2b3a; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3a3b5a; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-secondary); }

img { max-width: 100%; display: block; }

/* ---- Background Atmosphere ---- */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(229, 57, 53, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(79, 195, 247, 0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ---- Navigation ---- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 24px;
}

.nav-inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 32px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  text-shadow: 0 0 20px var(--accent-glow);
}

.nav-logo span {
  color: var(--text-dim);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  border-radius: var(--radius);
  transition: all 0.2s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 14px; right: 14px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  margin-left: auto;
  padding: 8px;
}

/* ---- Main Content ---- */
.site-main {
  position: relative;
  z-index: 1;
  padding-top: var(--nav-height);
  min-height: 100vh;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Hero Section ---- */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-title .accent { color: var(--accent); }
.hero-title .dim { color: var(--text-dim); font-weight: 400; }

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 1px;
  max-width: 700px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  margin-top: 20px;
  padding: 6px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.7;
}

/* ---- Section Headers ---- */
.section-header {
  padding: 48px 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
}

.section-header .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

.section-header .count {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
}

/* ---- Search & Filter Bar ---- */
.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  align-items: center;
}

.search-input {
  flex: 1;
  min-width: 200px;
  padding: 10px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

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

.filter-btn {
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-dim);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover { border-color: var(--border-hover); color: var(--text); }
.filter-btn.active { border-color: var(--accent); color: var(--accent); background: rgba(229, 57, 53, 0.1); }

/* ---- Package Badges ---- */
.badge {
  display: inline-block;
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 4px;
}

.badge-dk { background: rgba(229, 57, 53, 0.2); color: #ff6b6b; border: 1px solid rgba(229, 57, 53, 0.3); }
.badge-zr { background: rgba(79, 195, 247, 0.2); color: #4fc3f7; border: 1px solid rgba(79, 195, 247, 0.3); }
.badge-psy { background: rgba(171, 71, 188, 0.2); color: #ce93d8; border: 1px solid rgba(171, 71, 188, 0.3); }
.badge-howdy { background: rgba(255, 183, 77, 0.2); color: #ffb74d; border: 1px solid rgba(255, 183, 77, 0.3); }

/* ---- Card Grid ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  padding-bottom: 48px;
}

/* ---- Perk Card ---- */
.perk-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.perk-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.perk-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
}

.perk-icon {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.perk-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: auto;
}

.perk-icon-placeholder {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-muted);
}

.perk-info { flex: 1; min-width: 0; }

.perk-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text);
  line-height: 1.2;
}

.perk-tagline {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.perk-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.perk-rank-info {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

/* ---- Perk Card Expand/Detail ---- */
.perk-card-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  border-top: 0px solid transparent;
}

.perk-card.expanded .perk-card-detail {
  max-height: 2000px;
  border-top: 1px solid var(--border);
}

.perk-card.expanded {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow), 0 8px 32px rgba(0, 0, 0, 0.4);
}

.perk-detail-inner {
  padding: 20px;
}

.perk-desc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.perk-desc-item {
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius);
  border-left: 3px solid var(--border);
  font-size: 13px;
  line-height: 1.5;
}

.perk-desc-item.level-10 { border-left-color: var(--gold); }
.perk-desc-item.level-20 { border-left-color: var(--accent); }

.perk-bonuses {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.perk-bonus-chip {
  padding: 8px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

.perk-bonus-chip .val {
  color: var(--green);
  font-weight: 700;
}

/* ---- Stat Tags ---- */
.stat-tag {
  display: inline-block;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---- Landing Page Feature Cards ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 24px 0 60px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all 0.25s ease;
  text-decoration: none;
  color: var(--text);
  display: block;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  color: var(--text);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.25s;
}

.feature-card:hover::before { opacity: 1; }

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

.feature-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
}

.feature-stat {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  background: rgba(229, 57, 53, 0.1);
  border: 1px solid rgba(229, 57, 53, 0.2);
  border-radius: 4px;
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-text {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links a:hover { color: var(--accent); }

/* ---- Utility ---- */
.text-accent { color: var(--accent); }
.text-dim { color: var(--text-dim); }
.text-gold { color: var(--gold); }
.text-blue { color: var(--blue); }
.text-green { color: var(--green); }
.text-mono { font-family: var(--font-mono); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }

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

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 15px var(--accent-glow); }
  50% { box-shadow: 0 0 30px var(--accent-glow); }
}

.fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

.fade-in-up:nth-child(1) { animation-delay: 0.05s; }
.fade-in-up:nth-child(2) { animation-delay: 0.1s; }
.fade-in-up:nth-child(3) { animation-delay: 0.15s; }
.fade-in-up:nth-child(4) { animation-delay: 0.2s; }
.fade-in-up:nth-child(5) { animation-delay: 0.25s; }
.fade-in-up:nth-child(6) { animation-delay: 0.3s; }

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

.no-results .icon { font-size: 48px; margin-bottom: 12px; display: block; }

/* ---- Steam Button ---- */
.btn-steam {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #1b2838, #2a475e);
  border: 1px solid #3a5a7a;
  border-radius: var(--radius);
  color: #c6d4df;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s;
}

.btn-steam:hover {
  background: linear-gradient(135deg, #2a475e, #3a6a8e);
  color: #fff;
  border-color: #5a8aaa;
  transform: translateY(-1px);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(10, 10, 15, 0.98);
    padding: 8px;
    border-bottom: 1px solid var(--border);
  }
  .nav-hamburger { display: block; }
  .hero { padding: 48px 0 40px; }
  .card-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .perk-card-header { padding: 12px 16px; }
  .perk-icon { width: 48px; height: 48px; }
  .perk-name { font-size: 16px; }
}
