/* Shared CasinoLogin subdomain presentation layer.
   Keep this file identical in every brand folder. */

html {
  scroll-behavior: smooth;
}

body {
  background: #f8fafc;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid #f59e0b;
  outline: 3px solid color-mix(in srgb, var(--brand) 72%, white);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20000;
  padding: 0.65rem 0.9rem;
  border-radius: 0.6rem;
  color: white;
  background: var(--text);
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.casino-review-header {
  position: relative;
  overflow: hidden;
  padding-block: clamp(1.25rem, 4vw, 3rem);
  background:
    radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 38%),
    linear-gradient(180deg, #fff, #f8fafc);
}

.casino-review-header .casino-card,
.info-card,
.review-section-content,
.table-of-contents,
.support-card,
.error-sidebar .card {
  border: 1px solid #e2e8f0;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.07);
}

.casino-review-header .casino-card {
  overflow: visible;
  border-radius: 1.15rem;
}

.casino-mascot {
  top: -1.35rem;
  right: 0.75rem;
}

.casino-mascot img {
  display: block;
  width: 100%;
  height: auto;
}

.review-meta {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.92);
}

.review-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid #cbd5e1;
  border-left: 4px solid var(--brand);
  border-radius: 0.8rem;
  color: #334155;
  background: #fff;
  font-size: 0.9rem;
  line-height: 1.55;
}

.review-status--legacy {
  border-left-color: #d97706;
  background: #fffbeb;
}

.review-status--current {
  border-left-color: #059669;
  background: #ecfdf5;
}

.casino-screenshot {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.casino-logo,
.casino-mascot,
.toc-mascot,
.author-avatar,
.reviewer-avatar,
.footer-mascot {
  object-fit: contain;
}

.dropdown-logo,
.review-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.author-avatar,
.reviewer-avatar {
  padding: 0.22rem;
  background: #fff;
}

.author-name,
.reviewer-name {
  color: var(--text);
  text-decoration: none;
}

.author-name:hover,
.reviewer-name:hover {
  color: var(--brand-600);
  text-decoration: underline;
}

.casino-overview,
.review-content {
  background: #f8fafc;
}

.overview-title,
.review-section-content h2,
.review-section-content h3 {
  letter-spacing: -0.025em;
}

.info-card,
.review-section-content {
  border-radius: 1rem;
  background: #fff;
}

.info-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

.review-section-content {
  padding: clamp(1.15rem, 3vw, 2.25rem);
}

.review-section-content p,
.review-section-content li {
  line-height: 1.75;
}

.table-responsive,
.comparison-table-wrapper {
  overflow-x: auto;
  max-width: 100%;
  border-radius: 0.85rem;
  -webkit-overflow-scrolling: touch;
}

.review-table {
  width: 100%;
  margin: 1rem 0 1.5rem;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-collapse: collapse;
  border-radius: 0.85rem;
  font-size: 0.88rem;
}

.review-table th,
.review-table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
}

.review-table th {
  color: #fff;
  background: var(--text);
  font-weight: 600;
}

.review-table tr:nth-child(even) td {
  background: #f8fafc;
}

.review-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem 1.25rem;
  margin: 1rem 0 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  background: #f8fafc;
}

.review-info-box,
.review-warning-box {
  margin: 1rem 0 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 0 0.85rem 0.85rem 0;
  line-height: 1.65;
}

.review-info-box {
  border-left: 3px solid var(--brand);
  background: #f8fafc;
}

.review-warning-box {
  border-left: 3px solid #d97706;
  background: #fffbeb;
}

.trust-button,
.btn {
  min-height: 2.75rem;
}

.trust-button {
  justify-content: center;
}

.footer-content > div:first-child {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.footer-mascot {
  object-fit: contain;
}

.privacy-consent[hidden] {
  display: none;
}

.privacy-consent {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 920px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.2);
}

.privacy-consent strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1.125rem;
  line-height: 1.3;
}

.privacy-consent p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.privacy-consent-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 0.75rem;
}

.privacy-consent-actions .btn {
  min-width: 7.75rem;
  min-height: 2.35rem;
  padding: 0.45rem 0.85rem;
  border-width: 1px;
  border-radius: 0.65rem;
  font-family: inherit;
  font-size: 0.75rem;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

.footer-privacy-button {
  padding: 0;
  border: 0;
  color: inherit;
  background: none;
  cursor: pointer;
  font: inherit;
}

@media (max-width: 767px) {
  .casino-review-header {
    padding-block: 0.75rem 1.25rem;
  }

  .review-meta,
  .review-authors {
    align-items: stretch;
  }

  .review-authors {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .author-info,
  .reviewer-info {
    min-width: 0;
    gap: 0.55rem;
  }

  .author-avatar,
  .reviewer-avatar {
    width: 42px;
    height: 42px;
  }

  .author-label,
  .reviewer-label {
    font-size: 0.68rem;
  }

  .author-name,
  .reviewer-name {
    font-size: 0.78rem;
    line-height: 1.25;
  }

  .trust-section,
  .trust-button {
    width: 100%;
  }

  .info-card:hover {
    transform: none;
  }

  .footer-content > div:first-child {
    grid-template-columns: 1fr 1fr !important;
    gap: 1.25rem !important;
  }

  .footer-about {
    margin-top: 1.25rem !important;
    padding-top: 1.25rem !important;
  }

  .privacy-consent {
    right: 0.65rem;
    bottom: 4.85rem;
    left: 0.65rem;
    display: grid;
    gap: 0.65rem;
    padding: 0.75rem;
    border-radius: 0.8rem;
  }

  .privacy-consent strong {
    display: inline;
    margin: 0 0.35rem 0 0;
    font-size: 0.86rem;
  }

  .privacy-consent p {
    display: inline;
    font-size: 0.72rem;
    line-height: 1.4;
  }

  .privacy-consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .privacy-consent-actions .btn {
    min-height: 2.25rem;
    min-width: 0;
    max-width: none;
    padding: 0.45rem 0.65rem;
    font-size: 0.72rem;
  }
}

@media (max-width: 420px) {
  .privacy-consent {
    bottom: 4.65rem;
    padding: 0.65rem;
  }

  .privacy-consent p {
    font-size: 0.68rem;
  }
}

@media (max-width: 430px) {
  .review-authors,
  .footer-content > div:first-child,
  .review-grid-2col {
    grid-template-columns: 1fr !important;
  }

  .review-section-content {
    padding: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
