/* Critical CSS - Above the fold styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
.header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2563eb;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 3px 0;
  transition: 0.3s;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: #2563eb;
}

.cta-mobile {
  background: #2563eb;
  color: white !important;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-weight: bold;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 4rem 0;
  text-align: center;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #1e293b;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #64748b;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.trust-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: #475569;
}

.trust-icon {
  font-size: 1.2rem;
}

.search-container {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 1rem 3rem 1rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 50px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

.search-input:focus {
  border-color: #2563eb;
}

.search-btn {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Intro Section */
.intro-section {
  padding: 3rem 0;
  background: #fff;
}

.intro-text {
  font-size: 1.1rem;
  text-align: center;
  color: #64748b;
  max-width: 800px;
  margin: 0 auto;
}

/* Top Sites Section */
.top-sites {
  padding: 4rem 0;
  background: #f8fafc;
}

.top-sites h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: #1e293b;
}

.sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.site-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.site-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.site-card.placeholder {
  background: #f1f5f9;
  border: 2px dashed #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.placeholder-content {
  text-align: center;
  color: #64748b;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

/* Replaced site-logo styles with brand-text styles for text-based brand names */
.brand-text {
  font-size: 1.4rem;
  font-weight: bold;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-align: center;
  min-width: 120px;
  display: inline-block;
}

.pokerstars-brand {
  background-color: #1a1a1a;
  color: #ffd700;
  border: 2px solid #ffd700;
}

.netbet-brand {
  background-color: #e60012;
  color: white;
  border: 2px solid #e60012;
}

.unibet-brand {
  background-color: #00a651;
  color: white;
  border: 2px solid #00a651;
}

.rating {
  text-align: right;
}

.stars {
  color: #fbbf24;
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.rating-text {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 500;
}

.site-name {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #1e293b;
}

.features {
  list-style: none;
  margin-bottom: 1.5rem;
}

.features li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: #475569;
}

.bonus-block {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: #1e40af;
}

.cta-button {
  display: block;
  width: 100%;
  background: #2563eb;
  color: white;
  text-decoration: none;
  padding: 1rem;
  border-radius: 50px;
  text-align: center;
  font-weight: bold;
  font-size: 1rem;
  transition: background-color 0.3s;
  margin-bottom: 0.5rem;
}

.cta-button:hover {
  background: #1d4ed8;
}

.card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.review-link {
  text-align: center;
  color: #64748b;
  text-decoration: none;
  font-size: 0.9rem;
}

.review-link:hover {
  color: #2563eb;
}

.cta-section {
  text-align: center;
}

.secondary-button {
  display: inline-block;
  background: white;
  color: #2563eb;
  text-decoration: none;
  padding: 1rem 2rem;
  border: 2px solid #2563eb;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.3s;
}

.secondary-button:hover {
  background: #2563eb;
  color: white;
}

/* Trust Section */
.trust-section {
  padding: 4rem 0;
  background: white;
}

.trust-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: #1e293b;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.trust-block {
  text-align: center;
  padding: 2rem;
}

.trust-block h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #1e293b;
}

.trust-block p {
  color: #64748b;
  line-height: 1.6;
}

.disclosure {
  text-align: center;
  font-size: 0.9rem;
  color: #64748b;
  font-style: italic;
  max-width: 600px;
  margin: 0 auto;
}

/* Guides Section */
.guides-section {
  padding: 4rem 0;
  background: #f8fafc;
}

.guides-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: #1e293b;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.guide-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.guide-card:hover {
  transform: translateY(-3px);
}

.guide-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #1e293b;
}

.guide-card p {
  color: #64748b;
  font-size: 0.95rem;
}

/* Comparison Table */
.comparison-table {
  padding: 4rem 0;
  background: white;
}

.comparison-table h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: #1e293b;
}

.table-wrapper {
  overflow-x: auto;
}

.comparison {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.comparison th {
  background: #2563eb;
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

.comparison td {
  padding: 1rem;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
}

.comparison tr:hover {
  background: #f8fafc;
}

.placeholder-row {
  opacity: 0.5;
}

.table-cta {
  background: #2563eb;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.table-cta:hover {
  background: #1d4ed8;
}

/* Added table brand styles for comparison table */
.table-brand {
  font-weight: bold;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.9rem;
  display: inline-block;
}

.table-brand.pokerstars-brand {
  background-color: #1a1a1a;
  color: #ffd700;
  border: 1px solid #ffd700;
}

.table-brand.netbet-brand {
  background-color: #e60012;
  color: white;
  border: 1px solid #e60012;
}

.table-brand.unibet-brand {
  background-color: #00a651;
  color: white;
  border: 1px solid #00a651;
}

/* Breadcrumb */
.breadcrumb {
  background: #f8fafc;
  padding: 1rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.breadcrumb a {
  color: #2563eb;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Page Header */
.page-header {
  padding: 3rem 0;
  background: white;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #1e293b;
}

.page-header p {
  font-size: 1.1rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
}

/* Legal Content */
.legal-content {
  padding: 4rem 0;
  background: #f8fafc;
}

.legal-text {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.legal-text h2 {
  color: #1e293b;
  margin-bottom: 1rem;
  margin-top: 2rem;
  font-size: 1.5rem;
}

.legal-text h2:first-child {
  margin-top: 0;
}

.legal-text p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #475569;
}

.legal-text ul {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

.legal-text li {
  margin-bottom: 0.5rem;
  color: #475569;
}

.legal-text a {
  color: #2563eb;
  text-decoration: none;
}

.legal-text a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  background: #1e293b;
  color: white;
  padding: 3rem 0 1rem;
}

.compliance-logos {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

/* Replaced image styles with text-based compliance badges */
.compliance-text {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.compliance-text .age-restriction {
  display: inline-block;
  background-color: #dc2626;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1rem;
  border: 2px solid #dc2626;
}

.compliance-text .anj-text {
  display: inline-block;
  background-color: #1d4ed8;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1rem;
  border: 2px solid #1d4ed8;
}

.compliance-text .sos-text {
  display: inline-block;
  background-color: #059669;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1rem;
  border: 2px solid #059669;
}

.responsible-gambling {
  background: #334155;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.responsible-gambling h3 {
  color: #fbbf24;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.responsible-gambling p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-link {
  color: #94a3b8;
  text-decoration: none;
}

.footer-link:hover {
  color: white;
  text-decoration: underline;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #475569;
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-bottom p {
  margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: white;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 2rem;
    transition: left 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    left: 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .trust-row {
    gap: 1rem;
  }

  .trust-item {
    font-size: 0.9rem;
  }

  .sites-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

  .footer-nav {
    flex-direction: column;
    gap: 1rem;
  }

  .compliance-logos {
    gap: 1rem;
  }

  .compliance-text {
    gap: 0.5rem;
  }

  .legal-text {
    padding: 2rem;
  }
}

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

  .hero {
    padding: 2rem 0;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .site-card {
    padding: 1.5rem;
  }

  .comparison th,
  .comparison td {
    padding: 0.5rem;
    font-size: 0.9rem;
  }

  .compliance-text .age-restriction,
  .compliance-text .anj-text,
  .compliance-text .sos-text {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }

  .legal-text {
    padding: 1.5rem;
  }
}

/* Focus states for accessibility */
.nav-link:focus,
.cta-button:focus,
.secondary-button:focus,
.search-input:focus,
.footer-link:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Screen reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
