/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-blue: #4a90e2;
  --bright-blue: #5ba3f5;
  --light-blue: #e8f4fd;
  --yellow: #ffe66d;
  --orange: #ff8c42;
  --pink: #ff69b4;
  --white: #ffffff;
  --black: #000000;
  --gray: #f5f5f5;
  --dark-gray: #333333;
  --text-dark: #2c3e50;
  --border-radius: 15px;
  --shadow: 0 4px 15px rgba(74, 144, 226, 0.2);
  --shadow-hover: 0 8px 25px rgba(74, 144, 226, 0.3);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Age Verification Popup */
.age-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.age-popup.active {
  display: flex;
}

.age-popup-content {
  background: var(--white);
  padding: 40px;
  border-radius: var(--border-radius);
  text-align: center;
  max-width: 500px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: popupSlide 0.3s ease-out;
}

@keyframes popupSlide {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.age-popup-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.age-popup-content h2 {
  color: var(--primary-blue);
  margin-bottom: 15px;
  font-size: 28px;
}

.age-popup-content p {
  margin-bottom: 25px;
  font-size: 18px;
  color: var(--text-dark);
}

.age-popup-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 20px;
}

.btn-age {
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-yes {
  background: var(--primary-blue);
  color: var(--white);
}

.btn-yes:hover {
  background: var(--bright-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-no {
  background: var(--gray);
  color: var(--text-dark);
}

.btn-no:hover {
  background: #e0e0e0;
}

.age-warning {
  font-size: 14px;
  color: #666;
  margin-top: 15px;
}

/* Cookie Banner */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--primary-blue);
  color: var(--white);
  padding: 20px;
  z-index: 9999;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
}

.cookie-banner.active {
  display: block;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-content p {
  flex: 1;
  margin: 0;
  font-size: 14px;
}

.cookie-content a {
  color: var(--yellow);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.btn-cookie {
  padding: 10px 20px;
  border: 2px solid var(--white);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-accept {
  background: var(--white);
  color: var(--primary-blue);
}

.btn-accept:hover {
  background: var(--yellow);
  border-color: var(--yellow);
}

.btn-reject {
  background: transparent;
  color: var(--white);
}

.btn-reject:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Navigation */
.navbar {
  background: var(--white);
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-blue);
  text-decoration: none;
}

.logo-img {
  width: 40px;
  height: 40px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.nav-menu a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: var(--primary-blue);
}

/* Burger Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background: var(--text-dark);
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: var(--white);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.wave-shape {
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--light-blue);
  border-radius: 50%;
  opacity: 0.6;
}

.wave-left {
  top: -100px;
  left: -100px;
}

.wave-right {
  bottom: -100px;
  right: -100px;
}

.hero-content {
  max-width: 1200px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.hero-character {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.shark-character {
  width: 300px;
  height: 300px;
  animation: float 3s ease-in-out infinite;
  object-fit: contain;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.hero-text {
  flex: 1;
}

.hero-brand {
  background: var(--primary-blue);
  padding: 30px;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  text-align: center;
}

.brand-name {
  font-size: 48px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.barcode {
  color: var(--white);
  font-family: monospace;
  font-size: 16px;
  letter-spacing: 3px;
  opacity: 0.8;
}

.hero-description {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 30px;
  color: var(--text-dark);
}

/* Buttons */
.btn-primary {
  background: var(--primary-blue);
  color: var(--white);
  padding: 15px 35px;
  border: none;
  border-radius: var(--border-radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--bright-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: var(--gray);
  color: var(--text-dark);
  padding: 15px 35px;
  border: none;
  border-radius: var(--border-radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary:hover {
  background: #e0e0e0;
  transform: translateY(-2px);
}

/* Sections */
section {
  padding: 80px 20px;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary-blue);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title.centered {
  text-align: center;
}

.section-subtitle {
  text-align: center;
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 40px;
}

.section-text {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.section-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.text-content {
  flex: 1;
  min-width: 300px;
}

.illustration {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 340px;
}

.pufferfish,
.seahorse {
  width: 340px;
  height: 340px;
  animation: float 4s ease-in-out infinite;
  object-fit: contain;
}

/* About Section */
.about-section {
  background: var(--gray);
}

/* Why Section */
.why-section {
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 50px 0;
}

.feature-card {
  background: var(--primary-blue);
  color: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  text-align: center;
  border: 3px solid var(--white);
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--yellow);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.feature-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
  font-weight: 700;
}

.feature-card p {
  font-size: 16px;
  opacity: 0.9;
}

.centered {
  text-align: center;
  margin-top: 40px;
}

/* Games Section */
.games-section {
  background: var(--primary-blue);
  color: var(--white);
}

.games-section .section-title {
  color: var(--white);
}

.games-section .section-text {
  color: var(--white);
  opacity: 0.95;
}

.featured-game {
  background: var(--white);
  color: var(--text-dark);
  padding: 40px;
  border-radius: var(--border-radius);
  margin: 40px 0;
  box-shadow: var(--shadow);
}

.game-preview {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.game-image {
  flex: 1;
  min-width: 250px;
  display: flex;
  justify-content: center;
}

.game-icon-large {
  width: 250px;
  height: 250px;
  object-fit: contain;
}

.game-info {
  flex: 1;
  min-width: 300px;
}

.game-title {
  font-size: 32px;
  color: var(--primary-blue);
  margin-bottom: 15px;
  font-weight: 700;
}

.game-description {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.game-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.stat {
  background: var(--light-blue);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-blue);
}

.btn-play {
  font-size: 18px;
  padding: 18px 40px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

.game-card {
  background: var(--white);
  padding: 20px;
  border-radius: var(--border-radius);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.game-icon {
  width: 100%;
  height: 150px;
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.game-icon svg {
  width: 100%;
  height: 100%;
}

.game-card h4 {
  color: var(--primary-blue);
  font-size: 18px;
  font-weight: 600;
}

/* Join Section */
.join-section {
  background: var(--light-blue);
}

/* Game Page */
.game-page {
  padding: 40px 20px;
  min-height: calc(100vh - 200px);
}

.game-header {
  margin-bottom: 30px;
}

.btn-back {
  background: var(--gray);
  color: var(--text-dark);
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.btn-back:hover {
  background: #e0e0e0;
}

.game-page-title {
  font-size: 42px;
  color: var(--primary-blue);
  font-weight: 800;
}

.game-container {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.game-wrapper {
  flex: 2;
  min-width: 300px;
}

.game-embed {
  background: var(--gray);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  min-height: 600px;
}

.game-embed iframe {
  width: 100%;
  height: 760px;
  border: none;
}

.game-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray);
}

.placeholder-content {
  text-align: center;
  padding: 40px;
}

.placeholder-content svg {
  width: 200px;
  height: 200px;
  margin-bottom: 20px;
}

.game-sidebar {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.game-stats-card,
.game-description-card {
  background: var(--white);
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.game-stats-card h3,
.game-description-card h3 {
  color: var(--primary-blue);
  font-size: 22px;
  margin-bottom: 15px;
  font-weight: 700;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray);
}

.stat-item:last-child {
  border-bottom: none;
}

.stat-label {
  color: var(--text-dark);
  font-weight: 500;
}

.stat-value {
  color: var(--primary-blue);
  font-weight: 600;
}

.game-description-card p {
  line-height: 1.8;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.game-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Footer */
.footer {
  background: var(--white);
  margin-top: 80px;
}

.footer-nav {
  background: var(--white);
  padding: 20px 0;
  border-top: 1px solid var(--gray);
}

.footer-nav .nav-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-nav .logo {
  margin-bottom: 10px;
}

.footer-nav .nav-menu {
  justify-content: center;
  flex-wrap: wrap;
}

.footer-bottom {
  background: var(--primary-blue);
  color: var(--white);
  padding: 30px 0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: var(--white);
  color: var(--primary-blue);
  transform: translateY(-3px);
}

.copyright {
  margin: 0;
  font-size: 14px;
}

/* Reviews Page */
.reviews-page {
  padding: 40px 20px;
  min-height: calc(100vh - 200px);
}

.reviews-header {
  text-align: center;
  margin-bottom: 50px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.review-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary-blue);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.review-author {
  font-weight: 700;
  color: var(--primary-blue);
  font-size: 18px;
}

.review-rating {
  color: var(--yellow);
  font-size: 20px;
}

.review-date {
  color: #999;
  font-size: 14px;
  margin-bottom: 15px;
}

.review-text {
  line-height: 1.8;
  color: var(--text-dark);
}

/* Legal Pages */
.legal-page {
  padding: 40px 20px;
  min-height: calc(100vh - 200px);
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.legal-content h1 {
  color: var(--primary-blue);
  font-size: 36px;
  margin-bottom: 30px;
  font-weight: 800;
}

.legal-content h2 {
  color: var(--primary-blue);
  font-size: 28px;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 700;
}

.legal-content h3 {
  color: var(--text-dark);
  font-size: 22px;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.legal-content p {
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.legal-content ul,
.legal-content ol {
  margin-left: 30px;
  margin-bottom: 20px;
  line-height: 1.8;
}

.legal-content li {
  margin-bottom: 10px;
  color: var(--text-dark);
}

.legal-content a {
  color: var(--primary-blue);
  text-decoration: underline;
}

.legal-content a:hover {
  color: var(--bright-blue);
}

.last-updated {
  color: #999;
  font-size: 14px;
  font-style: italic;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--gray);
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .navbar .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 80px 30px 30px;
    gap: 20px;
    transition: right 0.3s ease;
    z-index: 1000;
    border-left: 2px solid var(--primary-blue);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  }

  .navbar .nav-menu.active {
    right: 0;
  }

  .navbar .nav-menu li {
    width: 100%;
  }

  .navbar .nav-menu a {
    display: block;
    padding: 15px 0;
    font-size: 18px;
    border-bottom: 1px solid var(--gray);
    width: 100%;
  }

  .navbar .nav-menu a:hover {
    color: var(--primary-blue);
    padding-left: 10px;
  }

  .menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .menu-overlay.active {
    display: block;
  }

  .footer-nav .nav-menu {
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 0;
    height: auto;
    background: transparent;
    border: none;
    box-shadow: none;
    width: 100%;
  }

  .footer-nav .nav-menu li {
    width: auto;
  }

  .footer-nav .nav-menu a {
    display: inline-block;
    padding: 10px 15px;
    font-size: 14px;
    border-bottom: none;
    width: auto;
  }

  .footer-nav .nav-menu a:hover {
    padding-left: 15px;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .section-content {
    flex-direction: column;
  }

  .game-preview {
    flex-direction: column;
  }

  .game-container {
    flex-direction: column;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .brand-name {
    font-size: 36px;
  }

  .section-title {
    font-size: 28px;
  }
}
