@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  margin: 0;
  font-family: 'Press Start 2P', cursive;
  color: #fff;
  overflow-x: hidden;
}

/* Betöltőképernyő */
#loader {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #001a00 0%, #000 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  color: #00ff80;
  font-family: 'Press Start 2P', cursive;
  overflow: hidden;
}

.loader-logo {
  display: flex;
  gap: 5px;
  font-size: 24px;
  text-shadow: 0 0 5px #00ff80, 0 0 15px #00ff80, 0 0 30px #00ff80;
  margin-bottom: 20px;
  animation: pulseLogo 1.5s infinite alternate;
}

.loader-logo span {
  display: inline-block;
  animation: bounce 1s infinite alternate;
}
.loader-logo span:nth-child(odd) { animation-delay: 0.1s; }
.loader-logo span:nth-child(even) { animation-delay: 0.3s; }

@keyframes bounce {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

.loader-text {
  color: #0f0;
  text-shadow: 0 0 8px #0f0, 0 0 20px #00ff80;
  font-size: 12px;
  margin-bottom: 30px;
}

.loader-bars {
  display: flex;
  gap: 5px;
}

.loader-bars .bar {
  width: 6px;
  height: 20px;
  background: #00ff80;
  animation: loadingBar 0.6s infinite alternate;
}

.loader-bars .bar:nth-child(2) { animation-delay: 0.1s; }
.loader-bars .bar:nth-child(3) { animation-delay: 0.2s; }
.loader-bars .bar:nth-child(4) { animation-delay: 0.3s; }
.loader-bars .bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes loadingBar {
  from { transform: scaleY(0.5); opacity: 0.6; }
  to { transform: scaleY(1.5); opacity: 1; }
}

@keyframes pulseLogo {
  0% { text-shadow: 0 0 5px #00ff80, 0 0 15px #00ff80, 0 0 30px #00ff80; }
  50% { text-shadow: 0 0 10px #0f0, 0 0 25px #0f0, 0 0 40px #00ff80; }
  100% { text-shadow: 0 0 5px #00ff80, 0 0 15px #00ff80, 0 0 30px #00ff80; }
}

/* Navigáció */
header {
  background: rgba(0, 0, 0, 0.7);
  border-bottom: 3px solid #00ff80;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 0 15px #00ff80;
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}
nav h1 {
  color: #00ff80;
  font-size: 14px;
  text-shadow: 0 0 8px #00ff80;
}
nav ul { display: flex; list-style: none; gap: 20px; padding: 0; }
nav ul li a {
  color: #fff;
  text-decoration: none;
  transition: all 0.3s;
}
nav ul li a:hover {
  color: #00ff80;
  text-shadow: 0 0 10px #00ff80;
}

/* Szakaszok */
section {
  min-height: 100vh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  text-align: center;
  transition: background 0.2s linear;
  position: relative;
}
section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,255,128,0.05);
  pointer-events: none;
}

/* Egyedi háttérszínek és glow */
#home { background: radial-gradient(circle, #002a00 0%, #000 100%); box-shadow: inset 0 0 50px #00ff80; }
#about { background: radial-gradient(circle, #001233 0%, #000015 100%); box-shadow: inset 0 0 50px #00aaff; }
#server { background: radial-gradient(circle, #2a0033 0%, #000 100%); box-shadow: inset 0 0 50px #ff00ff; }
#posts { background: radial-gradient(circle, #332000 0%, #000 100%); box-shadow: inset 0 0 50px #ffaa00; }

h2,h3 { color:#00ff80; text-shadow:0 0 5px #00ff80,0 0 10px #00ff80,0 0 20px #00ff80; }

/* Carousel */
.carousel-container { position: relative; width: 90%; max-width: 900px; margin: 40px auto 20px auto; overflow: hidden; border:2px solid #00ff80; border-radius:12px; box-shadow:0 0 25px #00ff80; background: rgba(10,10,10,0.8); padding:50px 20px;}
.carousel-slide { opacity:0; transform: translateX(50%); transition: opacity 1.2s ease, transform 1.2s ease; position:absolute; inset:0; display:flex; flex-direction:column; justify-content:center; align-items:center;}
.carousel-slide.active { opacity:1; transform: translateX(0); position:relative; }
.carousel-slide h3 { font-size:16px; color:#00ff80; text-shadow:0 0 10px #00ff80; }
.carousel-slide p { margin-top:20px; max-width:600px; font-size:12px; line-height:1.6; }
.carousel-dots { display:flex; justify-content:center; margin-top:15px; gap:10px; }
.carousel-dots .dot { width:12px; height:12px; background:#333; border:2px solid #00ff80; border-radius:50%; cursor:pointer; transition:background 0.3s, transform 0.3s; }
.carousel-dots .dot.active { background:#00ff80; box-shadow:0 0 10px #00ff80; transform:scale(1.2); animation:pulse 1.2s infinite; }
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  border: 2px solid #00ff80;
  color: #00ff80;
  font-size: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.carousel-btn:hover {
  background: #00ff80;
  color: #000;
  box-shadow: 0 0 15px #00ff80, 0 0 25px #00ff80 inset;
}
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/* Posztok */
.posts-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:15px; justify-content:center; width:80%; }
.post-card { background: rgba(20,20,20,0.8); border:1px solid #00ff80; border-radius:10px; padding:20px; box-shadow:0 0 10px #00ff80; transition: all 0.3s; cursor:pointer;}
.post-card:hover { transform:scale(1.05); box-shadow:0 0 20px #00ff80,0 0 40px #00ff80 inset; }

/* Popup */
#post-popup { position:fixed; inset:0; background:rgba(0,0,0,0.85); display:none; align-items:center; justify-content:center; z-index:999; }
.popup-content { background: radial-gradient(circle,#002200 0%,#000 100%); border:2px solid #00ff80; box-shadow:0 0 30px #00ff80; border-radius:15px; padding:30px; width:80%; max-width:600px; color:#fff; text-align:center; transform:scale(0.8); opacity:0; animation:popupShow 0.5s forwards;}
@keyframes popupShow { to{ transform:scale(1); opacity:1;} }
.popup-content h3 { color:#00ff80; text-shadow:0 0 10px #00ff80; }
.popup-content p { margin-top:15px; font-size:12px; line-height:1.6; }
.close-btn { position:absolute; top:15px; right:20px; font-size:18px; color:#00ff80; cursor:pointer; transition:transform 0.3s; }
.close-btn:hover { transform:scale(1.2); text-shadow:0 0 10px #00ff80; }

/* Footer */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: radial-gradient(circle, #001a00 0%, #000 100%);
  border-top: 2px solid #00ff80;
  box-shadow: 0 0 25px #00ff80;
  color: #00ff80;
  text-align: center;
  padding: 15px 10px;
  font-size: 10px;
  letter-spacing: 1px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: background 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
}

footer p { margin:0 0 8px 0; text-shadow:0 0 8px #00ff80; }
footer a {
  color: #00ff80;
  text-decoration: none;
  transition: all 0.3s;
}
footer a:hover {
  text-decoration: underline;
  color: #fff;
}

#back-to-top { background:transparent; border:1px solid #00ff80; color:#00ff80; font-family:'Press Start 2P'; font-size:10px; padding:6px 10px; border-radius:8px; cursor:pointer; transition:all 0.3s; box-shadow:0 0 10px #00ff80; }
#back-to-top:hover { background:#00ff80; color:#000; box-shadow:0 0 25px #00ff80; transform:scale(1.1); }

#cookie-settings-btn {
  background: transparent;
  border: 2px solid #00ff80;
  color: #00ff80;
  padding: 6px 10px;
  border-radius: 6px;
  font-family: 'Press Start 2P';
  font-size: 9px;
  cursor: pointer;
  transition: all 0.3s;
}
#cookie-settings-btn:hover {
  background: #00ff80;
  color: #000;
  box-shadow: 0 0 15px #00ff80;
  transform: scale(1.05);
}

#cookie-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, #001a00 0%, #000 100%);
  border: 2px solid #00ff80;
  box-shadow: 0 0 25px #00ff80;
  padding: 30px 20px;
  border-radius: 15px;
  text-align: center;
  z-index: 10000;
  max-width: 350px;
  color: #00ff80;
  font-family: 'Press Start 2P', cursive;
  font-size: 10px;
  display: none; /* JS fogja megjeleníteni */
}
#cookie-popup button {
  background: #00ff80;
  color: #000;
  border: none;
  padding: 8px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Press Start 2P', cursive;
  font-size: 10px;
  box-shadow: 0 0 10px #00ff80;
  transition: all 0.3s;
  margin-top: 10px;
}
#cookie-popup button:hover {
  background: #fff;
  color: #00ff80;
  transform: scale(1.1);
  box-shadow: 0 0 20px #00ff80, 0 0 40px #00ff80 inset;
}
