/*
Theme Name: rg2b Child
Template: twentytwentyfour
Description: rg2b.com AI Tools Affiliate - Professional child theme
Version: 1.0
*/

/* ===== GLOBAL ===== */
:root {
  --rg2b-primary: #2563eb;
  --rg2b-secondary: #7c3aed;
  --rg2b-accent: #06b6d4;
  --rg2b-dark: #0f172a;
  --rg2b-light: #f8fafc;
  --rg2b-success: #10b981;
  --rg2b-warning: #f59e0b;
  --rg2b-border: #e2e8f0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1e293b;
  background: var(--rg2b-light);
}

/* ===== LAYOUT HELPERS ===== */
.rg2b-grid-3,
.rg2b-grid-4 {
  display: grid;
  gap: 20px;
  margin: 20px 0;
}

.rg2b-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.rg2b-grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

/* ===== COMPARISON TABLES ===== */
.rg2b-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  margin: 2rem 0;
}

.rg2b-table thead th {
  background: linear-gradient(135deg, var(--rg2b-primary), var(--rg2b-secondary));
  color: white;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
}

.rg2b-table tbody td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--rg2b-border);
  font-size: 0.95rem;
  vertical-align: middle;
}

.rg2b-table tbody tr:hover {
  background: #f1f5f9;
}

.rg2b-table tbody tr:last-child td {
  border-bottom: none;
}

/* Winner badge */
.rg2b-winner {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Pricing badge */
.rg2b-price {
  display: inline-block;
  background: #ecfdf5;
  color: #065f46;
  padding: 4px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}

.rg2b-price--premium {
  background: #fef3c7;
  color: #92400e;
}

/* Rating stars */
.rg2b-rating {
  color: #f59e0b;
  font-size: 1.1rem;
}

/* Check/X marks */
.rg2b-yes { color: var(--rg2b-success); font-weight: bold; }
.rg2b-no { color: #ef4444; font-weight: bold; }

/* ===== CTA BUTTONS ===== */
.rg2b-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--rg2b-primary), var(--rg2b-secondary));
  color: white !important;
  text-decoration: none !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
}

.rg2b-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px -2px rgba(37, 99, 235, 0.4);
}

.rg2b-cta--secondary {
  background: white;
  color: var(--rg2b-primary) !important;
  border: 2px solid var(--rg2b-primary);
  box-shadow: none;
}

/* ===== TOOL CARDS ===== */
.rg2b-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border: 1px solid var(--rg2b-border);
  transition: all 0.2s ease;
}

.rg2b-card:hover {
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.rg2b-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--rg2b-dark);
}

.rg2b-card__category {
  display: inline-block;
  background: #ede9fe;
  color: #5b21b6;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== VERDICT BOX ===== */
.rg2b-verdict {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border-left: 4px solid var(--rg2b-primary);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin: 2rem 0;
}

.rg2b-verdict__title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--rg2b-primary);
  margin-bottom: 8px;
}

/* ===== PROS/CONS ===== */
.rg2b-proscons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 1.5rem 0;
}

.rg2b-pros, .rg2b-cons {
  padding: 20px;
  border-radius: 12px;
}

.rg2b-pros {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.rg2b-cons {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.rg2b-pros h4 { color: #065f46; }
.rg2b-cons h4 { color: #991b1b; }

.rg2b-pros li::before { content: '✅ '; }
.rg2b-cons li::before { content: '❌ '; }

.rg2b-pros ul, .rg2b-cons ul {
  list-style: none;
  padding: 0;
}

.rg2b-pros li, .rg2b-cons li {
  padding: 4px 0;
  font-size: 0.9rem;
}

/* ===== DISCLOSURE ===== */
.rg2b-disclosure {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.8rem;
  color: #64748b;
  margin: 1rem 0;
}

/* ===== HERO SECTION ===== */
.rg2b-hero {
  background: linear-gradient(135deg, var(--rg2b-dark) 0%, #1e1b4b 100%);
  color: white;
  padding: 80px 40px;
  text-align: center;
  border-radius: 0 0 24px 24px;
}

.rg2b-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #93c5fd, #c4b5fd, #67e8f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rg2b-hero p {
  font-size: 1.2rem;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== TRUST / RELATED ===== */
.page-id-95 .wp-block-post-title {
  display: none;
}

.rg2b-telegram-box,
.rg2b-telegram-inline,
.rg2b-author-box,
.rg2b-related {
  background: #ffffff;
  border: 1px solid var(--rg2b-border);
  border-radius: 14px;
  padding: 20px 24px;
  margin: 2rem 0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.rg2b-telegram-box {
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 55%, #7c3aed 100%);
  color: white;
}

.rg2b-telegram-box__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bfdbfe;
  margin-bottom: 10px;
}

.rg2b-telegram-box h3,
.rg2b-telegram-inline__title,
.rg2b-author-box h3,
.rg2b-related h3 {
  margin: 0 0 10px;
  color: var(--rg2b-dark);
  font-size: 1.05rem;
}

.rg2b-telegram-box h3,
.rg2b-telegram-inline__title {
  color: white;
}

.rg2b-telegram-box p {
  color: #dbeafe;
}

.rg2b-telegram-box__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.rg2b-telegram-box .rg2b-cta--secondary {
  color: white !important;
  border-color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.08);
}

.rg2b-telegram-inline {
  background: linear-gradient(135deg, #eff6ff, #eef2ff);
}

.rg2b-telegram-inline__title {
  margin-bottom: 10px;
  color: var(--rg2b-dark);
  font-size: 1.05rem;
}

.rg2b-author-box p,
.rg2b-related p {
  margin-bottom: 0;
  color: #475569;
}

.rg2b-related ul {
  margin: 0;
  padding-left: 18px;
}

.rg2b-related li {
  margin: 8px 0;
}

.rg2b-related a {
  color: var(--rg2b-primary);
  text-decoration: none;
  font-weight: 600;
}

.rg2b-related a:hover {
  text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .rg2b-proscons { grid-template-columns: 1fr; }
  .rg2b-table { font-size: 0.85rem; }
  .rg2b-table thead th, .rg2b-table tbody td { padding: 10px 12px; }
  .rg2b-hero { padding: 48px 20px; }
  .rg2b-hero h1 { font-size: 1.8rem; }
  .rg2b-telegram-box,
  .rg2b-telegram-inline,
  .rg2b-author-box,
  .rg2b-related { padding: 16px 18px; }

  .rg2b-telegram-box__actions {
    flex-direction: column;
    align-items: stretch;
  }
}
