/*
Theme Name: Non GamStop Casinos — Mogo Reviews
Theme URI: https://mogoproductions.uk/
Author: Nathan Blackwood
Description: Pre-configured non gamstop casinos site for mogoproductions.uk. Ships with 15 operators, logos, banners, affiliate URLs, Mogo Reviews's site-specific content across all sections, Nathan Blackwood as the site author, and Yoast-style @graph schema. On activation, everything auto-populates.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: Proprietary
Text Domain: nongamstop-mogo
*/

/* ========== Reset + base ========== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #222;
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #2fa64e; text-decoration: underline; }
a:hover { text-decoration: none; }

/* ========== Layout ========== */
.container { max-width: 780px; margin: 0 auto; padding: 0 20px; }
.site-header { padding: 20px 0; border-bottom: 1px solid #eee; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-header .logo img { max-width: 220px; height: auto; }
.site-nav { font-size: 16px; }
.site-nav a { color: #4f46e5; font-weight: 500; text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
.site-content { padding: 30px 0 60px; }
.site-footer {
  padding: 30px 0;
  text-align: center;
  color: #888;
  font-size: 14px;
  border-top: 1px solid #eee;
}
.site-footer a { color: #888; }

/* ========== Typography ========== */
h1 { font-size: 32px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 6px; }
h2 { font-size: 26px; font-weight: 700; margin: 48px 0 16px; letter-spacing: -0.005em; }
h3 { font-size: 21px; font-weight: 700; margin: 36px 0 12px; }
h4 { font-size: 18px; font-weight: 700; margin: 24px 0 8px; }
p { margin: 0 0 16px; }
.post-date { font-size: 14px; color: #888; margin: 0 0 24px; }

ul, ol { padding-left: 22px; margin: 0 0 16px; }
li { margin: 4px 0; }

/* ========== Ranked casino list ========== */
.ranked-list { list-style: none; padding: 0; margin: 24px 0 32px; display: flex; flex-direction: column; gap: 14px; }
.ranked-item {
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  padding: 22px 26px;
  background: #fff;
  display: grid;
  grid-template-columns: 56px 180px 1fr 180px;
  grid-template-areas: "rank logo body cta";
  gap: 24px;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.ranked-item:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.08); border-color: #d5d5d5; }
.ranked-rank {
  grid-area: rank;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #f4f4f4;
  color: #555;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ranked-item:nth-child(1) .ranked-rank { background: linear-gradient(135deg, #ffd700 0%, #f5a623 100%); color: #fff; box-shadow: 0 3px 10px rgba(245, 166, 35, 0.4); }
.ranked-item:nth-child(2) .ranked-rank { background: linear-gradient(135deg, #e8e8e8 0%, #b0b0b0 100%); color: #fff; box-shadow: 0 2px 8px rgba(160, 160, 160, 0.35); }
.ranked-item:nth-child(3) .ranked-rank { background: linear-gradient(135deg, #e8a87c 0%, #b87333 100%); color: #fff; box-shadow: 0 2px 8px rgba(184, 115, 51, 0.35); }
.ranked-logo { grid-area: logo; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ranked-logo-name { font-size: 15px; font-weight: 700; color: #333; text-transform: uppercase; letter-spacing: 0.3px; text-align: center; line-height: 1.2; }
.ranked-logo-frame { display: flex; align-items: center; justify-content: center; width: 160px; height: 70px; }
.ranked-logo img { max-width: 160px; max-height: 70px; width: auto; height: auto; object-fit: contain; margin: 0; }
.ranked-body { grid-area: body; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ranked-badge {
  display: inline-block;
  background: #2fa64e;
  color: #fff;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  align-self: flex-start;
  margin-bottom: 4px;
}
.ranked-bonus-label { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: 0.6px; font-weight: 600; }
.ranked-bonus-text { font-size: 19px; font-weight: 700; color: #1a1a1a; line-height: 1.3; }
.ranked-rating { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.ranked-rating-number { display: inline-block; background: #2fa64e; color: #fff; padding: 3px 10px; border-radius: 6px; font-size: 13px; font-weight: 700; }
.ranked-cta { grid-area: cta; }
.btn {
  display: inline-block;
  background: linear-gradient(135deg, #2fa64e 0%, #278a41 100%);
  color: #fff !important;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  border: 0;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(47, 166, 78, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(47, 166, 78, 0.4); }
.btn-block { display: block; width: 100%; }

/* ========== Featured review ========== */
.featured-review { margin: 40px 0; }
.featured-review-banner { border-radius: 8px; overflow: hidden; margin: 0 0 16px; }
.featured-review-banner img { width: 100%; aspect-ratio: 3/1; object-fit: cover; }
.featured-review h3 { margin-top: 0; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 20px 0; }
.pros h4 { color: #2fa64e; }
.cons h4 { color: #c0392b; }
.pros ul, .cons ul { padding-left: 20px; }
.featured-review + .featured-review { border-top: 1px solid #eee; padding-top: 32px; }
.featured-review-cta { margin-top: 20px; }

/* ========== Tables ========== */
.spec-table, .payment-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 15px;
}
.spec-table td, .payment-table td, .payment-table th {
  border: 1px solid #e5e5e5;
  padding: 10px 12px;
  vertical-align: top;
}
.spec-table tr td:first-child { background: #f0f0f0; font-weight: 600; width: 40%; }
.payment-table th { background: #f0f0f0; text-align: left; font-weight: 600; }
.payment-table tr:nth-child(even) td { background: #fafafa; }
.table-wrap { overflow-x: auto; }

/* ========== Mobile ========== */
@media (max-width: 720px) {
  h1 { font-size: 26px; }
  h2 { font-size: 22px; margin-top: 36px; }
  h3 { font-size: 19px; margin-top: 28px; }
  .ranked-item {
    grid-template-columns: 56px 1fr;
    grid-template-areas:
      "rank logo"
      "body body"
      "cta cta";
    padding: 18px;
    gap: 12px 16px;
  }
  .ranked-logo { align-items: flex-end; }
  .ranked-logo-frame { width: 130px; height: 55px; }
  .ranked-logo img { max-width: 130px; max-height: 55px; }
  .ranked-logo-name { font-size: 13px; }
  .pros-cons { grid-template-columns: 1fr; }
}

/* ========== Scroll-to-top ========== */
.scroll-top { display: inline-block; color: #888; font-size: 13px; text-decoration: none; margin-top: 20px; }
.scroll-top:hover { color: #444; }
