/* ====== GLOBAL ====== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  color: #f5f5f5;

  /* Gradientul tău, păstrat */
  background: rgb(25,138,21);
  background: -moz-linear-gradient(0deg, rgba(25,138,21,1) 0%, rgba(1,13,15,1) 82%, rgba(0,0,0,1) 100%);
  background: -webkit-linear-gradient(0deg, rgba(25,138,21,1) 0%, rgba(1,13,15,1) 82%, rgba(0,0,0,1) 100%);
  background: linear-gradient(0deg, rgba(25,138,21,1) 0%, rgba(1,13,15,1) 82%, rgba(0,0,0,1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#198a15",endColorstr="#000000",GradientType=1);
  background-size: cover;
  background-attachment: fixed;
}

/* Reusable container */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 4px;
  margin: 0 auto;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.4em;
  font-weight: 700;
}

h1 {
  font-size: 2.2rem;
}

h2 {
  font-size: 1.7rem;
  color: rgba(196,213,17,1);
}

h3 {
  font-size: 1.3rem;
}

/* ====== HEADER / NAV ====== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #0af800;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
}

.logo img {
  display: block;
  height: 48px;
  width: auto;
}

/* Navigation */

.main-nav {
  position: relative;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #0af800;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 1.1rem;
  color: #0af800;
  cursor: pointer;
}

.nav-list {
  display: flex;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.95rem;
  color: #f5f5f5;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-list a:hover {
  background: #0ca22b;
}

.nav-list a.active {
  background: #f5f5f5;
  color: #000;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav-list {
    position: absolute;
    right: 0;
    top: 120%;
    flex-direction: column;
    align-items: flex-end;
    background: rgba(0, 0, 0, 0.95);
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #0af800;
    min-width: 200px;
    display: none;
  }

  .nav-list.nav-open {
    display: flex;
  }
}

/* ====== HERO ====== */

.hero {
  padding: 0px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-text {
  background: rgba(0, 0, 0, 0.9);
  border-radius: 16px;
  border: 2px solid #0af800;
  box-shadow: 0 0 20px rgba(255, 235, 59, 0.5);
  padding: 20px 18px;
  text-align: center;
}

.hero-subtitle {
  font-size: 1.05rem;
  margin-bottom: 1em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 0.8em;
}

.hero-note {
  font-size: 0.9rem;
  color: #cddfd0;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background-color: #0ca22b;
  color: #fff;
  box-shadow: 0 0 12px rgba(12, 162, 43, 0.7);
}

.btn-primary:hover {
  background-color: #10c436;
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(12, 162, 43, 0.9);
}

.btn-secondary {
  background-color: #1e1e1e;
  color: #f5f5f5;
  border: 1px solid #0af800;
}

.btn-secondary:hover {
  background-color: #2b2b2b;
}

/* ====== SECTIONS GENERALE ====== */

.section {
    padding-top: 30px;
    padding-right: 0;
    padding-left: 0;
    padding-bottom: 2px;
}

.section-light {
  background: rgba(0, 0, 0, 0.8);
}

.section-intro {
  max-width: 700px;
  margin: 0 auto 20px;
  text-align: center;
  font-size: 1rem;
}

/* ====== GAME GRID ====== */

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.game-card {
  background: #0ca22b;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #ffffff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.game-card img {
  width: 100%;
  display: block;
}

.game-card h3 {
  margin: 10px 12px 6px;
}

.game-card p {
  margin: 0 12px 12px;
  font-size: 0.9rem;
}

.game-card a {
  display: block;
  color: #fff;
}

.game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.25);
  border-color: #f5f5f5;
}

/* ====== FAQ ====== */

.faq-item {
  margin-bottom: 16px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 8px;
  border: 1px solid #0af800;
  padding: 12px 14px;
}

.faq-item h3 {
  font-size: 1.1rem;
  color: rgba(196,213,17,1);
}

.faq-item p {
  margin: 0;
  font-size: 0.95rem;
}

/* ====== FOOTER ====== */

.site-footer {
  padding: 24px 0 30px;
  margin-top: 20px;
  border-top: 1px solid #ccc;
  background: rgba(0, 0, 0, 0.9);
}

.footer-inner {
  text-align: center;
}

.footer-text {
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: #cddfd0;
}

.footer-links {
  font-size: 0.9rem;
  color: #17c315;
}

.footer-links a {
  color: #71b6ff;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* ====== RESPONSIVE ADJUSTMENTS ====== */

@media (min-width: 768px) {
  .hero {
    padding-top: 25px;
    padding-right: 0;
    padding-left: 0;
  }

  .hero-text {
    text-align: left;
    padding: 24px 24px 22px;
  }

  .hero-inner {
    align-items: center;
  }

  .hero-actions {
    justify-content: flex-start;
  }
}

@media (min-width: 992px) {
  h1 {
    font-size: 2.6rem;
  }

  .hero-subtitle {
    font-size: 1.15rem;
  }
}

/* ====== (OPȚIONAL) ELEMENTE MOȘTENITE / PAGINI SECUNDARE ====== */
/* Dacă ai pagini cu #game-area, disclaimer, cookie-banner etc., păstrăm clasele de bază ca să nu se strice. */

#game-area {
  border: 1px solid #fff;
  margin-bottom: 20px;
  height: 640px;
  width: 100%;
}

.disclaimer-container {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  border: 1px solid #fff;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.85);
}

.disclaimer-container h2,
.disclaimer-container h3 {
  margin-top: 1em;
}

.disclaimer-container p {
  margin-bottom: 1em;
  line-height: 1.6;
}

.disclaimer-container a {
  color: #71b6ff;
}

/* Cookie banner – dacă îl folosești pe alte pagini */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #f0f0f0;
  padding: 20px;
  text-align: center;
  z-index: 1000;
  color: #000;
}

#cookie-banner a {
  color: #007bff;
  text-decoration: none;
}

#cookie-preferences {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #ffffff;
  padding: 20px;
  border: 1px solid #ccc;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  z-index: 1001;
}

#cookie-preferences label {
  display: block;
  margin-bottom: 10px;
}
/* ====== GAME PAGE – WRAPPER & TOOLBAR ====== */

.game-wrapper {
  margin-top: 1px;
  background: rgba(0, 0, 0, 0.9);
  border-radius: 16px;
  border: 2px solid #0af800;
  box-shadow: 0 0 22px rgba(0, 0, 0, 0.8), 0 0 18px rgba(12, 162, 43, 0.7);
  padding: 12px 12px 3px;
}

.game-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: #cddfd0;
}

.game-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #21e35b;
  box-shadow: 0 0 8px rgba(33, 227, 91, 0.9);
}

.game-toolbar-buttons {
  display: flex;
  gap: 8px;
}

/* Buton ghost pentru fullscreen */
.btn-ghost {
  background-color: transparent;
  border: 1px solid #0af800;
  color: #f5f5f5;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-ghost:hover {
  background-color: #0af800;
  color: #000;
  box-shadow: 0 0 12px rgba(10, 248, 0, 0.8);
}

/* Rescriem #game-area să fie mai modern / responsive */
#game-area {
  width: 100%;
  background-color: #000;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #ffffff;
  position: relative;
  aspect-ratio: 16 / 9;
}

/* Fallback pentru browsere fără aspect-ratio */
@supports not (aspect-ratio: 16 / 9) {
  #game-area {
    height: 60vh;
  }
}

#game-area iframe {
  display: block;
  width: 100%;
  height: 100%;
}

/* Fullscreen styling (opțional) */
#game-area:fullscreen {
  border-radius: 0;
  border: none;
}
#game-area {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 560px;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
}

#game-frame {
  width: 100%;
  height: 100%;
  display: none;
  border: 0;
}

#game-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    circle at center,
    rgba(0,0,0,.65),
    rgba(0,0,0,.9)
  );
  z-index: 2;
}

#play-btn {
  font-size: 42px;
  font-weight: 800;
  padding: 26px 70px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: linear-gradient(135deg, #00ff7f, #00c853);
  color: #000;
  letter-spacing: 1px;
  box-shadow: 0 20px 40px rgba(0,255,127,.35);
  transition: transform .15s ease, box-shadow .15s ease;
}

#play-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 28px 55px rgba(0,255,127,.55);
}