/* ── Hub page styles ─────────────────────────────────────── */
html { scroll-behavior: smooth; }

/* ── Review Cards (rc-card) — new design ─────────────────── */
.rc-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 0;
  background: #fff;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  scroll-margin-top: 90px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.rc-card:hover { box-shadow: 0 6px 28px rgba(0,0,0,0.12); transform: translateY(-2px); }

/* Wrapper starp kartītēm */
.rc-cards-wrap {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Atdalītājs starp kartītēm */
.rc-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #9ca3af;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.rc-divider::before,
.rc-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
}

/* Image column — always on top */
.rc-img-col {
  position: relative;
  background: #0a0a14;
  overflow: hidden;
  width: 100%;
  max-height: 220px;
}
.rc-desktop-img {
  width: 100%;
  height: 220px;
  display: block;
  object-fit: cover;
  object-position: top center;
  opacity: 0.93;
  transition: opacity 0.2s;
}
.rc-card:hover .rc-desktop-img { opacity: 1; }
.rc-mobile-img { display: none; }

/* Body */
.rc-body {
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rc-top { display: flex; flex-direction: column; gap: 6px; }
.rc-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.2;
}
.rc-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.rc-lic {
  font-size: 0.68rem;
  font-weight: 700;
  color: #6b7280;
  background: #f3f4f6;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 4px;
  padding: 2px 7px;
  letter-spacing: 0.03em;
}
.rc-year {
  background: #1e8449;
  color: white;
  padding: 2px 9px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.rc-year--old {
  background: #6b7280;
}
.rc-stars {
  font-size: 0.82rem;
  margin-left: auto;
}
.rc-score { color: rgba(0,0,0,0.4); font-weight: 600; margin-left: 3px; }

/* Bonus box */
.rc-bonus-box {
  background: #f0faf4;
  border: 1px solid rgba(30,132,73,0.2);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}
.rc-bonus-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #1e8449;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.rc-bonus-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 5px;
}
.rc-bonus-sub {
  font-size: 0.75rem;
  color: rgba(0,0,0,0.5);
}

/* Description */
.rc-desc {
  font-size: 0.875rem;
  color: rgba(0,0,0,0.65);
  line-height: 1.7;
  margin: 0;
}

/* Footer */
.rc-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: auto;
}

/* Mobile */
@media (max-width: 680px) {
  .rc-body { padding: 16px; gap: 12px; }
  .rc-name { font-size: 1.05rem; }
  .rc-bonus-val { font-size: 0.9rem; }
  .rc-footer { flex-direction: column; align-items: stretch; }
  .rc-footer .hub-btn { text-align: center; }

  /* Show full desktop screenshot without cropping */
  .rc-img-col {
    max-height: none;
  }
  .rc-desktop-img {
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: top center;
    background: #0a0a14;
  }
}

/* Small mobile */
@media (max-width: 400px) {
  .rc-stats { flex-wrap: wrap; }
  .rc-stat { flex: 0 0 50%; border-bottom: 1px solid rgba(0,0,0,0.08); }
  .rc-stat:nth-child(even) { border-right: none; }
}

/* Hero */
.hub-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 36px 40px;
  margin-bottom: 32px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}
.hub-hero-text { flex: 1; }
.hub-hero-text h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
  margin-bottom: 14px;
}
.hub-excerpt {
  font-size: 1rem;
  color: rgba(0,0,0,0.65);
  line-height: 1.75;
  margin-bottom: 18px;
}
.hub-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(0,0,0,0.45);
}
.hub-meta a { color: rgba(0,0,0,0.6); text-decoration: none; }
.hub-meta a:hover { color: #c0392b; }
.hub-meta .author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.hub-hero-badge {
  text-align: center;
  background: #c0392b;
  color: #fff;
  border-radius: 14px;
  padding: 20px 28px;
  flex-shrink: 0;
}
.hub-badge-num {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}
.hub-badge-label {
  font-size: 0.78rem;
  opacity: 0.85;
  margin-top: 4px;
  white-space: nowrap;
}

/* Sections */
.hub-section {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 32px 36px;
  margin-bottom: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.hub-section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
}
.hub-section p {
  color: rgba(0,0,0,0.7);
  line-height: 1.75;
  margin-bottom: 14px;
}
.hub-section p:last-child { margin-bottom: 0; }

/* Table */
.hub-table-wrap {
  overflow-x: auto;
  margin-bottom: 14px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.08);
}
.hub-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.hub-table thead {
  background: #f8f8f8;
  border-bottom: 2px solid rgba(0,0,0,0.08);
}
.hub-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: rgba(0,0,0,0.5);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.hub-table td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  vertical-align: middle;
}
.hub-table tbody tr:last-child td { border-bottom: none; }
.hub-table tbody tr:hover { background: #fafafa; }
.hub-td-name a {
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: none;
}
.hub-td-name a:hover { color: #c0392b; }
.hub-lic {
  display: inline-block;
  background: #eef4ff;
  color: #1d4ed8;
  border: 1px solid rgba(37,99,235,0.15);
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 3px;
  white-space: nowrap;
}
.hub-stars { color: #f59e0b; letter-spacing: 1px; }
.hub-num {
  font-weight: 600;
  color: rgba(0,0,0,0.65);
  font-size: 0.85rem;
}
.hub-btn {
  display: inline-block;
  background: #c0392b;
  color: #fff;
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s;
}
.hub-btn:hover { background: #a93226; }
.hub-disclaimer {
  font-size: 0.75rem;
  color: rgba(0,0,0,0.35);
  margin-top: 10px;
}

/* Licence types */
.hub-lic-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0 20px;
}
.hub-lic-card {
  background: #f8f9ff;
  border: 1px solid rgba(37,99,235,0.12);
  border-radius: 10px;
  padding: 18px 20px;
}
.hub-lic-code {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1d4ed8;
  margin-bottom: 4px;
}
.hub-lic-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}
.hub-lic-desc {
  font-size: 0.82rem;
  color: rgba(0,0,0,0.55);
  line-height: 1.6;
}

/* Mobile image scroll animation */
@keyframes hub-img-scroll {
  0%   { object-position: top; }
  45%  { object-position: bottom; }
  55%  { object-position: bottom; }
  100% { object-position: top; }
}

/* Casino cards */
.hub-casino-card {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 0;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  background: #fff;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
  scroll-margin-top: 90px;
}
.hub-casino-card:last-child { margin-bottom: 0; }
.hub-casino-images {
  position: relative;
  background: #f4f4f4;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}
.hub-desktop-img {
  width: 100%;
  height: auto;
  object-fit: unset;
  display: block;
}
.hub-mobile-img { display: none; }
.hub-casino-body {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.hub-casino-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.hub-casino-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}
.hub-casino-header h3 a {
  color: #1a1a1a;
  text-decoration: none;
}
.hub-casino-header h3 a:hover { color: #c0392b; }
.hub-casino-body p {
  font-size: 0.9rem;
  color: rgba(0,0,0,0.65);
  line-height: 1.7;
  margin: 0;
}
.hub-casino-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.hub-rating {
  font-size: 0.85rem;
  color: rgba(0,0,0,0.5);
}
.hub-rating { color: rgba(0,0,0,0.5); }
.hub-link {
  font-size: 0.85rem;
  color: #c0392b;
  text-decoration: none;
  font-weight: 500;
}
.hub-link:hover { text-decoration: underline; }

/* Conclusion */
.hub-conclusion { background: #fafafa; }

/* Quick links strip */
.hub-quicklinks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}
.hub-quicklinks a {
  display: inline-block;
  padding: 5px 13px;
  border-radius: 20px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  color: #374151;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.hub-quicklinks a:hover {
  background: #1a5e3a;
  border-color: #1a5e3a;
  color: #fff;
}
.hub-anchor {
  font-size: 0.75rem;
  color: #9ca3af;
  text-decoration: none;
  margin-left: 2px;
  vertical-align: middle;
}
.hub-anchor:hover { color: #1a5e3a; }

/* Mobile card list */
.hub-mob-list { display: none; }
.hub-mob-card {
  border: 1px solid rgba(0,0,0,0.09);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 0;
}
/* Scrolling phone screenshot inside mobile card */
.hub-mob-img-wrap {
  position: relative;
  background: #0a0a14;
  height: 160px;
  overflow: hidden;
}
.hub-mob-screen {
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: top;
  display: block;
  opacity: 0.92;
  animation: hub-img-scroll 7s ease-in-out infinite;
}
/* Logo badge overlaid on the screenshot */
.hub-mob-logo-badge {
  position: absolute;
  bottom: 10px;
  left: 12px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.85);
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  background: #fff;
  object-fit: contain;
}
/* Card body below image */
.hub-mob-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.hub-mob-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hub-mob-name {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
  flex: 1;
}
.hub-mob-name:hover { color: #c0392b; }
.hub-mob-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}
.hub-mob-stars { color: #f59e0b; font-size: 0.85rem; }
.hub-mob-score { font-size: 0.82rem; font-weight: 600; color: rgba(0,0,0,0.5); }
.hub-mob-bonus {
  font-size: 0.86rem;
  color: rgba(0,0,0,0.75);
  background: #f6fff6;
  border: 1px solid rgba(0,150,0,0.15);
  border-radius: 7px;
  padding: 7px 11px;
  line-height: 1.45;
}
.hub-mob-lic { display: flex; gap: 6px; flex-wrap: wrap; }
.hub-mob-lic .hub-lic {
  font-size: 0.78rem;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}
.hub-mob-body .hub-btn {
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  margin-top: 2px;
}
/* Long logo header for simple mobile cards (no screenshot) */
.hub-mob-logo-header {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f8f8;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  padding: 12px 16px;
}
.hub-mob-logo-header img {
  max-height: 36px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}
/* Padding for card children when no hub-mob-body wrapper is used */
.hub-mob-card > .hub-mob-top,
.hub-mob-card > .hub-mob-bonus,
.hub-mob-card > .hub-mob-lic,
.hub-mob-card > .hub-btn {
  margin-left: 14px;
  margin-right: 14px;
}
.hub-mob-card > .hub-mob-top { margin-top: 12px; }
.hub-mob-card > .hub-btn { margin-bottom: 14px; margin-top: 6px; box-sizing: border-box; width: calc(100% - 28px); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .hub-hero {
    flex-direction: column;
    padding: 24px;
    gap: 20px;
  }
  .hub-hero-text h1 { font-size: 1.55rem; }
  .hub-hero-badge { align-self: center; }
  .hub-lic-types { grid-template-columns: 1fr; gap: 10px; }
  .hub-section { padding: 22px 18px; }

  /* Casino cards — stack vertically, show mobile image */
  .hub-casino-card {
    grid-template-columns: 1fr;
  }
  .hub-casino-images {
    height: 220px;
    display: block;
  }
  .hub-desktop-img { display: none; }
  .hub-mobile-img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: top;
    animation: hub-img-scroll 6s ease-in-out infinite;
  }
  .hub-casino-body { padding: 18px 16px; }
}

@media (max-width: 640px) {
  .hub-table-wrap { display: none; }
  .hub-mob-list { display: block; }
  .hub-casino-footer { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hub-btn { width: 100%; text-align: center; box-sizing: border-box; }
  .hub-hero { padding: 20px 16px; }
  .hub-hero-text h1 { font-size: 1.35rem; }
}

@media (max-width: 480px) {
  .hub-table th:nth-child(4),
  .hub-table td:nth-child(4) { display: none; }
  .hub-casino-images { height: 180px; }
  .hub-mobile-img { height: 180px; animation-duration: 7s; }
  .hub-section { padding: 18px 14px; }
  .hub-hero-badge { padding: 14px 20px; }
  .hub-badge-num { font-size: 2.2rem; }
}
