/* Domendomen.com - Styles */
/* Technological cold palette, glassmorphism cards, Outfit font */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --bg-dark: #0f1419;
  --bg-mid: #1a2332;
  --bg-card: rgba(26, 35, 50, 0.6);
  --text-primary: #e8edf4;
  --text-secondary: #b8c4d4;
  --text-muted: #78909c;
  --accent: #4fc3f7;
  --accent-hover: #29b6f6;
  --button: #29b6f6;
  --secondary: #37474f;
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.12);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --radius: 12px;
  --radius-lg: 20px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.img-cover {
  width: 100%;
  object-fit: cover;
}

.img-contain {
  object-fit: contain;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  background: rgba(15, 20, 25, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
}

.logo-link:hover {
  color: var(--text-primary);
}

.logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.logo-text {
  font-weight: 700;
  font-size: 1.25rem;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: var(--text-secondary);
  font-weight: 500;
}

.nav a:hover {
  color: var(--accent);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.burger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: transform 0.3s;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  background: var(--bg-mid);
  padding: 5rem 2rem 2rem;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 0;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 998;
}

.mobile-menu-overlay.active {
  display: block;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  background: linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-dark) 100%);
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.45;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 2rem;
}

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: var(--button);
  color: #0f1419;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: rgba(79, 195, 247, 0.15);
}

/* Section */
.section {
  padding: 5rem 0;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.section-subtitle {
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 3rem;
}

/* Glass cards */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--accent);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Events */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.event-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.event-card img {
  width: 100%;
  height: 220px;
  min-height: 180px;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 3 / 2;
}

.event-card-content {
  padding: 1.5rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-top: none;
}

.event-card h3 {
  margin-bottom: 0.5rem;
}

.event-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Game section */
.game-section {
  background: var(--bg-mid);
}

.game-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 2rem 0;
}

.game-card {
  aspect-ratio: 1;
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 2rem;
  font-weight: 700;
  transition: transform 0.15s, background 0.15s;
}

.game-card:hover:not(.flipped):not(.matched) {
  background: rgba(79, 195, 247, 0.1);
  transform: scale(1.02);
}

.game-card.flipped,
.game-card.matched {
  background: rgba(79, 195, 247, 0.2);
  border-color: var(--accent);
}

.game-card.matched {
  cursor: default;
  opacity: 0.8;
}

.game-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  text-align: center;
}

.testimonial-avatar {
  width: 96px;
  height: 96px;
  min-width: 96px;
  min-height: 96px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  margin: 0 auto 1rem;
  border: 3px solid var(--accent);
}

.testimonial-card h4 {
  margin-bottom: 0.25rem;
}

.testimonial-card .role {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.testimonial-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Contact form */
.contact-section {
  background: var(--bg-mid);
}

.form-card {
  max-width: 560px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

/* Gambling logos */
.gambling-logos {
  padding: 3rem 0;
  background: var(--bg-dark);
}

.gambling-logos h3 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1rem;
  color: var(--text-secondary);
}

.gambling-logos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.gambling-logos-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gambling-logos-grid img {
  width: 90px;
  height: 45px;
  min-width: 90px;
  min-height: 45px;
  object-fit: contain;
  filter: brightness(0.9);
  transition: filter 0.2s, transform 0.2s;
}

.gambling-logos-grid a:hover img {
  filter: brightness(1);
  transform: scale(1.05);
}

.section-img {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.section-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
}

/* Footer */
.footer {
  background: #0a0e12;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}

.footer-nav a {
  color: var(--text-secondary);
}

.footer-age {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-contacts a {
  margin-right: 1rem;
  color: var(--text-secondary);
}

/* Popups - hidden by default, shown via JS .active class to prevent flash */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s;
  pointer-events: none;
}
.popup-overlay.active {
  pointer-events: auto;
}

.popup-overlay.active {
  visibility: visible;
  opacity: 1;
}

.popup {
  background: var(--bg-mid);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 420px;
  width: 90%;
}

.popup h2 {
  margin-bottom: 1rem;
}

.popup-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.popup-buttons .btn {
  flex: 1;
}

/* Hide content until age verified */
body.age-gate-active .main-content {
  filter: blur(8px);
  pointer-events: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .services-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .events-grid {
    grid-template-columns: 1fr;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .nav {
    display: none;
  }

  .burger {
    display: flex;
  }

  .container {
    padding: 0 1rem;
  }

  .hero {
    padding: 6rem 1rem 3rem;
  }

  .section {
    padding: 3rem 0;
  }

  .game-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .game-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .popup-buttons {
    flex-direction: column;
  }
}
