/* ========================================
   virtualslots1 - Dark Modern Material Design
   UK Social Casino Theme
   ======================================== */

/* === CSS Variables === */
:root {
  /* Dark Modern Palette with Orange Accent */
  --bg-primary: #0d0d0d;
  --bg-secondary: #151515;
  --bg-card: #1a1a1a;
  --bg-card-hover: #242424;
  --text-primary: #ffffff;
  --text-secondary: #b8b8b8;
  --text-muted: #808080;
  --accent: #ff6b35;
  --accent-hover: #ff8555;
  --accent-dark: #e55a25;
  --success: #22c55e;
  --border-color: #2a2a2a;
  --border-accent: #3a3a3a;

  /* Material Design Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.7);
  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-card-hover:
    0 8px 24px rgba(255, 107, 53, 0.15), 0 4px 8px rgba(0, 0, 0, 0.4);

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
}

/* === Reset & Base === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Segoe UI",
    -apple-system,
    BlinkMacSystemFont,
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* === Typography === */
h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

h2 {
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--accent-hover);
}

/* === Header === */
.header {
  background-color: var(--bg-secondary);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

.logo-text:hover {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  align-items: center;
}

.nav a {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
  text-decoration: none;
}

.nav a:hover,
.nav a.active {
  color: var(--text-primary);
  background-color: var(--bg-card);
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    var(--accent-dark) 100%
  );
  color: var(--text-primary);
  box-shadow:
    var(--shadow-md),
    0 0 20px rgba(255, 107, 53, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    var(--shadow-lg),
    0 0 30px rgba(255, 107, 53, 0.3);
  color: var(--text-primary);
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border: 2px solid var(--border-accent);
}

.btn-secondary:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-accent);
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

.btn-outline:hover {
  background-color: var(--bg-card);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

/* === Hero Section === */
.hero {
  background: linear-gradient(
    180deg,
    var(--bg-secondary) 0%,
    var(--bg-primary) 100%
  );
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    ellipse at center top,
    rgba(255, 107, 53, 0.08) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(
    135deg,
    var(--text-primary) 0%,
    var(--accent) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero .btn {
  margin-top: 0.5rem;
}

/* === Material Design Cards === */
.card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-accent);
}

/* === Featured Game Section === */
.featured-game {
  padding: 5rem 2rem;
  background-color: var(--bg-primary);
}

.featured-game .container {
  max-width: 1200px;
  margin: 0 auto;
}

.featured-game-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background-color: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.featured-game-image {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 16/10;
  object-fit: cover;
}

.featured-game-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.featured-game-content p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.featured-game-features {
  list-style: none;
  margin-bottom: 2rem;
}

.featured-game-features li {
  padding: 0.5rem 0;
  padding-left: 1.75rem;
  position: relative;
  color: var(--text-secondary);
}

.featured-game-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

/* === How It Works Section === */
.how-it-works {
  padding: 5rem 2rem;
  background-color: var(--bg-secondary);
}

.how-it-works .container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.step-card {
  text-align: center;
  padding: 2.5rem 2rem;
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    var(--accent-dark) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.step-card h3 {
  margin-bottom: 0.75rem;
}

.step-card p {
  font-size: 0.95rem;
}

/* === Why Choose Us Section === */
.why-choose-us {
  padding: 5rem 2rem;
  background-color: var(--bg-primary);
}

.why-choose-us .container {
  max-width: 1200px;
  margin: 0 auto;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.benefit-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.benefit-icon {
  width: 70px;
  height: 70px;
  background-color: var(--bg-card-hover);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.25rem;
  border: 1px solid var(--border-color);
}

.benefit-card h4 {
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.benefit-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* === About Section === */
.about-section {
  padding: 5rem 2rem;
  background-color: var(--bg-secondary);
}

.about-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.about-section h2 {
  margin-bottom: 1.5rem;
}

.about-section p {
  font-size: 1.125rem;
  line-height: 1.8;
}

/* === Responsible Gaming Section === */
.responsible-gaming {
  padding: 4rem 2rem;
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-color);
}

.responsible-gaming .container {
  max-width: 1200px;
  margin: 0 auto;
}

.responsible-gaming .section-header {
  margin-bottom: 2.5rem;
}

.responsible-gaming .section-header h2 {
  font-size: 1.75rem;
}

.gambling-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.gambling-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  background-color: #f5f5f5;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.gambling-logo img[src*="gamstop"] {
  background-color: #23272f !important;
}

.gambling-logo:hover {
  background-color: #ffffff;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.gambling-logo img {
  width: 120px;
  height: 50px;
  object-fit: contain;
  transition: var(--transition);
}

.responsible-gaming-text {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.responsible-gaming-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto;
}

/* === Footer === */
.footer {
  background-color: var(--bg-secondary);
  padding: 3rem 2rem 2rem;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-notice {
  text-align: center;
  padding: 1.5rem 2rem;
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  border-left: 4px solid var(--accent);
}

.footer-notice p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
}

.footer-notice strong {
  color: var(--accent);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.footer-links .btn-outline {
  min-width: 140px;
}

.footer-copyright {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.footer-copyright p {
  margin: 0;
  color: var(--text-muted);
}

/* === Game Page Styles === */
.game-page {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.game-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.game-header h1 {
  margin-bottom: 0.75rem;
  color: var(--accent);
}

.game-header p {
  font-size: 1.125rem;
}

.game-iframe-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  margin-bottom: 3rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
}

.game-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-xl);
}

.game-info-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.game-info-card h3 {
  color: var(--accent);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent);
}

.game-info-card ul {
  list-style: none;
  padding-left: 0;
}

.game-info-card li {
  padding: 0.625rem 0;
  padding-left: 1.75rem;
  position: relative;
  color: var(--text-secondary);
}

.game-info-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

.game-info-card p {
  color: var(--text-secondary);
}

/* === Policy Page Styles === */
.policy-page {
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.policy-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.policy-header h1 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.policy-header p {
  color: var(--text-muted);
}

.policy-content .card {
  margin-bottom: 1.5rem;
}

.policy-content h3 {
  color: var(--accent);
  margin-bottom: 1rem;
}

.policy-content ul {
  list-style: none;
  padding-left: 0;
  margin-top: 0.75rem;
}

.policy-content li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-secondary);
}

.policy-content li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* === Popups === */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(8px);
}

.popup-overlay.hidden {
  display: none;
}

.popup {
  background-color: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 3rem;
  max-width: 480px;
  width: 90%;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-accent);
  animation: popupFadeIn 0.3s ease-out;
}

@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.popup h2 {
  margin-bottom: 1rem;
  text-align: center;
  color: var(--accent);
}

.popup p {
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--text-primary);
}

.popup-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.popup-buttons .btn {
  min-width: 120px;
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-card);
  padding: 1.25rem 2rem;
  box-shadow: var(--shadow-xl);
  z-index: 9999;
  border-top: 1px solid var(--border-accent);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.cookie-popup.hidden {
  display: none;
}

.cookie-popup p {
  margin: 0;
  flex: 1;
  min-width: 280px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* === Games Grid (for single game display) === */
.games-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.game-card {
  text-align: center;
  cursor: pointer;
}

.game-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  background-color: var(--bg-secondary);
}

.game-card-title {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.game-card .btn {
  width: 100%;
  margin-top: 0.5rem;
}

/* === Utility Classes === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-center {
  text-align: center;
}

.text-accent {
  color: var(--accent);
}

.mt-1 {
  margin-top: 1rem;
}
.mt-2 {
  margin-top: 2rem;
}
.mt-3 {
  margin-top: 3rem;
}
.mb-1 {
  margin-bottom: 1rem;
}
.mb-2 {
  margin-bottom: 2rem;
}
.mb-3 {
  margin-bottom: 3rem;
}

/* === Responsive Design === */
@media (max-width: 1024px) {
  .featured-game-card {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero {
    padding: 3rem 1.5rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .header {
    padding: 1rem;
  }

  .header-container {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .nav {
    width: 100%;
    justify-content: center;
  }

  .featured-game {
    padding: 3rem 1.5rem;
  }

  .featured-game-card {
    padding: 1.5rem;
  }

  .featured-game-content h2 {
    font-size: 2rem;
  }

  .how-it-works,
  .why-choose-us,
  .about-section {
    padding: 3rem 1.5rem;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .responsible-gaming {
    padding: 3rem 1.5rem;
  }

  .gambling-logos {
    gap: 1.5rem;
  }

  .gambling-logo img {
    width: 100px;
    height: 40px;
  }

  .games-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .game-page {
    padding: 1.5rem;
  }

  .game-info-section {
    grid-template-columns: 1fr;
  }

  .popup {
    padding: 2rem;
  }

  .cookie-popup {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }

  .footer-links .btn-outline {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }

  .btn-lg {
    padding: 0.875rem 2rem;
  }

  .card {
    padding: 1.25rem;
  }

  .step-card,
  .benefit-card {
    padding: 1.5rem 1rem;
  }

  .footer-notice {
    padding: 1.25rem;
  }
}
