/*
Theme Name: UCardCrypto Child
Theme URI: https://ucardcrypto.com/
Description: Child theme of GeneratePress for UCardCrypto.com — crypto card affiliate review site. Phase 1A: single review template.
Author: UCardCrypto
Author URI: https://ucardcrypto.com/
Template: generatepress
Version: 0.1.0
Text Domain: ucardcrypto-child
*/

/* =========================================================
   1. DESIGN TOKENS
   ========================================================= */
:root {
  --ucc-primary: #0f1d40;
  --ucc-primary-light: #1e3a8a;
  --ucc-accent: #10b981;
  --ucc-accent-light: #34d399;
  --ucc-accent-gradient: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  --ucc-warn: #f59e0b;
  --ucc-danger: #ef4444;
  --ucc-text: #0f172a;
  --ucc-text-soft: #334155;
  --ucc-muted: #64748b;
  --ucc-border: #e2e8f0;
  --ucc-border-strong: #cbd5e1;
  --ucc-bg-page: #f8fafc;
  --ucc-bg-card: #ffffff;
  --ucc-bg-soft: #f1f5f9;
  --ucc-bg-dark: #0f1d40;
  --ucc-radius-sm: 8px;
  --ucc-radius: 12px;
  --ucc-radius-lg: 16px;
  --ucc-radius-pill: 9999px;
  --ucc-shadow-sm: 0 1px 2px rgba(15, 29, 64, 0.06);
  --ucc-shadow: 0 4px 12px rgba(15, 29, 64, 0.08);
  --ucc-shadow-lg: 0 12px 32px rgba(15, 29, 64, 0.12);
  --ucc-font: -apple-system, BlinkMacSystemFont, "Inter", "Manrope", "Segoe UI", Roboto, sans-serif;
}

/* =========================================================
   2. BASE / TYPOGRAPHY (scoped to review page)
   ========================================================= */
.ucc-page {
  background: var(--ucc-bg-page);
  color: var(--ucc-text);
  font-family: var(--ucc-font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 96px; /* room for sticky CTA bar */
}
.ucc-page * { box-sizing: border-box; }
.ucc-review h1,
.ucc-review h2,
.ucc-review h3 {
  font-family: var(--ucc-font);
  color: var(--ucc-text);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.ucc-review h1 { font-size: 1.75rem; font-weight: 800; margin: 0 0 0.5rem; }
.ucc-review h2 { font-size: 1.375rem; font-weight: 700; margin: 2rem 0 1rem; }
.ucc-review h3 { font-size: 1.125rem; font-weight: 700; margin: 1.5rem 0 0.75rem; }
.ucc-review p { margin: 0 0 1rem; color: var(--ucc-text-soft); }
.ucc-review a { color: var(--ucc-primary-light); text-decoration: none; }
.ucc-review a:hover { text-decoration: underline; }
.ucc-review img { max-width: 100%; height: auto; }

/* =========================================================
   3. LAYOUT
   ========================================================= */
.ucc-page {
  width: 100%;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
  padding-top: 16px;
  max-width: 1200px;
}
.ucc-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.ucc-main { min-width: 0; }
.ucc-sidebar { display: none; }

/* =========================================================
   4. BREADCRUMB
   ========================================================= */
.ucc-breadcrumb {
  font-size: 0.8125rem;
  color: var(--ucc-muted);
  margin-bottom: 12px;
}
.ucc-breadcrumb a { color: var(--ucc-muted); }
.ucc-breadcrumb a:hover { color: var(--ucc-primary-light); }
.ucc-breadcrumb .sep { margin: 0 6px; opacity: 0.6; }

/* =========================================================
   5. PAGE HEADER (title + logo + best_for pill)
   ========================================================= */
.ucc-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  margin-bottom: 20px;
}
.ucc-header__logo {
  width: 60px;
  height: 60px;
  border-radius: var(--ucc-radius);
  background: var(--ucc-bg-card);
  box-shadow: var(--ucc-shadow-sm);
  padding: 6px;
  object-fit: contain;
}
.ucc-bestfor {
  display: inline-flex;
  align-items: center;
  background: var(--ucc-bg-soft);
  color: var(--ucc-text-soft);
  border-radius: var(--ucc-radius-pill);
  padding: 6px 14px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* =========================================================
   6. SCORE BOX (hero)
   ========================================================= */
.ucc-score-box {
  background: var(--ucc-bg-dark);
  background-image: linear-gradient(135deg, #0f1d40 0%, #1e3a8a 100%);
  color: #fff;
  border-radius: var(--ucc-radius-lg);
  padding: 24px 20px;
  box-shadow: var(--ucc-shadow-lg);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.ucc-score-box::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 60%;
  height: 180%;
  background: radial-gradient(circle, rgba(16,185,129,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.ucc-score-box__row {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}
.ucc-score-box__metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.ucc-score-box__num {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  background: var(--ucc-accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ucc-score-box__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.7);
}
.ucc-score-box__stars { display: flex; gap: 2px; }
.ucc-score-box__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  align-items: center;
}
.ucc-promo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ucc-accent-gradient);
  color: #04261c;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--ucc-radius-pill);
  font-size: 0.875rem;
}
.ucc-promo__code {
  background: rgba(0,0,0,0.15);
  padding: 2px 8px;
  border-radius: var(--ucc-radius-sm);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.05em;
}
.ucc-score-box__url {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.85);
  word-break: break-all;
}
.ucc-score-box__url a { color: rgba(255,255,255,0.85); text-decoration: underline; }

/* =========================================================
   7. BUTTONS
   ========================================================= */
.ucc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--ucc-font);
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 20px;
  border-radius: var(--ucc-radius);
  border: 0;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  line-height: 1;
}
.ucc-btn--primary {
  background: var(--ucc-accent-gradient);
  color: #04261c;
  box-shadow: 0 6px 20px rgba(16,185,129,0.35);
}
.ucc-btn--primary:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(16,185,129,0.45); }
.ucc-btn--outline {
  background: transparent;
  color: var(--ucc-primary);
  border: 2px solid var(--ucc-primary);
}
.ucc-btn--outline:hover { background: var(--ucc-primary); color: #fff; }
.ucc-btn--full { width: 100%; }
.ucc-btn--lg { font-size: 1.0625rem; padding: 14px 24px; }

/* =========================================================
   8. CARD CONTAINER (generic block)
   ========================================================= */
.ucc-card {
  background: var(--ucc-bg-card);
  border-radius: var(--ucc-radius);
  box-shadow: var(--ucc-shadow);
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid var(--ucc-border);
}

/* =========================================================
   9. OPINION SUMMARY
   ========================================================= */
.ucc-opinion {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ucc-text-soft);
  background: var(--ucc-bg-card);
  padding: 20px;
  border-radius: var(--ucc-radius);
  border-left: 4px solid var(--ucc-accent);
  box-shadow: var(--ucc-shadow-sm);
  margin-bottom: 24px;
}
.ucc-opinion p:last-child { margin-bottom: 0; }

/* =========================================================
   10. PROS / CONS
   ========================================================= */
.ucc-proscons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.ucc-proscons__col {
  background: var(--ucc-bg-soft);
  border-radius: var(--ucc-radius);
  padding: 18px;
  border: 1px solid var(--ucc-border);
}
.ucc-proscons__col h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ucc-proscons__col--pros h3 { color: var(--ucc-accent); }
.ucc-proscons__col--cons h3 { color: var(--ucc-danger); }
.ucc-proscons__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ucc-proscons__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9375rem;
  color: var(--ucc-text-soft);
  border-bottom: 1px solid var(--ucc-border);
}
.ucc-proscons__list li:last-child { border-bottom: 0; }
.ucc-proscons__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}
.ucc-proscons__col--pros .ucc-proscons__icon { color: var(--ucc-accent); }
.ucc-proscons__col--cons .ucc-proscons__icon { color: var(--ucc-danger); }

/* =========================================================
   11. SPEC TABLES (dense)
   ========================================================= */
.ucc-spec {
  background: var(--ucc-bg-card);
  border-radius: var(--ucc-radius);
  border: 1px solid var(--ucc-border);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--ucc-shadow-sm);
}
.ucc-spec__heading {
  margin: 0;
  padding: 14px 18px;
  background: var(--ucc-bg-soft);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ucc-primary);
  border-bottom: 1px solid var(--ucc-border);
}
.ucc-spec__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.ucc-spec__table th,
.ucc-spec__table td {
  text-align: left;
  padding: 9px 14px;
  font-size: 0.9375rem;
  vertical-align: top;
  border-bottom: 1px solid var(--ucc-border);
  word-wrap: break-word;
}
.ucc-spec__table tr:last-child th,
.ucc-spec__table tr:last-child td { border-bottom: 0; }
.ucc-spec__table tr:nth-child(even) th,
.ucc-spec__table tr:nth-child(even) td { background: var(--ucc-bg-soft); }
.ucc-spec__table th {
  width: 35%;
  font-weight: 600;
  color: var(--ucc-text-soft);
}
.ucc-spec__table td {
  width: 65%;
  color: var(--ucc-text);
}

/* =========================================================
   12. STARS (shared SVG sizing)
   ========================================================= */
.ucc-stars { display: inline-flex; gap: 2px; align-items: center; }
.ucc-stars svg { width: 18px; height: 18px; color: var(--ucc-accent); }
.ucc-stars--lg svg { width: 22px; height: 22px; }
.ucc-stars--sm svg { width: 14px; height: 14px; }

/* =========================================================
   13. VERDICT
   ========================================================= */
.ucc-verdict {
  background: var(--ucc-bg-card);
  border-radius: var(--ucc-radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--ucc-shadow);
  border: 1px solid var(--ucc-border);
}
.ucc-verdict__body { color: var(--ucc-text-soft); }
.ucc-verdict__recfor {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ucc-bg-soft);
  color: var(--ucc-primary);
  border-radius: var(--ucc-radius-pill);
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  margin: 12px 0 18px;
}
.ucc-verdict__cta { text-align: center; }

/* =========================================================
   14. USER REVIEWS
   ========================================================= */
.ucc-reviews { margin-top: 32px; }
.ucc-reviews__counts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.ucc-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--ucc-radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
}
.ucc-pill--good { background: rgba(16,185,129,0.12); color: #047857; }
.ucc-pill--bad { background: rgba(239,68,68,0.12); color: #b91c1c; }
.ucc-reviews__list { margin-bottom: 24px; }
.ucc-reviews__form { background: var(--ucc-bg-soft); padding: 20px; border-radius: var(--ucc-radius); border: 1px solid var(--ucc-border); }

/* =========================================================
   15. BYLINE FOOTER
   ========================================================= */
.ucc-byline {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--ucc-border);
  font-size: 0.8125rem;
  color: var(--ucc-muted);
  text-align: center;
}

/* =========================================================
   16. STICKY BOTTOM CTA BAR
   ========================================================= */
.ucc-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: var(--ucc-bg-dark);
  background-image: linear-gradient(135deg, #0f1d40 0%, #1e3a8a 100%);
  color: #fff;
  box-shadow: 0 -8px 24px rgba(15,29,64,0.25);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(0);
  transition: transform 0.3s ease;
}
.ucc-sticky-cta[hidden] { display: none; }
.ucc-sticky-cta__text {
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
  line-height: 1.3;
}
.ucc-sticky-cta__brand { font-weight: 700; display: block; font-size: 0.9375rem; }
.ucc-sticky-cta__hook {
  display: block;
  color: rgba(255,255,255,0.75);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ucc-sticky-cta .ucc-btn {
  flex-shrink: 0;
  padding: 10px 16px;
  font-size: 0.875rem;
}
.ucc-sticky-cta__close {
  flex-shrink: 0;
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 0;
}
.ucc-sticky-cta__close:hover { background: rgba(255,255,255,0.1); color: #fff; }
.ucc-sticky-cta__close svg { width: 16px; height: 16px; }

/* =========================================================
   17. SIDEBAR SUMMARY (right rail, desktop only)
   ========================================================= */
.ucc-sidebar-card {
  background: var(--ucc-bg-card);
  border-radius: var(--ucc-radius);
  border: 1px solid var(--ucc-border);
  box-shadow: var(--ucc-shadow);
  padding: 20px;
}
.ucc-sidebar-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.ucc-sidebar-card__logo {
  width: 44px;
  height: 44px;
  border-radius: var(--ucc-radius-sm);
  object-fit: contain;
  background: var(--ucc-bg-soft);
  padding: 4px;
}
.ucc-sidebar-card__brand { font-weight: 700; font-size: 1rem; }
.ucc-sidebar-card__score {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}
.ucc-sidebar-card__score-num {
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--ucc-accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ucc-sidebar-card__score-of { color: var(--ucc-muted); font-size: 0.875rem; }
.ucc-sidebar-card__facts {
  margin: 14px 0;
  padding: 0;
}
.ucc-sidebar-card__facts > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--ucc-border);
  font-size: 0.875rem;
}
.ucc-sidebar-card__facts > div:last-child { border-bottom: 0; }
.ucc-sidebar-card__facts dt { margin: 0; color: var(--ucc-muted); }
.ucc-sidebar-card__facts dd { margin: 0; color: var(--ucc-text); font-weight: 600; text-align: right; }

/* =========================================================
   18. UTILITY
   ========================================================= */
.ucc-hide { display: none; }
.ucc-only-desktop { display: none; }

/* =========================================================
   19. MEDIA QUERIES
   ========================================================= */
@media (min-width: 600px) {
  .ucc-page { padding-left: 24px; padding-right: 24px; }
  .ucc-review h1 { font-size: 2rem; }
  .ucc-review h2 { font-size: 1.5rem; }
  .ucc-score-box { padding: 32px; }
  .ucc-score-box__row {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    align-items: center;
  }
  .ucc-score-box__meta { align-items: flex-start; width: auto; flex: 1; }
  .ucc-score-box__metric { align-items: flex-start; }
  .ucc-proscons { grid-template-columns: 1fr 1fr; }
  .ucc-header {
    flex-direction: row;
    align-items: center;
    text-align: left;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .ucc-header__title { flex: 1; }
  .ucc-header__logo { order: 2; }
}

@media (min-width: 960px) {
  .ucc-page { padding-top: 24px; }
  .ucc-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    align-items: start;
  }
  .ucc-sidebar {
    display: block;
    position: sticky;
    top: 80px;
  }
  .ucc-only-desktop { display: block; }
  .ucc-review h1 { font-size: 2.25rem; }
  .ucc-sticky-cta { padding: 14px 24px; }
  .ucc-sticky-cta__hook { white-space: normal; }
}

@media (min-width: 1100px) {
  .ucc-layout { grid-template-columns: minmax(0, 1fr) 340px; }
}

/* =========================================================
   20. PRINT
   ========================================================= */
@media print {
  .ucc-sticky-cta, .ucc-sidebar { display: none !important; }
}
