/* ==========================================================================
   HostingRated — page-level components
   Styles the building blocks used by the React pages, in the same design
   language as style.css / header-premium.css / hero-premium.css.
   Tokens: --vr-* (see style.css). Dark mode: [data-theme="dark"].
   ========================================================================== */

/* ===== Page hero (inner pages) ===== */
.page-hero {
  position: relative;
  padding: 64px 0 44px;
  background:
    radial-gradient(1000px 380px at 12% -10%, rgba(16, 185, 129, 0.10), transparent 60%),
    radial-gradient(900px 340px at 88% 0%, rgba(99, 102, 241, 0.10), transparent 60%),
    var(--vr-bg);
  border-bottom: 1px solid var(--vr-border);
  overflow: hidden;
}
.page-hero .section-title { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 6px 0 0; }
.page-hero .section-subtitle { margin: 12px 0 0; max-width: 780px; }
.page-hero .eyebrow,
.page-hero .section-eyebrow {
  color: var(--vr-brand-dark);
  font-weight: 800;
  text-transform: uppercase;
  font-size: .8rem;
  letter-spacing: .12em;
}

/* ===== Small count / meta pills ===== */
.cat-count-pill,
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--vr-card);
  border: 1px solid var(--vr-border);
  color: var(--vr-ink-soft);
  font-size: .88rem;
  font-weight: 600;
  box-shadow: var(--vr-shadow);
}
.cat-count-pill i { color: var(--vr-brand-dark); }
.cat-count-pill strong { color: var(--vr-ink); font-weight: 800; }

/* ===== Category tiles ===== */
.cat-tile {
  display: block;
  background: var(--vr-card);
  border: 1px solid var(--vr-border) !important;
  border-radius: var(--vr-radius);
  padding: 18px !important;
  box-shadow: var(--vr-shadow);
  transition: transform .25s cubic-bezier(.16, 1, .3, 1), box-shadow .25s ease, border-color .25s ease;
}
.cat-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, .45) !important;
  box-shadow: var(--vr-shadow-lg);
}
.cat-tile .fw-semibold { color: var(--vr-ink); font-size: 1.05rem; font-weight: 700; }
.cat-tile .small { color: var(--vr-muted) !important; }

.cat-title-wrap { display: flex; align-items: center; gap: 14px; }
.cat-title-text { color: var(--vr-ink); }
.cat-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(15, 23, 42, .45);
  flex: 0 0 auto;
}
.cat-title-icon i { color: #fff; font-size: 1.3rem; line-height: 1; }

/* ===== Generic content card (used by countries, about, sidebars) ===== */
.why-card,
.intro-card,
.legal-toc {
  background: var(--vr-card);
  border: 1px solid var(--vr-border);
  border-radius: var(--vr-radius);
  padding: 22px;
  box-shadow: var(--vr-shadow);
}
.why-card h4,
.intro-card h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--vr-ink);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.why-card p,
.intro-card p { color: var(--vr-ink-soft); margin-bottom: 0; }
.why-card .footer-links { margin: 0; padding: 0; list-style: none; }
.why-card .footer-links li { margin: 0 0 8px; }
.why-card .footer-links a { color: var(--vr-ink-soft); font-weight: 600; }
.why-card .footer-links a:hover { color: var(--vr-brand-dark); }

/* ===== Coupon tiles ===== */
.coupon-tile,
.coupon-card {
  display: flex;
  flex-direction: column;
  background: var(--vr-card);
  border: 1px solid var(--vr-border);
  border-radius: var(--vr-radius);
  padding: 20px;
  box-shadow: var(--vr-shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.coupon-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, .45);
  box-shadow: var(--vr-shadow-lg);
}
.coupon-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.coupon-head img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--vr-border);
  padding: 6px;
  flex: 0 0 auto;
}
.coupon-head strong { display: block; color: var(--vr-ink); font-size: 1.02rem; }
.coupon-discount {
  display: inline-block;
  margin-top: 4px;
  color: var(--vr-brand-dark);
  font-weight: 800;
  font-size: .86rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.coupon-desc { color: var(--vr-muted); font-size: .94rem; margin: 0 0 16px; flex: 1 1 auto; }
.coupon-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.coupon-actions .btn-pcard { flex: 1 1 auto; justify-content: center; }

/* ===== Blog tiles ===== */
.blog-tile {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--vr-card);
  border: 1px solid var(--vr-border);
  border-radius: var(--vr-radius);
  overflow: hidden;
  box-shadow: var(--vr-shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.blog-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, .45);
  box-shadow: var(--vr-shadow-lg);
}
.blog-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--vr-bg);
  border-bottom: 1px solid var(--vr-border);
}
.blog-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; }
.blog-body h3, .blog-body .h6 { font-size: 1.08rem; font-weight: 800; line-height: 1.35; margin: 0; }
.blog-body h3 a, .blog-body .h6 a { color: var(--vr-ink); }
.blog-body h3 a:hover, .blog-body .h6 a:hover { color: var(--vr-brand-dark); }
.blog-body p { color: var(--vr-muted); font-size: .93rem; margin: 0; }
.blog-meta {
  margin-top: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--vr-muted);
  font-size: .82rem;
  font-weight: 600;
}
.blog-meta .dot { opacity: .5; }

/* ===== Article body ===== */
.post-content { color: var(--vr-ink-soft); font-size: 1.03rem; line-height: 1.75; }
.post-content h2 { font-size: 1.6rem; font-weight: 800; color: var(--vr-ink); margin: 34px 0 14px; }
.post-content h3 { font-size: 1.25rem; font-weight: 800; color: var(--vr-ink); margin: 26px 0 12px; }
.post-content p { margin: 0 0 16px; }
.post-content ul, .post-content ol { margin: 0 0 18px; padding-left: 22px; }
.post-content li { margin-bottom: 8px; }
.post-content a { color: var(--vr-brand-dark); font-weight: 600; text-decoration: underline; }
.post-content img { border-radius: var(--vr-radius); margin: 12px 0 20px; }
.post-content blockquote {
  margin: 20px 0;
  padding: 14px 20px;
  border-left: 4px solid var(--vr-brand);
  background: var(--vr-bg);
  border-radius: 0 12px 12px 0;
  color: var(--vr-ink-soft);
}
.post-content table { width: 100%; border-collapse: collapse; margin: 0 0 20px; }
.post-content th, .post-content td { border: 1px solid var(--vr-border); padding: 10px 12px; text-align: left; }
.post-content th { background: var(--vr-bg); color: var(--vr-ink); font-weight: 700; }

/* ===== Reviews / provider detail ===== */
.review-tile,
.review-card {
  background: var(--vr-card);
  border: 1px solid var(--vr-border);
  border-radius: var(--vr-radius);
  padding: 18px;
  box-shadow: var(--vr-shadow);
}
.review-tile .stars-inline,
.stars-inline { display: inline-flex; gap: 2px; color: #f59e0b; font-size: .9rem; }
.review-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.review-author { font-weight: 700; color: var(--vr-ink); }
.review-date { color: var(--vr-muted); font-size: .82rem; }
.review-body { color: var(--vr-ink-soft); margin: 10px 0 0; }

.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.spec-item {
  background: var(--vr-bg);
  border: 1px solid var(--vr-border);
  border-radius: 12px;
  padding: 12px 14px;
}
.spec-item .lbl { display: block; color: var(--vr-muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.spec-item .val { color: var(--vr-ink); font-weight: 800; }

.proscons { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.proscons ul { list-style: none; margin: 0; padding: 0; }
.proscons li { display: flex; gap: 8px; align-items: flex-start; color: var(--vr-ink-soft); margin-bottom: 8px; }
.proscons .pros li i { color: var(--vr-brand-dark); }
.proscons .cons li i { color: #ef4444; }

/* ===== Country pills / misc ===== */
.country-tile {
  background: var(--vr-card);
  border: 1px solid var(--vr-border);
  border-radius: var(--vr-radius);
  padding: 18px;
  box-shadow: var(--vr-shadow);
}

/* ===== Tables ===== */
.table-compare th, .table-compare td { color: var(--vr-ink-soft); }
.table-compare th { color: var(--vr-ink); }

/* ===== Forms ===== */
.form-control, .form-select {
  background: var(--vr-card);
  border: 1px solid var(--vr-border);
  color: var(--vr-ink);
  border-radius: 12px;
  padding: 11px 14px;
}
.form-control::placeholder { color: var(--vr-muted); }
.form-control:focus, .form-select:focus {
  background: var(--vr-card);
  color: var(--vr-ink);
  border-color: rgba(16, 185, 129, .55);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, .14);
}
.form-label { color: var(--vr-ink); font-weight: 600; }

/* ===== Bootstrap button harmonisation (brand palette) ===== */
.btn-primary,
.btn-primary:focus {
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  color: #fff;
  font-weight: 700;
  border-radius: 12px;
  padding: 11px 20px;
  box-shadow: 0 10px 24px -14px rgba(16, 185, 129, .8);
}
.btn-primary:hover { background: linear-gradient(135deg, #059669, #047857); color: #fff; transform: translateY(-1px); }
.btn-outline-secondary {
  background: var(--vr-card);
  border: 1px solid var(--vr-border);
  color: var(--vr-ink);
  font-weight: 700;
  border-radius: 12px;
  padding: 11px 20px;
}
.btn-outline-secondary:hover {
  background: var(--vr-bg);
  border-color: rgba(16, 185, 129, .5);
  color: var(--vr-brand-dark);
}
.btn-link { color: var(--vr-brand-dark); font-weight: 600; }
.card {
  background: var(--vr-card);
  border: 1px solid var(--vr-border);
  border-radius: var(--vr-radius);
  box-shadow: var(--vr-shadow);
}
.card-body { color: var(--vr-ink-soft); }
.card-body h3 a, .card-body .h6 a { color: var(--vr-ink); }
.card-body h3 a:hover { color: var(--vr-brand-dark); }
.card-img-top { border-bottom: 1px solid var(--vr-border); aspect-ratio: 16 / 9; object-fit: cover; }

/* Bootstrap text helpers mapped onto the theme so nothing goes invisible */
.text-muted { color: var(--vr-muted) !important; }
.text-success { color: var(--vr-brand-dark) !important; }
.text-danger { color: #ef4444 !important; }

/* ===== Dark mode ===== */
[data-theme="dark"] .page-hero {
  background:
    radial-gradient(1000px 380px at 12% -10%, rgba(16, 185, 129, 0.14), transparent 60%),
    radial-gradient(900px 340px at 88% 0%, rgba(99, 102, 241, 0.14), transparent 60%),
    var(--vr-bg);
}
[data-theme="dark"] .coupon-head img { background: #f8fafc; }
[data-theme="dark"] .spec-item,
[data-theme="dark"] .post-content blockquote,
[data-theme="dark"] .post-content th { background: #0f1a33; }
[data-theme="dark"] .btn-outline-secondary { background: var(--vr-card); color: var(--vr-ink); }
[data-theme="dark"] .btn-outline-secondary:hover { background: #0f1a33; color: #6ee7b7; }
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select { background: #0f1a33; color: var(--vr-ink); border-color: var(--vr-border); }
[data-theme="dark"] .form-control::placeholder { color: var(--vr-muted); }

/* ===== Responsive ===== */
@media (max-width: 767.98px) {
  .page-hero { padding: 40px 0 30px; }
  .why-card, .coupon-tile, .blog-body { padding: 16px; }
}

/* ===== Blog thumbnail wrapper (anchor around img) ===== */
.blog-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
a.blog-thumb { overflow: hidden; }

/* ===== Review tile internals ===== */
.review-tile .stars { margin-bottom: 8px; }
.review-tile .content { color: var(--vr-ink-soft); font-size: .95rem; line-height: 1.65; }
.review-tile .meta { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--vr-border); }
.review-tile .avatar {
  width: 36px; height: 36px; flex: 0 0 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff; font-weight: 800;
}
.review-tile .who { display: flex; flex-direction: column; line-height: 1.25; }
.review-tile .who strong { color: var(--vr-ink); font-size: .9rem; }
.review-tile .who small { color: var(--vr-muted); font-size: .78rem; }
.review-tile > strong { color: var(--vr-ink); }

/* ===== Tables (light) ===== */
.table { color: var(--vr-ink-soft); --bs-table-bg: transparent; }
.table > :not(caption) > * > * { background: transparent; }
.table th { color: var(--vr-ink); font-weight: 700; border-color: var(--vr-border); }
.table td { border-color: var(--vr-border); }
.table strong { color: var(--vr-ink); }

/* ===== Provider hero logo on page-hero ===== */
.page-hero .pcard-logo { background: #fff; border: 1px solid var(--vr-border); border-radius: 16px; padding: 10px; }

/* ===== Hero gradient headline (robust override) ===== */
.hero-title .gradient-text {
  display: inline-block;
  background-image: linear-gradient(120deg, #10b981 0%, #34d399 35%, #6ee7b7 50%, #34d399 65%, #10b981 100%);
  background-size: 200% 100%;
  background-position: 0% 50%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: vrShine 6s linear infinite;
  text-shadow: none;
}
.hero-title .gradient-text::before { content: none; }
@keyframes vrShine {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== Selectable chips (compare picker, filters) ===== */
.cat-jump {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--vr-bg);
  border: 1px solid var(--vr-border);
  color: var(--vr-ink-soft);
  font-size: .86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
}
.cat-jump:hover { border-color: rgba(16, 185, 129, .5); color: var(--vr-brand-dark); }
.cat-jump.active {
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px -12px rgba(16, 185, 129, .9);
}
[data-theme="dark"] .cat-jump { background: #0f1a33; }
[data-theme="dark"] .cat-jump:hover { color: #6ee7b7; }
