/* ========================================
   braufen Social Casino - Main Styles
   Modern, Clean, UK-Focused Design
   ======================================== */

/* === CSS Variables === */
:root {
  /* Colors */
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #8b5cf6;
  --accent: #f59e0b;
  --accent-light: #fbbf24;

  --bg-dark: #0b0d16;
  --bg-darker: #070911;
  --bg-card: #1a1d2e;
  --bg-hover: #252a3f;

  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;

  /* Spacing */
  --container-width: 1200px;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --border-radius-lg: 16px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
}

/* === Reset & Base === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary);
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* === Container === */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

.btn-outline:hover {
  background: var(--text-secondary);
  color: var(--bg-dark);
}

.btn-text {
  background: none;
  color: var(--text-secondary);
  padding: 8px 12px;
}

.btn-text:hover {
  color: var(--text-primary);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 18px;
}

/* === Header & Navigation === */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 13, 22, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
}

.nav-brand a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
}

.logo {
  width: 40px;
  height: 40px;
}

.brand-text {
  background: linear-gradient(
    135deg,
    var(--primary-light),
    var(--accent-light)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-menu a {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-menu a.active {
  color: var(--primary-light);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

/* === Hero Section === */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 80px 20px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e293b 100%);
  z-index: -1;
}

.hero-background::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(99, 102, 241, 0.2) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 50%,
      rgba(139, 92, 246, 0.2) 0%,
      transparent 50%
    );
}

.hero-content {
  max-width: 900px;
  text-align: center;
  z-index: 1;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.gradient-text {
  background: linear-gradient(
    135deg,
    var(--primary-light),
    var(--accent-light)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-disclaimer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
}

/* === Section === */
.section {
  padding: 80px 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* === About Section === */
.about-section {
  background: var(--bg-darker);
}

.about-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.about-card {
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--border-radius);
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.about-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 12px 24px rgba(99, 102, 241, 0.2);
}

.about-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.about-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.about-card p {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* === Games Grid === */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.game-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  border-color: var(--primary);
}

.game-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.game-card:hover .game-image img {
  transform: scale(1.05);
}

.game-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: var(--transition);
}

.game-card:hover .game-overlay {
  opacity: 1;
}

.game-info {
  padding: 24px;
}

.game-info h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.game-info p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

.game-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--accent-light);
  font-size: 14px;
}

.game-rating i {
  font-size: 12px;
}

.game-rating span {
  margin-left: 8px;
  color: var(--text-muted);
}

/* === Games Full Grid (for games.php) === */
.games-grid-full {
  display: grid;
  gap: 32px;
  margin-top: 48px;
}

.game-card-detailed {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.game-card-detailed:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
}

.game-card-detailed .game-image {
  position: relative;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
}

.game-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.game-info-detailed h3 {
  font-size: 28px;
  margin-bottom: 12px;
}

.game-info-detailed p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.8;
}

.game-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.game-category {
  color: var(--text-muted);
  font-size: 14px;
}

.game-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Games Filter */
.games-filter {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
}

.filter-btn {
  padding: 10px 20px;
  background: var(--bg-card);
  color: var(--text-secondary);
  border-radius: var(--border-radius-sm);
  font-weight: 500;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* === Features Section === */
.features-section {
  background: var(--bg-darker);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.feature-item {
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-card);
  border-radius: var(--border-radius);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-item:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.feature-item h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.feature-item p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* === FAQ Section === */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border-radius: var(--border-radius-sm);
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

.faq-question:hover {
  color: var(--primary-light);
}

.faq-question i {
  transition: var(--transition);
  color: var(--primary);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.faq-answer a {
  color: var(--primary-light);
  text-decoration: underline;
}

/* === Alerts & Disclaimers === */
.alert {
  padding: 16px 20px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 24px 0;
}

.alert i {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.alert-info {
  background: rgba(59, 130, 246, 0.1);
  border-left: 4px solid var(--info);
  color: #93c5fd;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border-left: 4px solid var(--warning);
  color: #fcd34d;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  border-left: 4px solid var(--danger);
  color: #fca5a5;
}

.disclaimer-box {
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--warning);
  margin-top: 32px;
}

.disclaimer-box i {
  color: var(--warning);
  margin-right: 12px;
}

/* === Footer === */
.footer {
  background: var(--bg-darker);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 60px 20px 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo {
  width: 40px;
  height: 40px;
}

.footer-brand-text {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    var(--primary-light),
    var(--accent-light)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-column h4 {
  margin-bottom: 16px;
  font-size: 18px;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul li a {
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-column ul li a:hover {
  color: var(--primary-light);
  padding-left: 4px;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--success);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 16px;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-disclaimer {
  background: rgba(245, 158, 11, 0.1);
  padding: 16px;
  border-radius: var(--border-radius-sm);
  margin-bottom: 16px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.footer-copyright {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

.link-button {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: none;
  padding: 0;
  font-size: inherit;
  transition: var(--transition);
}

.link-button:hover {
  color: var(--primary-light);
}

/* === Modals === */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideIn 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 32px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--text-primary);
  transform: rotate(90deg);
}

.modal-content h2 {
  margin-bottom: 16px;
  font-size: 28px;
}

.modal-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
}

.modal-buttons {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* Age Modal */
.age-modal .modal-content {
  text-align: center;
  max-width: 500px;
}

.age-modal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  color: var(--primary);
}

.age-modal-icon img {
  width: 100%;
  height: 100%;
}

.age-modal-disclaimer {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 16px;
}

.age-modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--bg-card);
  padding: 20px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  z-index: 9998;
  border-top: 2px solid var(--primary);
  display: none;
}

.cookie-banner.show {
  display: block;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-text {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 300px;
}

.cookie-text i {
  font-size: 24px;
  color: var(--accent);
  flex-shrink: 0;
}

.cookie-text p {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

.cookie-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Cookie Settings */
.cookie-option {
  background: var(--bg-darker);
  padding: 20px;
  border-radius: var(--border-radius-sm);
  margin-bottom: 16px;
}

.cookie-option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.cookie-option h3 {
  font-size: 18px;
  margin-bottom: 0;
}

.cookie-option p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #475569;
  transition: var(--transition);
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: var(--transition);
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--success);
}

input:checked + .slider:before {
  transform: translateX(24px);
}

.switch.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.switch.disabled .slider {
  cursor: not-allowed;
}

/* === Page Header === */
.page-header {
  padding: 80px 20px 60px;
  text-align: center;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-header h1 {
  font-size: 48px;
  margin-bottom: 16px;
}

.page-header p {
  font-size: 18px;
  color: var(--text-secondary);
}

/* === Reviews === */
.reviews-header {
  padding: 60px 20px;
}

.game-review-header {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.game-thumb {
  width: 200px;
  height: 133px;
  border-radius: var(--border-radius);
  object-fit: cover;
}

.game-review-info h1 {
  font-size: 36px;
  margin-bottom: 16px;
}

.game-rating-large {
  margin-bottom: 16px;
}

.game-rating-large .stars {
  color: var(--accent-light);
  font-size: 20px;
  margin-bottom: 8px;
}

.rating-score {
  display: block;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.rating-count {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
}

.reviews-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
}

.reviews-sidebar {
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--border-radius);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.rating-breakdown h3 {
  margin-bottom: 20px;
  font-size: 18px;
}

.rating-bar-item {
  display: grid;
  grid-template-columns: 50px 1fr 50px;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.rating-label {
  font-size: 14px;
  color: var(--text-secondary);
}

.rating-bar {
  height: 8px;
  background: var(--bg-darker);
  border-radius: 4px;
  overflow: hidden;
}

.rating-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.5s ease;
}

.rating-percent {
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
}

.filter-box {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-box h4 {
  margin-bottom: 12px;
  font-size: 16px;
}

.form-select {
  width: 100%;
  padding: 10px;
  background: var(--bg-darker);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-sm);
  font-family: inherit;
  cursor: pointer;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.review-card {
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 16px;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviewer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.reviewer-name {
  font-size: 16px;
  margin-bottom: 4px;
}

.reviewer-location {
  font-size: 14px;
  color: var(--text-muted);
}

.review-meta {
  text-align: right;
}

.review-stars {
  color: var(--accent-light);
  margin-bottom: 4px;
}

.review-date {
  font-size: 14px;
  color: var(--text-muted);
}

.review-title {
  font-size: 18px;
  margin-bottom: 12px;
}

.review-body p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.review-footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.review-helpful-btn {
  background: var(--bg-darker);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
  font-size: 14px;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.review-helpful-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.pagination-info {
  color: var(--text-secondary);
  font-weight: 500;
}

.pagination .btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* === Legal Pages === */
.legal-header {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.legal-content {
  padding: 60px 20px;
}

.legal-wrapper {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.legal-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--border-radius);
}

.legal-sidebar h4 {
  margin-bottom: 16px;
  font-size: 18px;
}

.legal-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-nav li a {
  display: block;
  padding: 8px 12px;
  color: var(--text-secondary);
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
}

.legal-nav li a:hover {
  background: var(--bg-darker);
  color: var(--primary-light);
}

.legal-main section {
  margin-bottom: 48px;
}

.legal-main h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--primary-light);
}

.legal-main h3 {
  font-size: 24px;
  margin: 24px 0 16px;
}

.legal-main h4 {
  font-size: 20px;
  margin: 20px 0 12px;
}

.legal-main p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-main ul,
.legal-main ol {
  list-style-position: inside;
  margin-bottom: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.legal-main ul {
  list-style-type: disc;
}

.legal-main ol {
  list-style-type: decimal;
}

.legal-main li {
  margin-bottom: 8px;
  padding-left: 8px;
}

.contact-box,
.info-box {
  background: var(--bg-card);
  padding: 20px;
  border-radius: var(--border-radius-sm);
  border-left: 4px solid var(--primary);
  margin: 20px 0;
}

.rights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.right-card {
  background: var(--bg-card);
  padding: 20px;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.right-card h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 16px;
  color: var(--primary-light);
}

.right-card i {
  color: var(--primary);
}

.right-card p {
  font-size: 14px;
  margin: 0;
}

/* Cookie Tables */
.cookie-category {
  margin: 32px 0;
}

.cookie-category h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--primary-light);
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  background: var(--bg-card);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
}

.cookie-table thead {
  background: var(--bg-darker);
}

.cookie-table th,
.cookie-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cookie-table th {
  font-weight: 600;
  color: var(--text-primary);
}

.cookie-table td {
  color: var(--text-secondary);
}

.cookie-table tbody tr:last-child td {
  border-bottom: none;
}

/* Responsible Gaming */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.tip-card {
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--border-radius);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.tip-card i {
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 16px;
}

.tip-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.tip-card p {
  font-size: 14px;
  margin: 0;
}

.tools-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}

.tool-item {
  background: var(--bg-card);
  padding: 20px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.tool-item h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--primary-light);
}

.tool-item p {
  margin-bottom: 12px;
}

.help-resources {
  margin: 32px 0;
}

.help-resources h3 {
  margin-bottom: 24px;
}

.resource-card {
  background: var(--bg-card);
  padding: 20px;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--success);
  margin-bottom: 16px;
}

.resource-card h4 {
  color: var(--success);
  margin-bottom: 12px;
}

/* === Utility Classes === */
.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 2rem;
}

.mt-5 {
  margin-top: 3rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

/* === Responsive Design === */
@media (max-width: 1024px) {
  .legal-wrapper,
  .reviews-layout {
    grid-template-columns: 1fr;
  }

  .legal-sidebar,
  .reviews-sidebar {
    position: relative;
    top: 0;
    margin-bottom: 24px;
  }

  .game-card-detailed {
    grid-template-columns: 1fr;
  }

  .cookie-table {
    font-size: 14px;
  }

  .cookie-table th,
  .cookie-table td {
    padding: 10px 12px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 36px;
  }

  .btn-primary,
  .btn-outline {
    width: 100%;
  }

  .games-filter {
    justify-content: start;
    gap: 5px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .section-title {
    font-size: 32px;
  }

  .nav-menu {
    position: fixed;
    top: 72px;
    left: -100%;
    width: 100%;
    flex-direction: column;
    background: var(--bg-darker);
    padding: 20px;
    gap: 16px;
    transition: left 0.3s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-buttons {
    width: 100%;
    justify-content: stretch;
  }

  .cookie-buttons .btn {
    flex: 1;
  }

  .game-review-header {
    flex-direction: column;
    text-align: center;
  }

  .game-thumb {
    width: 100%;
    height: auto;
  }

  .pagination {
    flex-direction: column;
    gap: 16px;
  }

  .pagination .btn-secondary {
    width: 100%;
  }

  .page-header h1 {
    font-size: 32px;
  }

  /* Legal Pages Mobile */
  .legal-main h2 {
    font-size: 28px;
  }

  .legal-main h3 {
    font-size: 20px;
  }

  .legal-sidebar {
    padding: 16px;
  }

  .cookie-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .cookie-table table {
    min-width: 500px;
  }

  .legal-content {
    padding: 40px 20px;
  }

  .contact-box,
  .info-box {
    padding: 16px;
  }

  .rights-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }

  .section-title {
    font-size: 24px;
  }

  .modal-content {
    padding: 24px;
  }

  .legal-main h2 {
    font-size: 22px;
  }

  .legal-main h3 {
    font-size: 18px;
  }

  .legal-main h4 {
    font-size: 16px;
  }

  .btn-lg {
    padding: 12px 24px;
    font-size: 16px;
  }

  .page-header h1 {
    font-size: 26px;
  }

  .page-header p {
    font-size: 14px;
  }

  .cookie-table {
    font-size: 12px;
  }

  .cookie-table th,
  .cookie-table td {
    padding: 8px 10px;
  }

  .alert {
    padding: 12px 16px;
    font-size: 14px;
  }

  .cookie-category h3 {
    font-size: 16px;
  }

  .legal-nav {
    font-size: 14px;
  }

  .tips-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* === Print Styles === */
@media print {
  .header,
  .footer,
  .cookie-banner,
  .modal,
  .nav-toggle {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .legal-main h2 {
    page-break-before: always;
  }

  .legal-main h2:first-child {
    page-break-before: auto;
  }
}
