/* ============================================================
   SLOT & PROVIDER PAGES  (/kolikkopelit/, /kolikkopeli/, /pelivalmistaja/)
   Brand card styling matching .review-section.
   ============================================================ */

.slot-page { display: flex; flex-direction: column; gap: 20px; padding-bottom: 40px; }

/* ── Section card (mirrors .review-section) ── */
.slot-section {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 26px 28px;
}
.slot-section-title {
  font-size: 22px; font-weight: 800; color: var(--text);
  margin: 0 0 18px; padding-bottom: 14px;
  border-bottom: 2px solid rgba(255,255,255,0.1);
}
.slot-text-content { color: var(--muted); font-size: 15px; line-height: 1.8; }
.slot-text-content p { margin: 0 0 14px; }
.slot-text-content a { color: var(--accent); }

/* ── Slot hero (2 columns) ── */
.slot-hero {
  display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 2px solid rgba(255,255,255,0.08); border-radius: 18px; padding: 24px;
}
/* Cover LOCKED to 9:16 with a fixed height — width derives from the ratio, so
   the box is always identical (420×236) on every slot. object-fit: cover fills +
   crops any source image into it. Height is capped so it never towers. */
.slot-hero-cover {
  aspect-ratio: 9 / 16; height: 420px; width: auto; align-self: start;
  border-radius: 14px; overflow: hidden; background: #150528;
  display: flex; align-items: center; justify-content: center;
}
.slot-hero-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slot-hero-cover-fallback { color: #fff; font-weight: 800; font-size: 18px; text-align: center; padding: 16px; }
/* Right column: content sits naturally top-down (no forced stretch/gap). */
.slot-hero-info { display: flex; flex-direction: column; justify-content: flex-start; gap: 20px; min-width: 0; }
.slot-hero-stats-title { font-size: 15px; font-weight: 800; color: var(--text); margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.slot-hero-info h1 { font-size: clamp(24px, 4vw, 34px); font-weight: 900; color: var(--text); margin: 0 0 8px; line-height: 1.2; }
.slot-hero-suffix { color: var(--muted); font-weight: 400; font-size: 0.6em; }
.slot-hero-provider { margin: 0 0 6px; color: var(--muted); font-size: 15px; }
.slot-hero-provider a { color: var(--accent-2); font-weight: 700; }
.slot-hero-rating { margin: 0 0 6px; font-size: 16px; color: var(--text); }
.slot-hero-rating strong { color: var(--accent-2); font-size: 20px; }
.slot-hero-byline { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.slot-hero-byline a { color: var(--accent); }
.slot-hero-cta {
  display: inline-block; padding: 13px 26px; border-radius: 10px;
  background: var(--button-bg); background: linear-gradient(180deg, var(--button-bg), var(--button-bg-end));
  color: var(--button-text); font-weight: 800; text-decoration: none; font-size: 15px;
  border: 1px solid var(--button-border);
}
.slot-hero-cta:hover { filter: brightness(1.05); }

/* ── Stats grid ── */
.slot-stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.slot-stat { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 12px 14px; }
.slot-stat-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 600; margin-bottom: 3px; }
.slot-stat-value { font-size: 15px; font-weight: 800; color: var(--text); }

/* ── Feature tags ── */
.slot-feature-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.slot-feature-tags li { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; color: var(--text); }

/* ── Sub-ratings bars ── */
.slot-ratings { display: flex; flex-direction: column; gap: 12px; }
.slot-rating-row { display: grid; grid-template-columns: 130px 1fr 44px; align-items: center; gap: 12px; }
.srr-label { font-size: 14px; font-weight: 600; color: var(--text); }
.srr-bar { height: 8px; background: rgba(255,255,255,0.1); border-radius: 4px; overflow: hidden; }
.srr-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); border-radius: 4px; }
.srr-score { font-size: 14px; font-weight: 700; color: var(--accent-2); text-align: right; }

/* ── Pros / cons ── */
.slot-proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.slot-pros, .slot-cons { background: rgba(255,255,255,0.04); border-radius: 12px; padding: 18px; }
.slot-pros { border-left: 4px solid #4CAF50; } .slot-cons { border-left: 4px solid #e74c3c; }
.slot-pros h3 { color: #6fe0a0; margin: 0 0 12px; font-size: 16px; }
.slot-cons h3 { color: #ff8a80; margin: 0 0 12px; font-size: 16px; }
.slot-proscons ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; line-height: 1.7; }

/* ── Promoted casinos ── */
.slot-promo-intro { color: var(--muted); font-size: 15px; margin: 0 0 16px; }
.slot-promo-cards { display: flex; flex-direction: column; gap: 12px; }
.slot-promo-card { display: grid; grid-template-columns: 140px 1fr auto; align-items: center; gap: 16px; background: var(--card-2); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 12px 16px; }
.spc-logo { background: #000; border-radius: 8px; padding: 10px; display: flex; align-items: center; justify-content: center; min-height: 56px; }
.spc-logo img { max-width: 100%; max-height: 44px; object-fit: contain; }
.spc-logo span { color: #fff; font-weight: 700; font-size: 14px; }
.spc-info { display: flex; flex-direction: column; gap: 2px; }
.spc-name { font-weight: 800; color: var(--text); text-decoration: none; font-size: 16px; }
.spc-bonus { color: var(--accent-2); font-weight: 700; font-size: 14px; }
.spc-cta { padding: 12px 26px; border-radius: 10px; background: var(--button-bg); background: linear-gradient(180deg, var(--button-bg), var(--button-bg-end)); color: var(--button-text); font-weight: 800; text-decoration: none; white-space: nowrap; }
.spc-cta:hover { filter: brightness(1.06); }
.slot-promo-rg { margin: 14px 0 0; font-size: 12px; color: var(--muted); }
.slot-promo-rg a { color: var(--accent); }

/* ── FAQ ── */
.slot-faq-item { border-bottom: 1px solid rgba(255,255,255,0.08); padding: 4px 0; }
.slot-faq-item summary { cursor: pointer; padding: 12px 0; font-weight: 700; color: var(--text); list-style: none; }
.slot-faq-item summary::-webkit-details-marker { display: none; }
.slot-faq-a { color: var(--muted); font-size: 14px; line-height: 1.7; padding: 0 0 12px; }
.slot-faq-a a { color: var(--accent); }

/* ── Slot card grid ── */
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.slot-card { display: flex; flex-direction: column; background: var(--card-2); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; overflow: hidden; text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
.slot-card:hover { transform: translateY(-3px); border-color: rgba(255,91,189,0.4); }
.slot-card-cover { position: relative; aspect-ratio: 16 / 9; background: #150528; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.slot-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.slot-card-cover-fallback { color: #fff; font-weight: 700; font-size: 14px; text-align: center; padding: 8px; }
.slot-card-rating { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,0.7); color: var(--accent-2); font-weight: 800; font-size: 12px; padding: 3px 8px; border-radius: 6px; }
.slot-card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.slot-card-name { font-weight: 700; font-size: 14px; color: var(--text); }
.slot-card-provider { font-size: 12px; color: var(--muted); }

/* ── Archive hero + provider chips ── */
.slot-archive-hero { background: linear-gradient(180deg, var(--card-2), var(--card)); border: 2px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 28px; }
.slot-archive-hero h1 { font-size: clamp(24px, 4vw, 34px); font-weight: 900; color: var(--text); margin: 0 0 12px; }
.slot-archive-intro { color: var(--muted); font-size: 16px; line-height: 1.7; margin: 0 0 16px; max-width: 900px; }
.slot-archive-intro strong { color: var(--accent-2); }
.slot-provider-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.slot-provider-chips a { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 999px; padding: 7px 15px; font-size: 13px; font-weight: 700; color: var(--text); text-decoration: none; }
.slot-provider-chips a:hover, .slot-provider-chips .chip-all { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── Provider slider (catalogue) ── */
.provider-slider-wrap { margin: -4px 0 4px; }
.provider-slider-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.provider-slider-head h2 { margin: 0; font-size: 18px; font-weight: 800; color: var(--text); }
.provider-slider-head a { color: var(--accent); font-weight: 700; text-decoration: none; font-size: 14px; white-space: nowrap; }
.provider-slider {
  display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 14px;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: var(--accent) transparent;
}
.provider-slider::-webkit-scrollbar { height: 8px; }
.provider-slider::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }
.provider-slider::-webkit-scrollbar-thumb:hover { background: var(--accent); }
.provider-slide {
  flex: 0 0 auto; width: 140px; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center;
  background: var(--card-2); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px;
  padding: 14px 10px; text-decoration: none; transition: transform .15s ease, border-color .15s ease;
}
.provider-slide:hover { transform: translateY(-3px); border-color: rgba(255,91,189,0.45); }
.provider-slide-logo { width: 100%; height: 52px; background: #000; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 8px; box-sizing: border-box; }
.provider-slide-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.provider-slide-logo span { color: #fff; font-weight: 700; font-size: 12px; line-height: 1.2; }
.provider-slide-name { font-weight: 700; font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.provider-slide-count { font-size: 11px; color: var(--accent-2); font-weight: 700; }

/* ── Provider grid / cards / hero ── */
.provider-hero { grid-template-columns: 220px 1fr; align-items: center; }
.provider-hero-logo { background: #000; border-radius: 12px; padding: 20px; display: flex; align-items: center; justify-content: center; }
.provider-hero-logo img { max-width: 100%; max-height: 90px; object-fit: contain; }
.provider-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.provider-card { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; background: var(--card-2); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 18px 14px; text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
.provider-card:hover { transform: translateY(-3px); border-color: rgba(255,91,189,0.4); }
.provider-card-logo { width: 100%; height: 56px; background: #000; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 8px; box-sizing: border-box; }
.provider-card-logo img { max-width: 90%; max-height: 100%; object-fit: contain; }
.provider-card-logo span { color: #fff; font-weight: 700; font-size: 13px; }
.provider-card-name { font-weight: 800; color: var(--text); font-size: 15px; }
.provider-card-count { font-size: 12px; color: var(--accent-2); font-weight: 700; }

.slot-see-all { text-align: center; margin: 4px 0 0; }
.slot-see-all a { color: var(--accent); font-weight: 700; text-decoration: none; }
.slot-pagination { margin-top: 18px; text-align: center; }
.slot-pagination .page-numbers { display: inline-block; padding: 8px 14px; margin: 0 3px; border-radius: 8px; background: rgba(255,255,255,0.06); color: var(--text); text-decoration: none; }
.slot-pagination .page-numbers.current { background: var(--accent); color: #fff; }

/* ── Homepage "Uudet kolikkopelit" section ── */
.home-slots { padding: 32px 0; }
.home-slots-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.home-slots-head h2 { margin: 0 0 4px; font-size: 26px; font-weight: 800; color: var(--text); }
.home-slots-intro { margin: 0; color: var(--muted); font-size: 15px; }
.home-slots-all { flex: none; color: var(--accent); font-weight: 700; text-decoration: none; white-space: nowrap; }

@media (max-width: 820px) {
  .slot-hero, .provider-hero { grid-template-columns: 1fr; gap: 18px; }
  .slot-hero-cover { max-width: 220px; width: 100%; height: auto; margin: 0 auto; }
  .slot-hero-info { justify-content: flex-start; }
  .slot-proscons { grid-template-columns: 1fr; }
  .slot-promo-card { grid-template-columns: 90px 1fr; }
  .slot-promo-card .spc-cta { grid-column: 1 / -1; text-align: center; }
  .slot-rating-row { grid-template-columns: 100px 1fr 40px; }
}
