/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  line-height: 1.6;
  color: #2c3e50;
  background-color: #f8f9fa;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Pirate One", cursive;
  margin-bottom: 1rem;
  color: #1a252f;
}

h1 {
  font-size: 3rem;
  line-height: 1.2;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

h3 {
  font-size: 1.8rem;
}

p {
  margin-bottom: 1rem;
  color: #34495e;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, #d4af37, #b8860b);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #b8860b, #9a7209);
  transform: translateY(-2px);
}

.btn-secondary {
  background: #34495e;
  color: white;
}

.btn-secondary:hover {
  background: #2c3e50;
  transform: translateY(-2px);
}

.btn-cta {
  background: #e74c3c;
  color: white;
  font-weight: 600;
}

.btn-cta:hover {
  background: #c0392b;
  transform: translateY(-2px);
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.1rem;
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.9rem;
}

/* Header */
.header {
  background: linear-gradient(135deg, #1a252f, #2c3e50);
  padding: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-brand {
  display: flex;
}

.logo {
  height: 80px;
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2rem;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: #d4af37;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  background: linear-gradient(
      135deg,
      rgba(44, 62, 80, 0.5),
      rgba(52, 73, 94, 0.5)
    ),
    url("images/hero.webp") center/cover no-repeat;
  color: white;
  padding: 120px 0 80px;
  display: flex;
  align-items: center;
  min-height: 100vh;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  max-width: 800px;
}

.hero h1 {
  color: white;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #ecf0f1;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.disclaimer {
  font-size: 0.9rem;
  color: #f39c12;
  font-weight: 600;
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
  padding: 12px 20px;
  border-radius: 8px;
  border: 2px solid #e67e22;
  margin-top: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  text-align: center;
}

/* Game modal large layout */
.modal-content-game {
  position: relative;
  max-width: 1000px;
  width: 95%;
  height: 90vh;
  max-height: 90vh;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 16px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #2c3e50;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 5;
}

.modal-close:hover {
  background: #ffffff;
  transform: scale(1.05);
}

.game-frame-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
}

#gameFrame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.modal-content h2 {
  color: #2c3e50;
  margin-bottom: 1rem;
}

.modal-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #2c3e50;
  color: white;
  padding: 1rem;
  z-index: 1500;
  display: none;
}

.cookie-banner.active {
  display: block;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

/* Sections */
section {
  padding: 80px 0;
}

.section-intro {
  text-align: center;
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 3rem;
  color: #7f8c8d;
}

/* Game Overview */
.game-overview {
  background: white;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.overview-card {
  text-align: center;
  padding: 2rem;
  border-radius: 12px;
  background: #f8f9fa;
  transition: transform 0.3s ease;
}

.overview-card:hover {
  transform: translateY(-5px);
}

.overview-card img {
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
  border-radius: 8px;
}

/* Features */
.features {
  background: linear-gradient(135deg, #ecf0f1, #bdc3c7);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card img {
  margin-bottom: 1rem;
}

/* Game Mechanics */
.game-mechanics {
  background: white;
}

.mechanics-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.mechanic-step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.step-number {
  background: linear-gradient(135deg, #d4af37, #b8860b);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.mechanics-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Target Audience */
.target-audience {
  background: #f8f9fa;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.audience-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.audience-card img {
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
  border-radius: 8px;
}

/* Leaderboard */
.leaderboard {
  background: linear-gradient(135deg, #2c3e50, #34495e);
  color: white;
}

.leaderboard h2 {
  color: white;
}

.leaderboard-table {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  margin-bottom: 2rem;
}

.leaderboard-header {
  background: #34495e;
  color: white;
  padding: 1rem;
  display: grid;
  grid-template-columns: 80px 1fr 150px 150px;
  gap: 1rem;
  font-weight: bold;
}

.leaderboard-row {
  padding: 1rem;
  display: grid;
  grid-template-columns: 80px 1fr 150px 150px;
  gap: 1rem;
  border-bottom: 1px solid #ecf0f1;
  align-items: center;
  color: #2c3e50;
}

.leaderboard-row:last-child {
  border-bottom: none;
}

.rank {
  font-weight: bold;
  text-align: center;
}

.rank.gold {
  color: #d4af37;
}

.rank.silver {
  color: #95a5a6;
}

.rank.bronze {
  color: #cd7f32;
}

.leaderboard-cta {
  text-align: center;
}

/* Special Events */
.special-events {
  background: white;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.event-card {
  background: #f8f9fa;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  position: relative;
}

.event-card.featured {
  background: linear-gradient(135deg, #d4af37, #b8860b);
  color: white;
}

.event-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #e74c3c;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
}

.event-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.event-card h3,
.event-card p {
  padding: 0 1.5rem;
}

.event-timer {
  padding: 0 1.5rem;
  font-weight: bold;
  color: #e74c3c;
}

.event-card.featured .event-timer {
  color: #ecf0f1;
}

.event-card .btn {
  margin: 1.5rem;
}

/* Reviews */
.reviews {
  background: #f8f9fa;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.review-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.review-stars {
  color: #d4af37;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.reviewer img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.reviewer-info strong {
  display: block;
  color: #2c3e50;
}

.reviewer-info span {
  color: #7f8c8d;
  font-size: 0.9rem;
}

/* Game Stats */
.game-stats {
  background: linear-gradient(135deg, #d4af37, #b8860b);
  color: white;
}

.game-stats h2 {
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat-card {
  text-align: center;
  padding: 2rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  font-family: "Pirate One", cursive;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Game Modes */
.game-modes {
  background: white;
}

.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.mode-card {
  background: #f8f9fa;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.mode-card:hover {
  transform: translateY(-5px);
}

.mode-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.mode-card h3,
.mode-card p {
  padding: 0 1.5rem;
}

.mode-features {
  padding: 0 1.5rem;
  list-style: none;
  margin: 1rem 0;
}

.mode-features li {
  padding: 0.25rem 0;
  color: #7f8c8d;
}

.mode-features li:before {
  content: "✓ ";
  color: #27ae60;
  font-weight: bold;
}

.mode-card .btn {
  margin: 1.5rem;
}

/* Community */
.community {
  background: #f8f9fa;
}

.community-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.community-features {
  margin-top: 2rem;
}

.community-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.community-feature img {
  flex-shrink: 0;
}

.community-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Safety */
.safety {
  background: white;
}

.safety-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.safety-features {
  margin-top: 2rem;
}

.safety-feature {
  margin-bottom: 1.5rem;
}

.safety-feature h4 {
  color: #27ae60;
  margin-bottom: 0.5rem;
}

.safety-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* FAQ */
.faq {
  background: #f8f9fa;
}

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: #f8f9fa;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.1rem;
}

.faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: #d4af37;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 1.5rem 1.5rem;
  max-height: 200px;
}

/* Contact */
.contact {
  background: white;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-item img {
  flex-shrink: 0;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.newsletter-form input[type="email"] {
  padding: 12px;
  border: 2px solid #ecf0f1;
  border-radius: 8px;
  font-size: 1rem;
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: #d4af37;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #7f8c8d;
}

.checkbox-container input[type="checkbox"] {
  margin-top: 0.2rem;
}

/* Final CTA */
.final-cta {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  text-align: center;
}

.final-cta h2 {
  color: white;
}

/* Footer */
.footer {
  background: #1a252f;
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: #d4af37;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #d4af37;
}

.footer-logo {
  height: 70px;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-block;
  transition: transform 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid #34495e;
  padding-top: 2rem;
  text-align: center;
  color: #7f8c8d;
}

.footer-bottom .disclaimer {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 80px;
    flex-direction: column;
    background-color: #2c3e50;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .hero-content {
    text-align: center;
    max-width: 100%;
    padding: 0 20px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .mechanics-content,
  .community-content,
  .safety-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .leaderboard-header,
  .leaderboard-row {
    grid-template-columns: 60px 1fr 100px 100px;
    font-size: 0.9rem;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .modal-buttons {
    flex-direction: column;
  }

  .events-grid,
  .modes-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 2rem;
  }

  .overview-grid,
  .features-grid,
  .audience-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 2.5rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.btn:focus,
input:focus,
button:focus {
  outline: 2px solid #d4af37;
  outline-offset: 2px;
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Responsible Gaming Banners */
.responsible-gaming-banners {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  /* padding: 2rem 0; */
  /* background: #f8f9fa; */
  /* border-top: 1px solid #e9ecef; */
}

.responsible-gaming-banners a {
  display: block;
  transition: transform 0.3s ease;
}

.responsible-gaming-banners a:hover {
  transform: scale(1.05);
}

.responsible-gaming-banners img {
  height: 60px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.responsible-gaming-banners .age-badge {
  height: 60px;
  width: auto;
  max-width: 80px;
}

/* Responsive adjustments for banners */
@media (max-width: 768px) {
  .responsible-gaming-banners {
    gap: 1rem;
    padding: 1.5rem 0;
  }

  .responsible-gaming-banners img {
    height: 50px;
    max-width: 150px;
  }

  .responsible-gaming-banners .age-badge {
    height: 50px;
    max-width: 60px;
  }
}

@media (max-width: 480px) {
  .responsible-gaming-banners {
    flex-direction: column;
    gap: 1rem;
  }

  .responsible-gaming-banners img {
    height: 45px;
    max-width: 120px;
  }

  .responsible-gaming-banners .age-badge {
    height: 45px;
    max-width: 50px;
  }
}
