:root {
  --primary-color: #f44336;
  --secondary-color: #ffcdd2;
  --accent-color: #388e3c;
  --dark-color: #1a1a1a;
  --light-color: #ffffff;
  --gray-color: #666666;
  --light-gray: #f5f5f5;
  --border-color: #e0e0e0;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 12px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  --max-width: 1200px;
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Age Verification Popup */
.age-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(5px);
}

.age-popup-content {
  background: var(--light-color);
  padding: var(--spacing-xxl);
  border-radius: var(--border-radius);
  text-align: center;
  max-width: 500px;
  width: 90%;
  box-shadow: var(--shadow-hover);
  animation: fadeInUp 0.5s ease-out;
}

.age-popup h2 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
  font-size: 1.8rem;
}

.age-popup p {
  margin-bottom: var(--spacing-md);
  font-size: 1.1rem;
}

.age-warning {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.95rem !important;
}

.age-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  margin-bottom: var(--spacing-lg);
}

.responsible-gaming-logos {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  margin-top: var(--spacing-lg);
}

.responsible-logo {
  height: 40px;
  opacity: 0.8;
  transition: var(--transition);
}

.responsible-logo:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark-color);
  color: var(--light-color);
  padding: var(--spacing-md);
  z-index: 9999;
  transform: translateY(100%);
  transition: var(--transition);
}

.cookie-consent.show {
  transform: translateY(0);
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: var(--spacing-md);
}

.cookie-content p {
  margin: 0;
}

.cookie-content a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: var(--spacing-sm);
}

/* Header */
.header {
  background: linear-gradient(135deg, var(--dark-color) 0%, #2c2c2c 100%);
  color: var(--light-color);
  padding: var(--spacing-md) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  color: var(--primary-color);
  font-size: 1.8rem;
  font-weight: 700;
}

.tagline {
  font-size: 0.85rem;
  color: var(--secondary-color);
  display: block;
  margin-top: -0.25rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-xl);
}

.nav-link {
  color: var(--light-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--light-color);
  margin: 3px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4) contrast(1.2);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(244, 67, 54, 0.3),
    rgba(56, 142, 60, 0.3)
  );
  z-index: -1;
}

.hero-content {
  text-align: center;
  color: var(--light-color);
  max-width: 600px;
  padding: 0 var(--spacing-md);
  animation: fadeInUp 1s ease-out;
}

.hero-content h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-xl);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.btn-primary,
.btn-secondary,
.cta-button {
  display: inline-block;
  padding: var(--spacing-md) var(--spacing-xl);
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  min-width: 120px;
}

.btn-primary,
.cta-button {
  background: linear-gradient(135deg, var(--primary-color), #d32f2f);
  color: var(--light-color);
  box-shadow: var(--shadow);
}

.btn-primary:hover,
.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  background: linear-gradient(135deg, #d32f2f, var(--primary-color));
}

.btn-secondary {
  background: var(--light-color);
  color: var(--dark-color);
  border: 2px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--light-gray);
  transform: translateY(-1px);
}

.cta-button {
  font-size: 1.1rem;
  padding: var(--spacing-lg) var(--spacing-xxl);
}

/* Casinos Section */
.casinos-section {
  padding: var(--spacing-xxl) 0;
  background: var(--light-gray);
}

.casinos-section h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--dark-color);
  margin-bottom: var(--spacing-md);
}

.section-description {
  text-align: center;
  font-size: 1.1rem;
  color: var(--gray-color);
  margin-bottom: var(--spacing-xxl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.casino-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xxl);
}

.casino-card {
  background: var(--light-color);
  border-radius: var(--border-radius);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.casino-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.casino-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.casino-header h3 {
  color: var(--dark-color);
  font-size: 1.4rem;
}

.rating {
  text-align: right;
}

.stars {
  color: #ffc107;
  font-size: 1.2rem;
  display: block;
}

.rating-number {
  color: var(--gray-color);
  font-size: 0.9rem;
  font-weight: 600;
}

.casino-description {
  color: var(--gray-color);
  margin-bottom: var(--spacing-md);
  line-height: 1.5;
}

.casino-details {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-lg);
}

.casino-details span {
  font-size: 0.9rem;
  color: var(--gray-color);
}

.license {
  color: var(--accent-color) !important;
  font-weight: 600;
}

.casino-actions {
  display: flex;
  gap: var(--spacing-md);
}

.casino-actions .btn-primary,
.casino-actions .btn-secondary {
  flex: 1;
  text-align: center;
}

/* Darken casino logos/banners glare */
.casino-header img {
  filter: brightness(0.75) contrast(1.05);
  transition: var(--transition);
}

.casino-card:hover .casino-header img {
  filter: brightness(0.65) contrast(1.1);
}

/* Filter Controls */
.filter-controls {
  text-align: center;
}

.filter-controls h3 {
  margin-bottom: var(--spacing-md);
  color: var(--dark-color);
}

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.filter-btn {
  padding: var(--spacing-sm) var(--spacing-md);
  border: 2px solid var(--primary-color);
  background: var(--light-color);
  color: var(--primary-color);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color);
  color: var(--light-color);
}

/* Reviews Section */
.reviews-section {
  padding: var(--spacing-xxl) 0;
}

.reviews-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: var(--spacing-xxl);
  color: var(--dark-color);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
}

.review-card {
  background: var(--light-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.review-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.review-content {
  padding: var(--spacing-lg);
}

.review-content h3 {
  color: var(--dark-color);
  margin-bottom: var(--spacing-md);
  font-size: 1.3rem;
}

.review-content p {
  color: var(--gray-color);
  margin-bottom: var(--spacing-md);
  line-height: 1.5;
}

.read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.read-more:hover {
  color: #d32f2f;
}

/* Game Section */
.game-section {
  padding: var(--spacing-xxl) 0;
  background: linear-gradient(135deg, var(--dark-color) 0%, #2c2c2c 100%);
  color: var(--light-color);
  position: relative;
  overflow: hidden;
}

.game-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
}

.game-section > .container > p {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: var(--spacing-xxl);
  opacity: 0.9;
}

.game-container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--spacing-xxl);
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.wheel-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-background {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  object-fit: cover;
  opacity: 0.1;
  z-index: -1;
  filter: blur(2px);
}

.wheel {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  position: relative;
  border: 8px solid var(--primary-color);
  overflow: hidden;
  transition: transform 4s cubic-bezier(0.23, 1, 0.32, 1);
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  box-shadow: 0 0 30px rgba(244, 67, 54, 0.5);
}

.wheel-section {
  position: absolute;
  width: 50%;
  height: 50%;
  transform-origin: right bottom;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-color);
  font-weight: 700;
  font-size: 1.2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.wheel-section:nth-child(1) {
  transform: rotate(0deg);
  background: var(--primary-color);
}
.wheel-section:nth-child(2) {
  transform: rotate(45deg);
  background: var(--accent-color);
}
.wheel-section:nth-child(3) {
  transform: rotate(90deg);
  background: #ff9800;
}
.wheel-section:nth-child(4) {
  transform: rotate(135deg);
  background: var(--primary-color);
}
.wheel-section:nth-child(5) {
  transform: rotate(180deg);
  background: var(--accent-color);
}
.wheel-section:nth-child(6) {
  transform: rotate(225deg);
  background: #9c27b0;
}
.wheel-section:nth-child(7) {
  transform: rotate(270deg);
  background: var(--primary-color);
}
.wheel-section:nth-child(8) {
  transform: rotate(315deg);
  background: var(--accent-color);
}

.wheel-pointer {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 30px solid var(--light-color);
  z-index: 10;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.spin-button {
  margin-top: var(--spacing-xl);
  padding: var(--spacing-md) var(--spacing-xl);
  background: linear-gradient(135deg, var(--primary-color), #d32f2f);
  color: var(--light-color);
  border: none;
  border-radius: var(--border-radius);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.spin-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.spin-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.game-stats {
  background: rgba(255, 255, 255, 0.1);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.stat-label {
  font-weight: 500;
}

.stat-value {
  font-weight: 700;
  color: var(--secondary-color);
}

.prize-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.prize-modal.show {
  display: flex;
}

.prize-content {
  background: var(--light-color);
  padding: var(--spacing-xxl);
  border-radius: var(--border-radius);
  text-align: center;
  max-width: 400px;
  width: 90%;
  animation: bounceIn 0.5s ease-out;
}

.prize-content h3 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
}

.prize-content p {
  color: var(--dark-color);
  font-size: 1.2rem;
  margin-bottom: var(--spacing-lg);
}

/* Trust Section */
.trust-section {
  padding: var(--spacing-xxl) 0;
  background: var(--light-gray);
}

.trust-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: var(--spacing-xxl);
  color: var(--dark-color);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xxl);
}

.trust-item {
  text-align: center;
  padding: var(--spacing-xl);
  background: var(--light-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.trust-item h3 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
  font-size: 1.3rem;
}

.trust-item p {
  color: var(--gray-color);
  line-height: 1.5;
}

.responsible-gaming {
  text-align: center;
  background: var(--light-color);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.responsible-gaming h3 {
  color: var(--dark-color);
  margin-bottom: var(--spacing-md);
}

.support-organizations {
  display: flex;
  justify-content: center;
  gap: var(--spacing-xl);
  margin: var(--spacing-lg) 0;
}

.support-logo {
  height: 60px;
  opacity: 0.8;
  transition: var(--transition);
}

.support-logo:hover {
  opacity: 1;
  transform: scale(1.05);
}

.responsible-text {
  color: var(--gray-color);
  font-style: italic;
  max-width: 600px;
  margin: 0 auto;
}

/* Contact Section */
.contact-section {
  padding: var(--spacing-xxl) 0;
}

.contact-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: var(--spacing-xxl);
  color: var(--dark-color);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xxl);
}

.contact-info h3,
.contact-form h3 {
  color: var(--dark-color);
  margin-bottom: var(--spacing-lg);
  font-size: 1.4rem;
}

.contact-item {
  margin-bottom: var(--spacing-md);
}

.contact-item strong {
  display: block;
  color: var(--dark-color);
  margin-bottom: var(--spacing-xs);
}

.contact-item a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.contact-item a:hover {
  color: #d32f2f;
}

.contact-item address {
  font-style: normal;
  color: var(--gray-color);
}

.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-xs);
  color: var(--dark-color);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--spacing-md);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: var(--font-family);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1);
}

/* Footer */
.footer {
  background: var(--dark-color);
  color: var(--light-color);
  padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-section h3,
.footer-section h4 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: var(--spacing-sm);
}

.footer-section a {
  color: var(--light-color);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--secondary-color);
}

.age-disclaimer {
  margin-top: var(--spacing-md);
  padding: var(--spacing-md);
  background: rgba(244, 67, 54, 0.1);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary-color);
}

.age-disclaimer strong {
  color: var(--primary-color);
  display: block;
  margin-bottom: var(--spacing-xs);
}

.footer-responsible {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
}

.footer-logo {
  height: 40px;
  opacity: 0.8;
  transition: var(--transition);
}

.footer-logo:hover {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: var(--spacing-lg);
  text-align: center;
}

.footer-bottom p {
  margin-bottom: var(--spacing-sm);
}

.disclaimer {
  font-size: 0.9rem;
  color: var(--gray-color);
  font-style: italic;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark-color);
    flex-direction: column;
    padding: var(--spacing-md);
    box-shadow: var(--shadow);
  }

  .nav-menu.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-content h2 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .casino-grid {
    grid-template-columns: 1fr;
  }

  .casino-actions {
    flex-direction: column;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .game-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .wheel {
    width: 250px;
    height: 250px;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .age-buttons {
    flex-direction: column;
  }

  .filter-buttons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-sm);
  }

  .hero-content h2 {
    font-size: 1.5rem;
  }

  .casinos-section h2,
  .reviews-section h2,
  .game-section h2,
  .trust-section h2,
  .contact-section h2 {
    font-size: 2rem;
  }

  .casino-card,
  .review-card,
  .trust-item {
    padding: var(--spacing-md);
  }

  .wheel {
    width: 200px;
    height: 200px;
  }

  .wheel-section {
    font-size: 1rem;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.4);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .wheel {
    transition: none;
  }
}

/* Print styles */
@media print {
  .header,
  .footer,
  .game-section,
  .age-popup,
  .cookie-consent {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .casino-card,
  .review-card {
    break-inside: avoid;
  }
}
