:root {
  --bg-primary: #1a1e23;
  --bg-secondary: rgba(44, 47, 52, 0.3);
  --text-primary: #fff;
  --text-secondary: #bbb;
  --accent-color: #ffb300;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Poppins', sans-serif;
  color: var(--text-primary);
  position: relative;
  overflow-x: hidden;
}

.overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(-45deg, #0f2027, #203a43, #2c5364, #1f1c2c);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  z-index: -1;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px;
}

h1 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 30px;
  letter-spacing: 1px;
}

.search-container {
  text-align: center;
  margin-bottom: 50px;
}

.search-bar {
  width: 100%;
  max-width: 500px;
  background: var(--bg-secondary);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  padding: 15px 25px;
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  outline: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-bar:focus {
  border-color: var(--accent-color);
  box-shadow: 0 10px 30px rgba(255, 179, 0, 0.15);
}

.folders {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.folder {
  background: var(--bg-secondary);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px 40px;
  width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.folder:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.3);
}

.folder.active-folder {
  border-color: var(--accent-color);
  background: rgba(44, 47, 52, 0.5);
  box-shadow: 0 0 20px rgba(255, 179, 0, 0.2);
}

.folder-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
  fill: var(--text-primary);
}

.folder.active-folder .folder-icon {
  fill: var(--accent-color);
}

.game-list {
  display: none !important;
  max-width: 800px;
  margin: 0 auto;
  flex-direction: column;
  gap: 20px;
  list-style: none;
  padding: 0;
}

.game-list.active {
  display: flex !important; 
}

.game-card {
  background: var(--bg-secondary);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 25px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: background 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.game-list.active .game-card {
  animation: fadeUp 0.4s ease forwards;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.game-list.active .game-card:nth-child(1) { animation-delay: 0.1s; }
.game-list.active .game-card:nth-child(2) { animation-delay: 0.2s; }
.game-list.active .game-card:nth-child(3) { animation-delay: 0.3s; }

.game-icon {
  font-size: 2.5rem;
}

.game-main {
  flex: 1;
}

.game-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.game-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.game-link {
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 20px;
  text-decoration: none;
  font-weight: 500;
  align-self: center;
  transition: 0.2s;
}

.game-link:hover {
  background: var(--accent-color);
  color: #1a1e23;
  transform: scale(1.05);
}

.auth-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.auth-modal.show {
  display: flex;
}

.auth-content {
  background: #1c2128;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 40px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.close-auth {
  position: absolute;
  top: 15px; right: 20px;
  background: none; border: none;
  color: #888; font-size: 2rem; cursor: pointer;
}

.close-auth:hover { color: white; }

.auth-title { margin-top: 0; margin-bottom: 10px; color: white; }
.auth-desc { color: #bbb; font-size: 0.9rem; margin-bottom: 25px; }

.auth-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  width: 100%;
  padding: 15px;
  border-radius: 10px;
  border: none;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 10px;
  transition: transform 0.2s, opacity 0.2s;
}

.auth-btn:hover { transform: scale(1.03); opacity: 0.9; }

.discord-btn { background: #5865F2; color: white; }
.discord-btn svg { width: 24px !important; height: 24px !important; flex-shrink: 0; }
.vip-btn { background: var(--accent-color); color: #1a1e23; }

.vip-input { margin-bottom: 15px !important; text-align: center; }

.auth-divider { margin: 25px 0; border-bottom: 1px solid rgba(255,255,255,0.1); position: relative; }
.auth-divider span { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: #1c2128; padding: 0 15px; color: #888; font-size: 0.8rem; font-weight: bold; }

.auth-error { color: #f85149; margin-top: 15px; font-weight: bold; display: none !important; }

/* ÚJ JÁTÉK PLECSNI */
.new-badge {
  background: linear-gradient(135deg, #ff416c, #ff4b2b);
  color: white; font-size: 0.7rem; padding: 3px 8px; border-radius: 12px;
  margin-left: 10px; vertical-align: middle; font-weight: bold;
  display: inline-block; animation: pulseBadge 2s infinite;
  box-shadow: 0 0 10px rgba(255, 65, 108, 0.4);
}
@keyframes pulseBadge {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* HIBAJELENTŐ MODAL */
.report-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(10px); display: none; align-items: center; justify-content: center; z-index: 9999; }
.report-modal.show { display: flex; }
.report-content { background: #1c2128; border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; padding: 30px; width: 90%; max-width: 450px; text-align: center; position: relative; }
.report-textarea { width: 100%; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); color: white; padding: 15px; border-radius: 10px; margin-bottom: 15px; resize: vertical; min-height: 100px; font-family: 'Poppins', sans-serif; }
.report-textarea:focus { outline: none; border-color: #f85149; }
.report-submit-btn { background: #f85149; color: white; width: 100%; padding: 12px; border-radius: 10px; border: none; font-weight: bold; cursor: pointer; transition: 0.2s; }
.report-submit-btn:hover { background: #ff6e6e; transform: scale(1.03); }
.report-btn:hover { color: #ff6e6e !important; }

/* ÉLŐ HIRDETMÉNYSÁV */
.live-announcement {
  background: linear-gradient(90deg, #f85149, #ff6e6e);
  color: white;
  text-align: center;
  padding: 12px 20px;
  font-weight: bold;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(248, 81, 73, 0.4);
  animation: slideDown 0.5s ease;
}

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* --- HACKER TERMINÁL --- */
.hacker-terminal {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.95); z-index: 10000; color: #0f0;
  font-family: 'Courier New', Courier, monospace; flex-direction: column;
  padding: 30px; box-sizing: border-box; backdrop-filter: blur(5px);
}
.hacker-terminal.active { display: flex; }
.term-content { flex: 1; overflow-y: auto; margin-bottom: 20px; font-size: 1.1rem; white-space: pre-wrap; text-shadow: 0 0 5px #0f0; }
.term-input-line { display: flex; align-items: center; font-size: 1.2rem; text-shadow: 0 0 5px #0f0; }
.term-input-line input { background: transparent; border: none; color: #0f0; font-family: 'Courier New', Courier, monospace; font-size: 1.2rem; flex: 1; margin-left: 10px; outline: none; text-shadow: 0 0 5px #0f0; }
.open-term-btn { position: fixed; bottom: 20px; right: 20px; background: #000; color: #0f0; border: 1px solid #0f0; padding: 10px 15px; font-family: monospace; font-size: 16px; cursor: pointer; z-index: 9999; box-shadow: 0 0 10px #0f0; border-radius: 5px; font-weight: bold; transition: 0.2s;}
.open-term-btn:hover { background: #0f0; color: #000; box-shadow: 0 0 20px #0f0; }
#closeTerm { position: absolute; top: 20px; right: 30px; background: transparent; color: #0f0; border: 1px solid #0f0; cursor: pointer; font-family: monospace; font-size: 16px; padding: 5px 15px; }
#closeTerm:hover { background: red; color: white; border-color: red; box-shadow: 0 0 15px red; text-shadow: none; }