/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #ffffff;
  background: linear-gradient(135deg, #1a0033 0%, #330066 50%, #4d0099 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: rgba(51, 0, 102, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.75rem 0;
  border-bottom: 2px solid #00ffff;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 0;
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #00ffff;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav a {
  color: #ffffff;
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: 5px;
  transition: all 0.3s ease;
  position: relative;
  font-size: 0.9rem;
}

.nav a:hover {
  color: #00ffff;
  background: rgba(0, 255, 255, 0.1);
  transform: translateY(-2px);
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #00ffff;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav a:hover::after {
  width: 80%;
}

.nav .btn-play-mobile {
  position: static;
}

.nav .btn-play-mobile::after {
  display: none;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(45deg, #00ffff, #0099cc);
  color: #1a0033;
  box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 255, 255, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 2px solid #00ffff;
}

.btn-secondary:hover {
  background: #00ffff;
  color: #1a0033;
  transform: translateY(-3px);
}

.btn-play {
  background: linear-gradient(45deg, #00ff00, #00cc00);
  color: #1a0033;
  font-size: 0.95rem;
  padding: 0.6rem 1.2rem;
  box-shadow: 0 4px 15px rgba(0, 255, 0, 0.3);
  white-space: nowrap;
}

.btn-play-mobile {
  display: none;
  margin-top: 1rem;
  width: 100%;
  text-align: center;
}

.btn-play-desktop {
  display: inline-block;
}

.btn-play:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 255, 0, 0.5);
}

.btn-large {
  font-size: 1.2rem;
  padding: 1rem 2.5rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
}

.menu-toggle-label {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle-label span {
  width: 25px;
  height: 3px;
  background: #00ffff;
  margin: 3px 0;
  transition: 0.4s;
  border-radius: 2px;
}

/* Hero Section */
.hero {
  padding: 150px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-background::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 0, 51, 0.7);
  z-index: 1;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, #00ffff, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: #cccccc;
  margin-bottom: 2rem;
}

.hero-text {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

.highlight {
  color: #00ffff;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Sections */
section {
  padding: 80px 0;
}

section h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: #00ffff;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.about-image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.placeholder {
  background: linear-gradient(45deg, #333, #555);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  color: #cccccc;
  font-size: 1.2rem;
  border: 2px dashed #666;
  aspect-ratio: 16/9;
}

/* Leaderboard */
.leaderboard {
  position: relative;
  overflow: hidden;
}

.leaderboard-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.leaderboard-background::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 0, 51, 0.6);
  z-index: 1;
}

.leaderboard-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.leaderboard .container {
  position: relative;
  z-index: 2;
}

.leaderboard-table {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.leaderboard-header {
  background: linear-gradient(45deg, #00ffff, #0099cc);
  color: #1a0033;
  display: grid;
  grid-template-columns: 100px 1fr 150px;
  padding: 1rem 2rem;
  font-weight: 600;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 100px 1fr 150px;
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease;
}

.leaderboard-row:hover {
  background: rgba(0, 255, 255, 0.1);
}

.leaderboard-row:last-child {
  border-bottom: none;
}

.rank {
  font-weight: 600;
  color: #00ffff;
}

/* Security Section */
.security-content {
  display: grid;
  gap: 3rem;
}

.security-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.certificates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.certificate-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 255, 255, 0.2);
}

.certificate-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 255, 255, 0.2);
}

.certificate-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.certificate-item h3 {
  color: #00ffff;
  margin-bottom: 1rem;
}

/* Guide Section */
.guide-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.guide-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.guide-text ul {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.guide-text li {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.guide-image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.guide-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* FAQ */
.faq-items {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 15px;
  margin-bottom: 1.5rem;
  border-left: 4px solid #00ffff;
}

.faq-item h3 {
  color: #00ffff;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.faq-item p {
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid rgba(0, 255, 255, 0.2);
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-content {
  margin-bottom: 1.5rem;
}

.testimonial-content p {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.8;
}

.testimonial-author h4 {
  color: #00ffff;
  text-align: right;
}

/* Contact */
.contact-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.contact-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid rgba(0, 255, 255, 0.2);
}

.contact-item h3 {
  color: #00ffff;
  margin-bottom: 1rem;
}

.contact-item p {
  font-size: 1.1rem;
  word-break: break-word;
}

/* Footer */
.footer {
  background: rgba(26, 0, 51, 0.95);
  padding: 2rem 0;
  text-align: center;
  border-top: 2px solid #00ffff;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: #00ffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-banners {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.footer-banners img {
  display: block;
  transition: opacity 0.3s ease;
}

.footer-banners a {
  display: block;
  text-decoration: none;
}

.footer-banners a:hover img {
  opacity: 0.8;
}

.banner-18plus {
  height: 2rem;
  width: auto;
}

.banner-gambleaware {
  height: 1rem;
  width: auto;
}

.banner-gamcare {
  height: 2rem;
  width: auto;
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: linear-gradient(135deg, #1a0033, #330066);
  padding: 3rem;
  border-radius: 20px;
  text-align: center;
  max-width: 500px;
  border: 2px solid #00ffff;
  box-shadow: 0 20px 60px rgba(0, 255, 255, 0.3);
}

.modal-content h2 {
  color: #00ffff;
  margin-bottom: 1rem;
}

.modal-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.modal-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Cookie Banner */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26, 0, 51, 0.95);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  z-index: 1500;
  border-top: 2px solid #00ffff;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-content p {
  flex: 1;
  margin: 0;
}

.cookie-content a {
  color: #00ffff;
  text-decoration: none;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

/* Legal Pages */
.legal-main {
  padding: 120px 0 80px;
  min-height: calc(100vh - 200px);
}

.legal-main h1 {
  color: #00ffff;
  margin-bottom: 1rem;
  text-align: center;
}

.last-updated {
  text-align: center;
  color: #cccccc;
  margin-bottom: 3rem;
  font-style: italic;
}

.legal-main section {
  padding: 2rem 0;
}

.legal-main h2 {
  color: #00ffff;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.legal-main h3 {
  color: #00ffff;
  margin: 2rem 0 1rem;
  font-size: 1.4rem;
}

.legal-main ul {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.legal-main li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.legal-main p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.cookies-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
}

.cookies-table th,
.cookies-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cookies-table th {
  background: rgba(0, 255, 255, 0.2);
  color: #00ffff;
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 900px) {
  .menu-toggle-label {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 80px;
    right: 0;
    width: 280px;
    height: calc(100vh - 80px);
    background: rgba(51, 0, 102, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 2px solid #00ffff;
  }

  .btn-play-desktop {
    display: none;
  }

  .btn-play-mobile {
    display: inline-block;
  }

  .menu-toggle:checked ~ .nav {
    transform: translateX(0);
  }

  .menu-toggle:checked ~ .menu-toggle-label span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .menu-toggle:checked ~ .menu-toggle-label span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
  }

  .menu-toggle:checked ~ .menu-toggle-label span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .header {
    padding: 0.75rem 0;
  }

  .header .container {
    gap: 1rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-text {
    font-size: 1rem;
  }

  .about-content,
  .guide-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .certificates {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .modal-buttons {
    flex-direction: column;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-banners {
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 15px;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero-title {
    font-size: 2rem;
  }

  section {
    padding: 60px 0;
  }

  section h2 {
    font-size: 2rem;
  }

  .leaderboard-header,
  .leaderboard-row {
    grid-template-columns: 50px 1fr 100px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .modal-content {
    padding: 2rem;
    margin: 1rem;
  }

  .modal-buttons {
    flex-direction: column;
  }

  .nav {
    width: 100%;
  }

  .footer-banners {
    gap: 0.75rem;
  }

  .banner-18plus {
    height: 1.5rem;
  }

  .banner-gambleaware {
    height: 0.8rem;
  }

  .banner-gamcare {
    height: 1.5rem;
  }
}

@media (max-width: 400px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .logo h1 {
    font-size: 1.5rem;
  }

  .btn-play {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
  }
}
