/* --- Resurse și Variabile Globale --- */
:root {
  --primary-color: #2c3e50; /* Albastru închis */
  --secondary-color: #34495e; /* Gri-albăstrui */
  --accent-color: #e74c3c; /* Roșu-coral */
  --gold-color: #f1c40f; /* Auriu */
  --light-color: #f4f6f7; /* Gri foarte deschis */
  --white-color: #ffffff;
  --dark-color: #1e2732;
  --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --font-display: "Impact", "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --container-width: 1200px;
  --border-radius: 8px;
  --box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* --- Resetare și Stiluri de Bază --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: var(--font-primary);
  line-height: 1.7;
  color: var(--primary-color);
  background-color: var(--white-color);
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: normal;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
h1 {
  font-size: 4.5rem;
}
h2 {
  font-size: 3.5rem;
  color: var(--primary-color);
}
h3 {
  font-size: 1.75rem;
  color: var(--accent-color);
}
p {
  margin-bottom: 1.2rem;
}
a {
  color: var(--accent-color);
  text-decoration: none;
}
ul {
  list-style: none;
}
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}
.section-padding {
  padding: 80px 0;
}
.bg-light {
  background-color: var(--light-color);
}
.bg-dark {
  background-color: var(--dark-color);
  color: var(--light-color);
}
.bg-dark h2,
.bg-dark h3 {
  color: var(--white-color);
}
.text-center {
  text-align: center;
}

/* --- Componente --- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}
.btn-primary {
  background-color: var(--primary-color);
  color: var(--white-color);
  border-color: var(--primary-color);
}
.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}
.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}
.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
}
.btn-accent {
  background-color: var(--accent-color);
  color: var(--white-color);
  border-color: var(--accent-color);
}
.btn-accent:hover {
  background-color: var(--gold-color);
  color: var(--primary-color);
  border-color: var(--gold-color);
  transform: scale(1.05);
}
.btn-large {
  padding: 18px 40px;
  font-size: 1.5rem;
}
.btn-full-width {
  width: 100%;
}
.section-title {
  text-align: center;
  margin-bottom: 1rem;
}
.section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px auto;
  font-size: 1.1rem;
  color: #7f8c8d;
  line-height: 1.5;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo a {
  font-size: 2.5rem;
  color: var(--primary-color);
}
.logo span {
  color: var(--accent-color);
}
.main-nav ul {
  display: flex;
  gap: 20px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-color);
  position: relative;
  padding: 5px 0;
  text-transform: uppercase;
}
.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}
.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}
.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary-color);
}

/* --- Hero --- */
.hero-section {
  padding-top: 20px;
  padding-bottom: 40px;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white-color);
  overflow: hidden;
}
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
}
.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero-content h1 {
  font-size: 5.5rem;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}
.hero-content h1 strong {
  color: var(--gold-color);
}
.hero-content .subtitle {
  font-size: 1.5rem;
  max-width: 700px;
  margin: 20px auto 40px auto;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

/* --- Jocuri --- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.game-card {
  background-color: var(--white-color);
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.game-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow);
}
.game-card .game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.game-card .game-info {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.game-card h3 {
  margin-top: 0;
}
.game-card p {
  font-size: 0.95rem;
  color: #7f8c8d;
  flex-grow: 1;
}
.game-card .btn {
  margin-top: 15px;
  width: 100%;
}

/* --- Content Layout (Text + Imagine) --- */
.content-layout {
  display: flex;
  align-items: center;
  gap: 50px;
}
.content-layout .content-image {
  flex: 1 1 45%;
}
.content-layout .content-image img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}
.content-layout .content-text {
  flex: 1 1 55%;
}
.content-layout.reverse {
  flex-direction: row-reverse;
}
.content-text ul {
  list-style-type: "✓ ";
  padding-left: 20px;
  margin-top: 20px;
}
.content-text ul li {
  padding-left: 10px;
  margin-bottom: 10px;
}
.content-text h2 {
  margin-bottom: 0.5rem;
}
.content-text h3 {
  margin-bottom: 1.5rem;
  font-family: var(--font-primary);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-style: italic;
}

/* --- Demo Joc --- */
.demo-game-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--primary-color);
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--box-shadow);
}
.slot-machine {
  border: 5px solid var(--gold-color);
  background-color: #fff;
  padding: 20px;
  border-radius: var(--border-radius);
  position: relative;
  margin-bottom: 20px;
}
.reels {
  display: flex;
  justify-content: space-around;
  font-size: 5rem;
  height: 120px;
  align-items: center;
  overflow: hidden;
}
.win-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(241, 196, 15, 0.9);
  color: var(--primary-color);
  padding: 10px 30px;
  font-family: var(--font-display);
  font-size: 2.5rem;
  border-radius: var(--border-radius);
  display: none;
  animation: fadeInOut 2s ease;
  z-index: 10;
}
@keyframes fadeInOut {
  0%,
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
  20%,
  80% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
.controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--white-color);
}
.balance-display,
.bet-controls {
  background-color: var(--secondary-color);
  padding: 10px 20px;
  border-radius: var(--border-radius);
  font-family: var(--font-display);
  font-size: 1.5rem;
}
.bet-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}
.btn-bet {
  background-color: var(--gold-color);
  color: var(--primary-color);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 30px;
}

/* --- FAQ --- */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid #ddd;
  margin-bottom: 10px;
}
.faq-item summary {
  font-size: 1.2rem;
  font-weight: 600;
  padding: 15px;
  cursor: pointer;
  position: relative;
  outline: none;
}
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 15px;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item p {
  padding: 0 15px 15px;
  font-size: 1rem;
  color: #555;
}
.faq-item .text-link {
  text-decoration: underline;
}

/* --- Recenzii --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}
.testimonial-card {
  background-color: var(--white-color);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 3px solid var(--accent-color);
}
.testimonial-content p {
  font-style: italic;
  color: #7f8c8d;
  margin-bottom: 20px;
}
.testimonial-content h4 {
  margin-bottom: 5px;
  font-family: var(--font-primary);
  font-weight: 700;
  text-transform: none;
  color: var(--primary-color);
}
.rating {
  color: var(--gold-color);
  font-size: 1.5rem;
}

/* --- Înregistrare --- */
.registration-form-wrapper {
  max-width: 600px;
  margin: 60px auto 0 auto;
  background-color: var(--light-color);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}
.registration-form h3 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 30px;
}
.form-group,
.form-group-checkbox {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  font-size: 0.9rem;
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  font-family: var(--font-primary);
}
.form-group input.invalid {
  border-color: var(--negative-color);
}
.form-group-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}
.form-group-checkbox input {
  width: auto;
}
.error-message {
  color: var(--negative-color);
  font-size: 0.85rem;
  margin-top: 5px;
  height: 1em;
}
.text-link {
  text-decoration: underline;
}

/* --- Galerie --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}
.gallery-item {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.gallery-item:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
}

/* --- Secțiuni Legale --- */
.legal-section .container {
  max-width: 900px;
}
.legal-content h3 {
  margin-top: 2.5rem;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 0.5rem;
}
.legal-content h3:first-of-type {
  margin-top: 1rem;
}
.legal-content p,
.legal-content li {
  color: #333;
}
.legal-content strong {
  color: var(--primary-color);
}

/* --- Footer --- */
.site-footer {
  background-color: var(--primary-color);
  color: var(--light-color);
  padding: 60px 0 20px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white-color);
  margin-bottom: 20px;
}
.footer-col p,
.footer-col a {
  color: #bdc3c7;
  transition: color 0.3s ease;
}
.footer-col a:hover {
  color: var(--gold-color);
}
.footer-col ul li {
  margin-bottom: 10px;
}
.social-icons {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}
.social-icons img {
  width: 32px;
  height: 32px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}
.social-icons a:hover img {
  opacity: 1;
}
.age-restriction {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border: 2px solid var(--light-color);
  border-radius: 50%;
  font-weight: bold;
  font-size: 1.2rem;
}
.copyright {
  text-align: center;
  border-top: 1px solid var(--secondary-color);
  padding-top: 20px;
  font-size: 0.9rem;
  color: #7f8c8d;
}

/* --- Adaptabilitate --- */
@media (max-width: 1024px) {
  h1 {
    font-size: 4rem;
  }
  h2 {
    font-size: 3rem;
  }
  .hero-content h1 {
    font-size: 4.5rem;
  }
  .main-nav ul {
    gap: 15px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .content-layout,
  .content-layout.reverse {
    flex-direction: column;
  }
  .content-layout .content-text {
    text-align: center;
  }
  .content-text ul {
    text-align: left;
    display: inline-block;
  }
}

@media (max-width: 768px) {
  .main-nav,
  .site-header .btn {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .main-nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white-color);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
  }
  .main-nav.active ul {
    flex-direction: column;
    width: 100%;
    text-align: center;
  }
  .hero-content h1 {
    font-size: 3rem;
  }
  .hero-content .subtitle {
    font-size: 1.2rem;
  }
  .controls {
    flex-direction: column;
    gap: 15px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
