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

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

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

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: "Fredoka One", cursive;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
  color: #d4621a;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

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

h3 {
  font-size: 1.5rem;
  color: #a0522d;
}

/* Color Scheme */
:root {
  --primary-color: #d4621a; /* Outback Orange */
  --secondary-color: #8b4513; /* Saddle Brown */
  --accent-color: #cd853f; /* Peru */
  --background-light: #faf8f5; /* Warm White */
  --background-dark: #2c1810; /* Dark Brown */
  --text-light: #ffffff;
  --text-dark: #2c1810;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 25px;
  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, var(--primary-color), #e67e22);
  color: var(--text-light);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(212, 98, 26, 0.3);
}

.btn-secondary {
  background: var(--secondary-color);
  color: var(--text-light);
}

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

.btn-cta {
  background: var(--accent-color);
  color: var(--text-light);
  font-weight: 700;
}

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

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

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

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

.modal-content {
  background: var(--background-light);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  max-width: 500px;
  margin: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--secondary-color);
  color: var(--text-light);
  padding: 1rem;
  z-index: 999;
  display: none;
}

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

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

/* Header */
.header {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  padding: 0.2rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  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;
}

.logo {
  height: 80px;
}

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

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

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

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-light);
  margin: 3px 0;
  transition: 0.3s;
}

/* Mobile Menu Open State */
.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.nav-menu.mobile-open {
  display: flex !important;
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: calc(100vh - 80px);
  background: rgba(44, 24, 16, 0.95);
  backdrop-filter: blur(10px);
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 2rem 0;
  z-index: 1000;
  animation: slideDown 0.3s ease-out;
}

.nav-menu.mobile-open li {
  margin: 1rem 0;
}

.nav-menu.mobile-open a {
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-menu.mobile-open a:hover {
  background: rgba(212, 98, 26, 0.2);
  transform: scale(1.05);
}

.nav-menu.mobile-open .btn-cta {
  margin-top: 1rem;
  padding: 12px 24px;
}

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

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.mobile-menu-overlay.active {
  display: block;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("images/hero.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text-light);
  padding: 4rem 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

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

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #ffd700;
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.disclaimer {
  font-size: 0.9rem;
  font-style: italic;
  margin-bottom: 2rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  border-left: 4px solid #ffd700;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.bg-alternate {
  background: linear-gradient(135deg, #f4f1eb, #e8e2d5);
}

.bg-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--text-light);
}

.section-intro {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Grid Layouts */
.overview-grid,
.features-grid,
.audience-grid,
.symbols-grid,
.reviews-grid,
.safety-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

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

.overview-card:hover,
.feature-item:hover,
.review-card:hover {
  transform: translateY(-5px);
}

.overview-card img,
.feature-icon img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.feature-icon img {
  width: 80px;
  height: 80px;
}

.symbol-card img {
  width: 100px;
  height: 100px;
  margin-bottom: 1rem;
}

/* Mechanics Section */
.mechanics-content,
.bonus-content,
.mobile-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.mechanics-list {
  list-style: none;
  padding-left: 0;
}

.mechanics-list li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
}

.mechanics-list li::before {
  content: "🦘";
  position: absolute;
  left: 0;
}

.mechanics-image img,
.bonus-image img,
.mobile-image img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.social-feature {
  text-align: center;
  padding: 2rem;
}

.social-feature img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 1rem;
}

/* Leaderboard */
.leaderboard-table {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin: 2rem 0;
}

.leaderboard-header,
.leaderboard-row {
  display: grid;
  grid-template-columns: 80px 1fr 100px 150px;
  padding: 1rem;
  align-items: center;
}

.leaderboard-header {
  background: var(--primary-color);
  color: var(--text-light);
  font-weight: 700;
}

.leaderboard-row {
  border-bottom: 1px solid #eee;
}

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

.rank {
  font-weight: 700;
  font-size: 1.2rem;
  text-align: center;
}

.rank.gold {
  color: #ffd700;
}
.rank.silver {
  color: #c0c0c0;
}
.rank.bronze {
  color: #cd7f32;
}

.leaderboard-cta {
  text-align: center;
  margin-top: 2rem;
}

/* Reviews */
.review-stars {
  color: #ffd700;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

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

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

.review-author div {
  text-align: left;
}

.review-author strong {
  display: block;
  color: var(--primary-color);
}

.review-author span {
  font-size: 0.9rem;
  color: #666;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

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

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

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

.faq-question h3 {
  margin: 0;
  color: var(--secondary-color);
}

.faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  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: all 0.3s ease;
}

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

/* Contact */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-item {
  margin-bottom: 1rem;
}

.contact-item strong {
  display: block;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.contact-item a {
  color: var(--primary-color);
  text-decoration: none;
}

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

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

.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--primary-color);
}

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

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

/* Final CTA */
.final-cta {
  text-align: center;
  padding: 2rem;
}

.final-cta h2 {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.final-cta p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Footer */
.footer {
  background: var(--background-dark);
  color: var(--text-light);
  padding: 3rem 0 1rem;
}

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

.footer-logo {
  height: 70px;
  margin-bottom: 0.2rem;
}

.footer-section h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

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

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

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

.footer-section a:hover {
  color: var(--primary-color);
}

/* Footer Banners */
.footer-banners {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.footer-banners a {
  display: inline-block;
  transition: transform 0.3s ease;
}

.footer-banners a:hover {
  transform: translateY(-2px);
}

.footer-banners img {
  height: 30px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  border-radius: 8px;
}

.footer-banners img:hover {
  opacity: 1;
}

.age-badge {
  height: 50px !important;
  width: auto !important;
}

/* Game Modal */
.game-modal-content {
  max-width: 1000px;
  width: 95vw;
  height: 90vh;
  max-height: 700px;
  padding: 0;
  border-radius: 15px;
  overflow: hidden;
  background: var(--background-dark);
}

.game-modal-content .modal-header {
  padding: 1rem 1.5rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--text-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: none;
}

.game-modal-content .modal-header h2 {
  margin: 0;
  font-family: "Fredoka One", cursive;
  color: var(--text-light);
}

.game-modal-content .close {
  font-size: 2rem;
  color: var(--text-light);
  cursor: pointer;
  transition: color 0.3s ease;
}

.game-modal-content .close:hover {
  color: #ffd700;
}

.game-modal-content .modal-body {
  padding: 0;
  height: calc(100% - 80px);
}

.game-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Form Modal Styles */
.form-modal-content {
  max-width: 500px;
  width: 90%;
}

.form-modal-header {
  padding: 1.5rem;
  border-radius: 15px 15px 0 0;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-modal-header.success {
  background: linear-gradient(135deg, #28a745, #20c997);
}

.form-modal-header.error {
  background: linear-gradient(135deg, #dc3545, #e74c3c);
}

.form-modal-header.info {
  background: linear-gradient(135deg, #17a2b8, #007bff);
}

.form-modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
}

.form-modal-header .close {
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.form-modal-header .close:hover {
  opacity: 1;
}

.form-modal-icon {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 1rem;
  font-weight: bold;
}

.form-modal-icon.success {
  color: #28a745;
}

.form-modal-icon.error {
  color: #dc3545;
}

.form-modal-icon.info {
  color: #17a2b8;
}

.modal-footer {
  padding: 1rem 1.5rem;
  text-align: center;
  border-top: 1px solid #eee;
}

/* Policy Page Styles */
.policy-main {
  padding: 2rem 20px;
  max-width: 800px;
}

.policy-back-btn {
  margin-top: 2rem;
}

.footer-date {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .mechanics-content,
  .bonus-content,
  .mobile-content {
    grid-template-columns: 1fr;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

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

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

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

  .hero-buttons {
    justify-content: center;
  }

  .footer-banners {
    gap: 1rem;
    margin: 1.5rem 0;
  }

  .footer-banners img {
    height: 45px;
  }

  .age-badge {
    height: 40px !important;
  }

  .btn-large {
    padding: 14px 28px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .section {
    padding: 2rem 0;
  }

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

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

  .btn {
    width: 100%;
    max-width: 300px;
  }
}

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

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

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for keyboard navigation */
.btn:focus,
input:focus,
.faq-question:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}
