/*
Theme Name: Proč (ne)jádro
Theme URI: https://example.com/proc-nejadro
Author: Matej
Description: Vícestránková edukační kampaň převedená do WordPress šablony.
Version: 1.0.0
Text Domain: proc-nejadro
*/

:root {
  --bg: #0e1217;
  --bg-soft: #171d24;
  --card: rgba(15, 22, 30, 0.78);
  --line: rgba(255, 255, 255, 0.14);
  --text: #f3f4ea;
  --muted: #a6b0b9;
  --pro: #27d17f;
  --con: #ff725c;
  --accent: #ffd166;
  --accent-2: #5ad4d6;
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 209, 102, 0.12), transparent 38%),
    radial-gradient(circle at 85% 18%, rgba(90, 212, 214, 0.12), transparent 42%),
    linear-gradient(145deg, #0a0e12 0%, #111720 45%, #0b1015 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
}

.cursor-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 209, 102, 0.18), transparent 62%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.25s;
}

body.glow-ready .cursor-glow {
  opacity: 1;
}

.bg-orbit {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
  z-index: -2;
  animation: drift 16s ease-in-out infinite alternate;
}

.bg-orbit--one {
  width: 340px;
  height: 340px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(90, 212, 214, 0.36), transparent 70%);
}

.bg-orbit--two {
  width: 440px;
  height: 440px;
  bottom: -180px;
  left: -130px;
  background: radial-gradient(circle, rgba(255, 114, 92, 0.24), transparent 72%);
  animation-duration: 20s;
}

@keyframes drift {
  from {
    transform: translateY(0) translateX(0) scale(1);
  }
  to {
    transform: translateY(18px) translateX(-12px) scale(1.08);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 24px;
  background: rgba(10, 15, 21, 0.82);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  text-decoration: none;
  color: var(--text);
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.05em;
  font-size: 1.75rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: 0.25s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
  border-color: rgba(255, 209, 102, 0.4);
  background: rgba(255, 209, 102, 0.12);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 34px;
  height: 28px;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 99px;
  transition: transform 0.28s, opacity 0.28s;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(42deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-42deg);
}

main {
  width: min(1160px, calc(100% - 2.4rem));
  margin: 0 auto;
  padding: 30px 0 80px;
}

.hero {
  padding: 70px 0 54px;
}

.hero-404 {
  text-align: center;
  min-height: calc(100vh - 220px);
  display: grid;
  align-content: center;
  gap: 12px;
}

.code-404 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(4.5rem, 16vw, 12rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 209, 102, 0.6);
  text-shadow:
    -3px 0 rgba(255, 114, 92, 0.35),
    3px 0 rgba(90, 212, 214, 0.3);
  animation: glitchPulse 3.2s ease-in-out infinite;
}

.error-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.scene {
  display: grid;
  place-items: center;
  min-height: 420px;
  border-radius: 20px;
  padding: 20px;
}

.scene svg {
  width: min(320px, 84vw);
  height: auto;
  display: block;
  margin-inline: auto;
}

.n404-tower-wrap {
  animation: n404-bob 3.5s ease-in-out infinite;
}

.n404-particle {
  animation: n404-float-soft 3s ease-in-out infinite;
}

.n404-p2 {
  animation-delay: 0.5s;
}

.n404-p3 {
  animation-delay: 1.2s;
}

.n404-light {
  animation: n404-pulse-light 2s ease-in-out infinite;
}

.n404-nuclear-spin {
  animation: n404-nuclear-oscillate 3.6s linear infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.n404-badge-group {
  animation: n404-pulse-badge 2.5s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}

.n404-ring-glow {
  animation: n404-glow-ring 1.8s ease-in-out infinite;
}

.n404-spin-symbol {
  animation: n404-spin 4s linear infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.plant-404 {
  width: min(360px, 85vw);
  height: 170px;
  margin: 4px auto 2px;
  position: relative;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.45));
}

.plant-404__ground {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 8px;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.22);
}

.plant-404__building {
  position: absolute;
  left: 20%;
  bottom: 16px;
  width: 48%;
  height: 72px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: linear-gradient(180deg, #3e4b59 0%, #2a3441 100%);
}

.plant-404__window {
  position: absolute;
  left: 31%;
  bottom: 43px;
  width: 20%;
  height: 20px;
  border-radius: 5px;
  background: rgba(90, 212, 214, 0.88);
  box-shadow: 0 0 12px rgba(90, 212, 214, 0.42);
  animation: warningBlink 1.3s steps(1, end) infinite;
}

.plant-404__tower {
  position: absolute;
  right: 23%;
  bottom: 16px;
  width: 58px;
  height: 88px;
  border-radius: 40px 40px 16px 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: linear-gradient(180deg, #5d6c7a 0%, #414e5b 100%);
  transform-origin: bottom center;
  animation: brokenTower 4s ease-in-out infinite;
}

.plant-404__tower-cap {
  position: absolute;
  right: 28%;
  bottom: 100px;
  width: 36px;
  height: 12px;
  border-radius: 10px;
  background: #7f909f;
  transform-origin: bottom center;
  animation: brokenTower 4s ease-in-out infinite;
}

.plant-404__crack {
  position: absolute;
  right: 35.5%;
  bottom: 28px;
  width: 2px;
  height: 60px;
  background: linear-gradient(180deg, rgba(255, 114, 92, 0.2), rgba(255, 114, 92, 0.9));
  box-shadow: 6px 12px 0 rgba(255, 114, 92, 0.65), -5px 22px 0 rgba(255, 114, 92, 0.5);
  animation: crackPulse 2.1s ease-in-out infinite;
}

.plant-404__warning {
  position: absolute;
  left: 18%;
  bottom: 13px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff725c;
  box-shadow: 0 0 10px rgba(255, 114, 92, 0.75);
  animation: warningBlink 0.9s steps(1, end) infinite;
}

.plant-404__smoke {
  position: absolute;
  right: 27%;
  bottom: 105px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(166, 176, 185, 0.5);
  filter: blur(1px);
  animation: smokeRise 2.9s linear infinite;
}

.plant-404__smoke--two {
  width: 18px;
  height: 18px;
  animation-delay: 0.7s;
}

.plant-404__smoke--three {
  width: 15px;
  height: 15px;
  animation-delay: 1.4s;
}

.plant-404__spark {
  position: absolute;
  right: 38%;
  bottom: 52px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffd166;
  opacity: 0;
  box-shadow: 0 0 10px rgba(255, 209, 102, 0.8);
  animation: sparkBurst 1.8s linear infinite;
}

.plant-404__spark--two {
  animation-delay: 0.52s;
}

.plant-404__spark--three {
  animation-delay: 1.03s;
}

@keyframes glitchPulse {
  0%,
  100% {
    transform: translateX(0);
    filter: hue-rotate(0deg);
  }
  20% {
    transform: translateX(-2px);
  }
  22% {
    transform: translateX(2px);
  }
  24% {
    transform: translateX(0);
  }
  60% {
    filter: hue-rotate(18deg);
  }
}

@keyframes n404-float-particle {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.85;
  }
  50% {
    transform: translateY(-38px) scale(1.12);
    opacity: 0.5;
  }
  100% {
    transform: translateY(-80px) scale(0.7);
    opacity: 0;
  }
}

@keyframes n404-float-soft {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-15px);
    opacity: 0.9;
  }
}

@keyframes n404-pulse-light {
  0%,
  100% {
    fill: #1a1a2e;
  }
  50% {
    fill: #ffd700;
    filter: blur(2px);
  }
}

@keyframes n404-glow-ring {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

@keyframes n404-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes n404-pulse-badge {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@keyframes n404-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes n404-nuclear-oscillate {
  0% {
    transform: rotate(0deg);
    filter: hue-rotate(0deg) saturate(1) brightness(1);
  }
  18% {
    transform: rotate(16deg);
    filter: hue-rotate(-6deg) saturate(1.06) brightness(1.01);
  }
  38% {
    transform: rotate(96deg);
    filter: hue-rotate(-20deg) saturate(1.28) brightness(1);
  }
  52% {
    transform: rotate(248deg);
    filter: hue-rotate(-52deg) saturate(1.78) brightness(0.96);
  }
  68% {
    transform: rotate(322deg);
    filter: hue-rotate(-30deg) saturate(1.34) brightness(0.99);
  }
  86% {
    transform: rotate(352deg);
    filter: hue-rotate(-10deg) saturate(1.12) brightness(1);
  }
  100% {
    transform: rotate(360deg);
    filter: hue-rotate(0deg) saturate(1) brightness(1);
  }
}

@keyframes brokenTower {
  0%,
  100% {
    transform: rotate(0deg);
  }
  30% {
    transform: rotate(-2deg);
  }
  42% {
    transform: rotate(-10deg);
  }
  56% {
    transform: rotate(-7deg);
  }
}

@keyframes smokeRise {
  0% {
    transform: translate(0, 0) scale(0.75);
    opacity: 0.6;
  }
  100% {
    transform: translate(-18px, -42px) scale(1.6);
    opacity: 0;
  }
}

@keyframes warningBlink {
  0%,
  44% {
    opacity: 1;
  }
  45%,
  100% {
    opacity: 0.25;
  }
}

@keyframes crackPulse {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

@keyframes sparkBurst {
  0% {
    transform: translate(0, 0) scale(0.8);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    transform: translate(-26px, -20px) scale(0.2);
    opacity: 0;
  }
}

.hero-kicker {
  margin: 0;
  letter-spacing: 0.18em;
  font-size: 0.82rem;
  color: var(--accent);
}

h1,
h2,
h3 {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.03em;
  margin: 0;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 0.93;
  margin-top: 10px;
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 760px;
  line-height: 1.65;
  margin: 18px auto 26px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  border: 0;
  font: inherit;
  text-decoration: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  padding: 11px 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--solid {
  color: #1b1f24;
  background: linear-gradient(95deg, var(--accent), #ff9f68);
  box-shadow: 0 10px 28px rgba(255, 159, 104, 0.3);
}

.btn--outline {
  color: var(--text);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.section {
  margin-top: 54px;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 18px;
}

.section-index {
  margin: 0;
  color: var(--accent-2);
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.7rem;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

p {
  line-height: 1.6;
}

.issue-grid,
.argument-columns,
.metric-row,
.sim-grid,
.vote-grid,
.page-grid,
.timeline,
.fact-grid {
  display: grid;
  gap: 16px;
}

.issue-grid,
.metric-row,
.fact-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.argument-columns,
.sim-grid,
.vote-grid,
.page-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.issue-card,
.argument-panel,
.metric-card,
.sim-controls,
.sim-result,
.vote-form,
.vote-result,
.page-card,
.timeline article,
.fact-card,
.callout {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.issue-card h3,
.argument-panel h3,
.metric-label,
.vote-result h3,
.sim-result h3,
.page-card h3,
.timeline h3,
.fact-card h3 {
  font-size: 1.6rem;
}

.issue-card p,
.argument-panel li,
.sim-lead,
.vote-lead,
.page-card p,
.timeline p,
.fact-card p {
  color: var(--muted);
}

.argument-panel ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.argument-panel--pro {
  border-color: rgba(39, 209, 127, 0.4);
}

.argument-panel--con {
  border-color: rgba(255, 114, 92, 0.42);
}

.metric-label,
.metric-note {
  margin: 0;
}

.metric-value {
  margin: 8px 0 2px;
  font-size: 2.4rem;
  color: var(--accent);
  font-family: "Bebas Neue", sans-serif;
}

.sim-lead,
.vote-lead {
  margin: 0 0 16px;
  max-width: 800px;
}

.sim-controls {
  display: grid;
  gap: 10px;
}

.sim-controls label {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent-2);
}

.bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  width: 0;
  transition: width 0.8s cubic-bezier(0.2, 0.9, 0.2, 1);
}

#bar-nuclear,
#poll-a {
  background: linear-gradient(90deg, #ffd166, #ff9f68);
}

#bar-renewables,
#poll-b {
  background: linear-gradient(90deg, #5ad4d6, #27d17f);
}

#bar-gas,
#poll-c {
  background: linear-gradient(90deg, #a4b0be, #6b7785);
}

.mix-bars p {
  display: flex;
  justify-content: space-between;
  margin: 12px 0 6px;
}

.mix-comment {
  margin: 14px 0 0;
  color: #e9d6a7;
}

.donut {
  width: 178px;
  aspect-ratio: 1;
  border-radius: 50%;
  margin: 18px auto 0;
  background: conic-gradient(
    #ffd166 calc(var(--n, 0) * 1%),
    #5ad4d6 0 calc((var(--n, 0) + var(--r, 0)) * 1%),
    #6b7785 0 100%
  );
  position: relative;
}

.donut::after {
  content: "mix";
  position: absolute;
  inset: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #10161d;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.08em;
  color: var(--text);
  font-size: 1.1rem;
}

.accordion {
  display: grid;
  gap: 12px;
}

.acc-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(16, 23, 31, 0.78);
  overflow: hidden;
}

.acc-trigger {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  padding: 14px;
  cursor: pointer;
}

.acc-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.acc-content p {
  margin: 0;
  padding: 0 14px 14px;
  color: var(--muted);
}

.vote-form {
  display: grid;
  gap: 10px;
}

.vote-form label {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
}

.poll-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  margin-bottom: 12px;
}

.vote-note {
  color: var(--muted);
  margin-top: 14px;
}

.page-card {
  transition: transform 0.28s;
}

.tilt-card {
  transform-style: preserve-3d;
}

.tilt-card:hover {
  transform: translateY(-4px);
}

.timeline {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.timeline p {
  margin: 0;
}

.callout {
  margin-top: 20px;
  border-left: 4px solid var(--accent);
}

.site-footer {
  text-align: center;
  color: var(--muted);
  padding: 26px 0 38px;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 860px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    inset: 64px 0 auto 0;
    display: none;
    flex-direction: column;
    gap: 0;
    background: rgba(10, 14, 20, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .main-nav a {
    width: 100%;
    padding: 14px 24px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .main-nav.open {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .cursor-glow {
    display: none;
  }
}
