﻿/*
Theme Name: TrustyTopTen Child v6 (GeneratePress)
Theme URI: https://trustytopten.com
Author: Andrew + MoneyGPT
Description: Plug-and-play child theme for Top-10 compares + Single Product reviews (dark UI, stars, compare).
Template: generatepress
Version: 6.0.0
*/

/* Design tokens */
:root{
  --bg:#0b0f14; --card:#111723; --text:#e6edf3; --muted:#9fb3c8;
  --accent:#7dd3fc; --accent-2:#a78bfa;
  --border:#223041; --chip:#172234; --radius:18px; --gap:18px; --pad:18px; --maxw:1200px;
}

/* GeneratePress base overrides */
html,body{background:var(--bg); color:var(--text);}
a{color:var(--accent);} a:hover{color:var(--accent-2);}
.ttt-wrap{max-width:var(--maxw); margin:auto; padding:24px;}
.ttt-card{background:var(--card); border:1px solid var(--border); border-radius:var(--radius); padding:var(--pad);}
.ttt-title{font-size:clamp(26px,2.4vw,36px); font-weight:800; margin:4px 0 14px;}
.ttt-sub{color:var(--muted);}
.ttt-btn{display:inline-block; padding:10px 14px; border-radius:999px; border:1px solid var(--border);
  background:linear-gradient(135deg,var(--accent),var(--accent-2)); color:#061018; font-weight:700; text-decoration:none}
.ttt-chip{display:inline-block; padding:6px 10px; border-radius:999px; background:var(--chip); border:1px solid var(--border); color:var(--muted); font-size:12px; margin:2px 6px 2px 0}
.ttt-table{width:100%; border-collapse:separate; border-spacing:0 12px;}
.ttt-table th,.ttt-table td{padding:14px; text-align:left}
.ttt-table thead th{color:var(--muted); font-weight:600}
.ttt-row{background:var(--card); border:1px solid var(--border); border-radius:14px; overflow:hidden}
.ttt-row td:first-child{border-top-left-radius:14px; border-bottom-left-radius:14px}
.ttt-row td:last-child{border-top-right-radius:14px; border-bottom-right-radius:14px}
.ttt-stars{display:inline-flex; gap:2px; align-items:center}
.ttt-stars svg{width:16px; height:16px}
.ttt-meter{height:8px; border-radius:8px; background:#0e1724; border:1px solid var(--border); overflow:hidden}
.ttt-meter span{display:block; height:100%; background:linear-gradient(90deg,var(--accent),var(--accent-2))}
#ttt-compare-drawer{position:fixed; left:0; right:0; bottom:0; background:rgba(11,15,20,.98); border-top:1px solid var(--border); padding:14px; display:none; z-index:9999}
#ttt-compare-drawer.open{display:block}
#ttt-compare-drawer .ttt-wrap{display:flex; gap:12px; align-items:flex-start}
#ttt-compare-list{display:flex; gap:10px; flex-wrap:wrap}
#ttt-compare-actions{margin-left:auto}
.review-card--image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9; /* keeps equal tile sizes */
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
  transition: transform .2s ease, box-shadow .2s ease;
}
.review-card--image:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}

.card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform .35s ease;
}
.review-card--image:hover .card-img { transform: scale(1.06); }

.card-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px;
  background: linear-gradient(to top,
    rgba(0,0,0,.65) 0%, 
    rgba(0,0,0,.25) 45%, 
    rgba(0,0,0,0) 100%);
  color: #fff;
}

.card-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.card-chip {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.25);
}
