/*
Theme Name: AffilityPrime
Theme URI: https://affilityprime.com
Author: AffilityPrime
Author URI: https://affilityprime.com
Description: Amazon Affiliate Review & Comparison WordPress Theme
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: affilityprime
Tags: affiliate, amazon, review, comparison, ecommerce
*/

/* ============================================================
   AFFILITYPRIME — MAIN STYLESHEET
   Purple & White | Amazon Affiliate Theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800;900&family=Mulish:wght@400;500;600&display=swap');

/* ── CSS VARIABLES ── */
:root {
  --pu:       #7C3AED;
  --pu2:      #9D5CF6;
  --pu3:      #A855F7;
  --pu-light: #EDE9FE;
  --pu-bg:    #F5F3FF;
  --star:     #F59E0B;
  --green:    #16A34A;
  --red:      #DC2626;
  --white:    #FFFFFF;
  --bg:       #F8F7FF;
  --card:     #FFFFFF;
  --text:     #1A1A2E;
  --muted:    #6B7280;
  --border:   #E5E7EB;
  --shadow:   0 4px 24px rgba(124,58,237,0.08);
  --shadow-lg:0 12px 48px rgba(124,58,237,0.14);
  --radius:   12px;
  --radius-lg:20px;
  --font-head:'Sora', sans-serif;
  --font-body:'Mulish', sans-serif;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pu); text-decoration: none; transition: color .2s; }
a:hover { color: var(--pu3); }
ul { list-style: none; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
}
h1 { font-size: clamp(32px, 5vw, 56px); }
h2 { font-size: clamp(24px, 3.5vw, 38px); }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
p  { margin-bottom: 1rem; color: var(--muted); }

/* ── LAYOUT ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .3px;
  padding: 13px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all .25s;
  text-decoration: none;
}
.btn-primary { background: var(--pu); color: #fff; }
.btn-primary:hover { background: var(--pu2); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(124,58,237,.3); }
.btn-outline { background: transparent; color: var(--pu); border: 2px solid var(--pu); }
.btn-outline:hover { background: var(--pu); color: #fff; }
.btn-amazon { background: #FF9900; color: #fff; }
.btn-amazon:hover { background: #e68900; color: #fff; transform: translateY(-2px); }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }

/* ── BADGE / PILL ── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--pu-light);
  color: var(--pu);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 100px;
  border: 1px solid rgba(124,58,237,.2);
}
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
}
.badge-green  { background: #DCFCE7; color: #166534; }
.badge-blue   { background: #DBEAFE; color: #1D4ED8; }
.badge-orange { background: #FEF3C7; color: #92400E; }
.badge-purple { background: var(--pu-light); color: var(--pu); }
.badge-red    { background: #FEE2E2; color: #991B1B; }

/* ── CARDS ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow .25s, transform .25s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

/* ── STARS ── */
.stars { color: var(--star); letter-spacing: 2px; }
.star-row { display: flex; align-items: center; gap: 8px; }
.star-row .rating-num { font-family: var(--font-head); font-weight: 800; font-size: 18px; }
.star-row .rating-count { color: var(--muted); font-size: 13px; }

/* ── SECTION HEADERS ── */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .pill { margin-bottom: 16px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { max-width: 560px; margin: 0 auto; font-size: 17px; }

/* ── DIVIDER ── */
.divider { height: 1px; background: var(--border); margin: 0; }

/* ── PROS/CONS ── */
.pros-cons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pc-card { border-radius: var(--radius); padding: 20px; }
.pc-card.pros { background: #F0FDF4; border: 1px solid #BBF7D0; }
.pc-card.cons { background: #FFF1F2; border: 1px solid #FECDD3; }
.pc-card h4 { margin-bottom: 14px; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; }
.pc-card.pros h4 { color: var(--green); }
.pc-card.cons h4 { color: var(--red); }
.pc-item { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text); margin-bottom: 10px; line-height: 1.5; }
.pc-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.pc-dot.green { background: var(--green); }
.pc-dot.red   { background: var(--red); }

/* ── SCORE BARS ── */
.score-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.score-item .score-label { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; font-weight: 500; }
.score-item .score-label span:last-child { color: var(--pu); font-weight: 700; }
.score-track { background: #E5E7EB; border-radius: 4px; height: 7px; overflow: hidden; }
.score-fill   { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--pu), var(--pu3)); }

/* ── COMPARISON TABLE ── */
.comp-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.comp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.comp-table th { background: var(--pu); color: #fff; font-family: var(--font-head); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; padding: 14px 16px; text-align: left; white-space: nowrap; }
.comp-table td { padding: 13px 16px; border-bottom: 1px solid #F3F4F6; vertical-align: middle; }
.comp-table tr:last-child td { border-bottom: none; }
.comp-table tr:hover td { background: var(--pu-bg); }
.comp-table .winner td { background: #FAF5FF; }
.comp-table .rank-badge { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.rank-1 { background: var(--pu); color: #fff; }
.rank-2 { background: #E5E7EB; color: #374151; }
.comp-table .price-col { font-family: var(--font-head); font-weight: 800; color: var(--pu); }
.comp-table .check { color: var(--green); font-size: 16px; }
.comp-table .cross { color: var(--red); font-size: 16px; }
.winner-badge { background: var(--pu); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 100px; margin-left: 8px; }

/* ── GRID LAYOUTS ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ── PRODUCT CARD ── */
.product-card { border-radius: var(--radius); border: 1px solid var(--border); background: var(--card); overflow: hidden; transition: all .25s; }
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.product-card .card-img { background: var(--pu-bg); padding: 24px; text-align: center; font-size: 64px; min-height: 140px; display: flex; align-items: center; justify-content: center; }
.product-card .card-body { padding: 18px; }
.product-card .card-cat { font-size: 11px; color: var(--pu); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.product-card .card-title { font-family: var(--font-head); font-size: 15px; font-weight: 700; margin-bottom: 8px; color: var(--text); line-height: 1.3; }
.product-card .card-price { font-family: var(--font-head); font-size: 20px; font-weight: 900; color: var(--pu); margin: 8px 0; }
.product-card .card-old  { font-size: 13px; color: var(--muted); text-decoration: line-through; }

/* ── FORMS ── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color .2s;
  background: #fff;
}
.form-input:focus { outline: none; border-color: var(--pu); }

/* ── NEWSLETTER ── */
.newsletter-wrap { background: linear-gradient(135deg, var(--pu), var(--pu3)); border-radius: var(--radius-lg); padding: 56px 48px; text-align: center; color: #fff; }
.newsletter-wrap h2 { color: #fff; margin-bottom: 12px; }
.newsletter-wrap p  { color: rgba(255,255,255,.8); margin-bottom: 28px; }
.newsletter-form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; }
.newsletter-form input { flex: 1; padding: 13px 18px; border-radius: 8px; border: none; font-size: 15px; }
.newsletter-form input:focus { outline: 2px solid rgba(255,255,255,.5); }

/* ── PAGINATION ── */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.page-btn { width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--border); background: var(--card); font-weight: 600; font-size: 14px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .2s; color: var(--text); }
.page-btn.active, .page-btn:hover { background: var(--pu); color: #fff; border-color: var(--pu); }

/* ── SIDEBAR ── */
.sidebar-widget { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.sidebar-widget h4 { font-family: var(--font-head); font-size: 16px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--pu-light); color: var(--text); }
.sidebar-widget .widget-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #F3F4F6; align-items: center; }
.sidebar-widget .widget-item:last-child { border-bottom: none; }
.widget-icon { width: 44px; height: 44px; background: var(--pu-bg); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.widget-title { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.3; }
.widget-meta  { font-size: 11px; color: var(--muted); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .pros-cons-grid { grid-template-columns: 1fr; }
  .score-bars     { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .container      { padding: 0 16px; }
  .section        { padding: 56px 0; }
}
