/* CSS Variables */
:root {
  --bg-primary: #f5f5f5;
  --bg-secondary: #e0e0e0;
  --bg-card: #ffffff;
  --border-primary: #d0d0d0;
  --border-hover: #b0b0b0;
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-muted: #6a6a6a;
  --accent-coral: #ff6f61;
  --accent-teal: #26a69a;
  --warning: #f4a261;
  --max-width: 1200px;
  --section-padding: 40px;
  --border-radius: 16px;
  --transition: 0.3s ease;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-primary);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 60px;
  width: auto;
}

/* Hero Section */
.hero {
  padding: 10px 0;
  text-align: center;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 24px;
  color: var(--text-secondary);
}

.hero-description {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto;
}

/* Features Section */
.features-title {
  font-size: 28px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 32px;
  color: var(--text-primary);
}

.features-list {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.features-list li {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
}

.warning {
  font-size: 14px;
  text-align: center;
  font-weight: 600;
  color: var(--warning);
  margin-top: 20px;
}

/* Casino Cards */
.casinos {
  padding: var(--section-padding) 0;
}

.casino-grid {
  display: grid;
  gap: 32px;
  margin-top: 40px;
}

.casino-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius);
  padding: 24px;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.casino-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-color: var(--border-hover);
}

.casino-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.casino-logo img {
  height: 48px;
  width: auto;
}

.codere-logo {
  background-color: #38454e;
  border-radius: 10px;
}

.casino-rating {
  text-align: right;
}

.stars {
  color: var(--accent-coral);
  font-size: 20px;
  margin-bottom: 4px;
}

.evaluations {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.casino-details {
  display: grid;
  gap: 24px;
}

.bonus-section,
.score-section {
  text-align: center;
}

.bonus-label,
.score-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.bonus-amount {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.amount {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-coral);
}

.score {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent-teal);
}

.actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 12px;
}

.btn-primary,
.btn-secondary {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
}

.btn-primary {
  background-color: var(--accent-coral);
  color: white;
}

.btn-primary:hover {
  background-color: #e55a4f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 111, 97, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-primary);
}

.btn-secondary:hover {
  background-color: var(--bg-secondary);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* Review Factors */
.review-factors {
  padding: var(--section-padding) 0;
  background-color: var(--bg-secondary);
}

.factors-grid {
  display: grid;
  gap: 24px;
  margin-top: 40px;
}

.factor-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius);
  padding: 24px;
  transition: var(--transition);
}

.factor-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.factor-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.factor-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Tips Section */
.tips {
  padding: var(--section-padding) 0;
}

.tips-grid {
  display: grid;
  gap: 24px;
  margin-top: 40px;
}

.tip-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius);
  padding: 24px;
  transition: var(--transition);
  text-align: center;
}

.tip-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tip-card i {
  color: var(--accent-coral);
  font-size: 24px;
  display: block;
  margin-bottom: 16px;
}

.tip-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.tip-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Conclusion */
.conclusion {
  padding: var(--section-padding) 0;
  background-color: var(--bg-secondary);
  text-align: center;
}

.conclusion p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto;
}

/* Footer */
.footer {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-primary);
  padding: 40px 0;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-coral);
}

.responsible-gaming {
  text-align: center;
  border-top: 1px solid var(--border-primary);
  padding-top: 24px;
}

.responsible-gaming p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.responsible-gaming .warning {
  font-size: 12px;
  font-weight: 600;
  color: var(--warning);
}

/* Legal Pages */
.legal-page {
  padding: var(--section-padding) 0;
}

.back-link {
  display: inline-block;
  margin-bottom: 32px;
  color: var(--accent-coral);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.back-link:hover {
  color: #e55a4f;
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
  background-color: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius);
  padding: 40px;
}

.legal-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-primary);
  text-align: center;
}

.legal-intro {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.7;
}

.legal-section {
  margin-bottom: 32px;
  padding: 24px;
  border-left: 4px solid var(--accent-coral);
  background-color: var(--bg-primary);
  border-radius: 0 8px 8px 0;
}

.legal-section h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.legal-section p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.legal-section ul {
  list-style: none;
  margin-left: 20px;
}

.legal-section li {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
  position: relative;
}

.legal-section li::before {
  content: "•";
  color: var(--accent-coral);
  font-weight: 600;
  position: absolute;
  left: -15px;
}

.legal-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-primary);
  text-align: center;
}

.legal-footer p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.last-updated {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Contact Page */
.contact-page {
  padding: var(--section-padding) 0;
  text-align: center;
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
  min-height: 80vh;
}

.contact-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.contact-description {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.7;
}

.contact-icon {
  font-size: 64px;
  color: var(--accent-coral);
  margin-bottom: 32px;
}

.contact-button {
  display: inline-block;
  padding: 16px 32px;
  background-color: var(--accent-coral);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition);
  margin-bottom: 40px;
}

.contact-button:hover {
  background-color: #e55a4f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 111, 97, 0.3);
}

.contact-footer {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Responsive Design */
@media (min-width: 768px) {
  .hero-title {
    font-size: 48px;
  }

  .section-title {
    font-size: 36px;
  }

  .features-list {
    justify-content: center;
  }

  .casino-details {
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
  }

  .actions {
    flex-direction: column;
  }

  .factors-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tips-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-links {
    justify-content: center;
  }
}

@media (min-width: 1024px) {
  .casino-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tips-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Brand-specific styling */
.casino-card.codere {
  border-left: 4px solid var(--accent-coral);
}

.casino-card.betsson {
  border-left: 4px solid var(--accent-teal);
}

/* Legal Icons */
.legal-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 32px 0;
  flex-wrap: wrap;
  border-top: 1px solid var(--border-primary);
  border-bottom: 1px solid var(--border-primary);
  background-color: #4a4a4a;
  border-radius: 10px;
  padding: 24px 0;
}

.legal-icons img {
  height: 80px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: brightness(0.8);
  transition: var(--transition);
}

.legal-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 4px;
  transition: var(--transition);
}

.legal-icons a:hover {
  background-color: var(--bg-secondary);
  transform: translateY(-2px);
}

.legal-icons a:hover img {
  filter: brightness(1);
}

.legal-icons img:not([src*="mayor-18-pba"]) {
  cursor: pointer;
}

@media (max-width: 768px) {
  .legal-icons {
    gap: 12px;
    padding: 20px 0;
  }

  .legal-icons img {
    height: 32px;
    max-width: 80px;
  }
}
