/* style.css */
/* =========================================================
   Planet Qaintai – Global Stylesheet (Production Version)
   Updated: Mobile navigation fixed for correct button order
   ========================================================= */

:root {
  --accent-gold: #d4af37;
  --accent: #00ff88;
  --text: #e9e9e9;
  --bg: #000;
  --glass: rgba(0, 0, 0, 0.45);
  --glass-strong: rgba(0, 0, 0, 0.6);
  --line: rgba(255, 255, 255, 0.12);
  --panel: rgba(26, 26, 26, 0.85);
  --shadow: rgba(0, 0, 0, 0.5);
  --muted: #999;
  --ink: #e9e9e9;
}

* {
  box-sizing: border-box;
}
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

/* =========================================================
   PAGE BACKGROUNDS
   ========================================================= */
body.page-planet {
  background: url('/media/img/planet.png') no-repeat center center fixed;
  background-size: contain;
}
body.page-f1elds {
  background: url('/media/img/f1elds.png') no-repeat center center fixed;
  background-size: cover;
}
body.page-be1ng {
  background: url('/media/img/be1ng.png') no-repeat center center fixed;
  background-size: cover;
}
body.page-parad1ze {
  background: url('/media/img/parad1ze.png') no-repeat center center fixed;
  background-size: cover;
}
body.page-enemy {
  background: url('/uaip/enemy_bg.png') center center no-repeat fixed;
  background-size: cover;
}

/* =========================================================
   POPUPS, NAVIGATION, PANEL BASES
   ========================================================= */
#cookie-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  cursor: pointer;
  backdrop-filter: blur(10px);
}
#cookie-popup h2 {
  font-size: 2.5em;
  color: var(--accent);
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
  margin-bottom: 20px;
  text-align: center;
  animation: fadeIn 1s ease-in;
}
#cookie-popup p {
  font-size: 1.2em;
  color: var(--accent-gold);
  text-align: center;
  max-width: 600px;
  margin-bottom: 30px;
  line-height: 1.6;
}
#cookie-popup h3 {
  font-size: 2em;
  color: var(--accent-gold);
  text-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
  animation: blink 1.5s infinite;
}
#cookie-popup.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease-out;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--line);
}
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
  align-items: center;
}
nav a.button {
  display: inline-block;
  padding: 0.5em 1em;
  border: 2px solid var(--accent);
  border-radius: 10px;
  color: var(--accent);
  text-decoration: none;
  font-weight: bold;
  background: rgba(0, 0, 0, 0.3);
  transition: background 0.3s, color 0.3s;
}
nav a.button:hover { background: var(--accent); color: #000; }

.panel {
  position: relative;
  margin: 160px auto 140px auto;
  max-width: 800px;
  width: min(92vw, 800px);
  padding: 2rem;
  background: var(--glass);
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  text-align: center;
}
.panel h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--accent);
  margin-bottom: 0.2em;
}
.panel h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--accent-gold);
  margin-bottom: 1em;
}

/* =========================================================
   F1ELDS OVERLAY + ZONE NAV
   ========================================================= */
.fields-overlay {
  position: relative;
  left: 2rem;
  bottom: 5rem;
  max-width: 500px;
  width: min(90vw, 500px);
  padding: 1.5rem;
  background: var(--glass-strong);
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  text-align: left;
}
.fields-overlay h2 {
  font-size: 1.8rem;
  color: var(--accent);
  margin-top: 0;
  margin-bottom: 0.8rem;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}
.zone-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}
.zone-nav a {
  display: inline-block;
  padding: 0.4em 0.8em;
  border: 2px solid var(--accent-gold);
  border-radius: 8px;
  color: var(--accent-gold);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: bold;
  background: rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease, color 0.3s ease;
}
.zone-nav a:hover { background: var(--accent-gold); color: #000; }

/* =========================================================
   ENEMY PAGE (U.A.I.P.)
   ========================================================= */
.enemy-panel {
  max-width: 860px;
  margin: 140px auto 120px auto;
  padding: 2rem;
  background: var(--glass);
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 0 40px rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  line-height: 1.7;
}
.enemy-panel h1 {
  color: var(--accent);
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  text-align: center;
  margin-bottom: 0.6em;
  text-shadow: 0 0 15px rgba(0,255,136,0.25);
}
.enemy-panel h2 {
  color: var(--accent-gold);
  font-size: clamp(1.2rem, 2.3vw, 1.5rem);
  margin-top: 1.6em;
  margin-bottom: 0.5em;
  text-shadow: 0 0 10px rgba(212,175,55,0.35);
}
.enemy-panel p {
  color: var(--text);
  font-size: 1.05em;
  text-align: justify;
  margin-bottom: 1em;
}

/* =========================================================
   MOBILE NAVIGATION
   ========================================================= */
@media (max-width: 768px) {
  /* Fields overlay mobiel aanpassingen */
  .fields-overlay {
    left: 1rem;
    bottom: 4rem;
    max-width: calc(100vw - 2rem);
  }

  /* Zone-nav mobiel */
  .zone-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .zone-nav {
    width: 100%;
  }
  .zone-nav a {
    flex: 1;
    text-align: center;
    min-width: 100px;
  }

  /* Navigation basis mobiel */
  nav {
    padding: 1rem;
    justify-content: center;
  }
  nav ul {
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  nav a.button {
    padding: 0.4em 0.8em;
    font-size: 0.9rem;
  }

  /* F1ELDS/BE1NG/PARAD1ZE: Music en Contact verdwijnen */
  body.page-f1elds nav ul li:nth-child(4),
  body.page-f1elds nav ul li:nth-child(5),
  body.page-be1ng nav ul li:nth-child(4),
  body.page-be1ng nav ul li:nth-child(5),
  body.page-parad1ze nav ul li:nth-child(4),
  body.page-parad1ze nav ul li:nth-child(5) {
    display: none;
  }

  /* Panel margins mobiel */
  .panel,
  .enemy-panel {
    margin: 100px auto;
    padding: 1.5rem;
  }
}

/* style.css END */