/*
Theme Name:        AffiliateMax Pro
Theme URI:         https://affiliatemaxpro.com
Author:            AffiliateMax Team
Author URI:        https://affiliatemaxpro.com
Description:       The most complete Amazon affiliate WordPress theme. Multi-region support, auto-refresh, AI-powered reviews, SEO-optimized, social sharing, real product images. Works seamlessly with the AffiliateMax Pro plugin.
Version:           2.0.0
Requires at least: 6.0
Requires PHP:      8.0
License:           GPL-2.0+
License URI:       http://www.gnu.org/licenses/gpl-2.0.txt
Text Domain:       affiliatemax-pro
Tags:              affiliate, amazon, e-commerce, seo, responsive, multi-region, review
*/

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  --amp-primary:        #FF6B35;
  --amp-primary-dark:   #E5521C;
  --amp-primary-light:  #FF8C5A;
  --amp-primary-pale:   #FFF2EC;
  --amp-secondary:      #1A1A2E;
  --amp-accent:         #FFD700;
  --amp-success:        #22C55E;
  --amp-gray-50:  #F9FAFB;
  --amp-gray-100: #F3F4F6;
  --amp-gray-200: #E5E7EB;
  --amp-gray-300: #D1D5DB;
  --amp-gray-500: #6B7280;
  --amp-gray-700: #374151;
  --amp-gray-800: #1F2937;
  --amp-gray-900: #111827;
  --amp-font-sans:    'Inter', system-ui, sans-serif;
  --amp-font-display: 'Sora', system-ui, sans-serif;
  --amp-container: 1280px;
  --amp-radius: 12px;
  --amp-shadow: 0 4px 20px rgba(0,0,0,.08);
}

/* ── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--amp-font-sans);
  font-size: 16px; line-height: 1.65;
  color: var(--amp-gray-800); background: #fff;
  margin: 0; -webkit-font-smoothing: antialiased;
}
a { color: var(--amp-primary); text-decoration: none; }
a:hover { color: var(--amp-primary-dark); }
img { max-width: 100%; height: auto; }

/* ── Site Header ──────────────────────────────────────────── */
.amp-site-header {
  position: sticky; top: 0; z-index: 500;
  background: rgba(26,26,46,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 2px 20px rgba(0,0,0,.2);
}
.amp-header-inner {
  max-width: var(--amp-container); margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 24px;
}
.amp-site-logo { display: flex; align-items: center; gap: 12px; }
.amp-logo-icon { font-size: 28px; }
.amp-logo-text { font-family: var(--amp-font-display); font-weight: 800; font-size: 20px; color: #fff; }
.amp-logo-text span { color: var(--amp-accent); }

/* Navigation */
.amp-nav { display: flex; align-items: center; gap: 4px; }
.amp-nav a {
  color: rgba(255,255,255,.8); padding: 8px 14px;
  font-size: 14px; font-weight: 500;
  border-radius: 8px; transition: all .2s;
}
.amp-nav a:hover { color: #fff; background: rgba(255,255,255,.1); }
.amp-nav a.current { color: var(--amp-accent); }

/* Header Search */
.amp-header-search form { position: relative; }
.amp-header-search input {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  color: #fff; padding: 9px 40px 9px 14px;
  border-radius: 100px; font-size: 14px; width: 220px;
  outline: none; transition: all .2s;
}
.amp-header-search input::placeholder { color: rgba(255,255,255,.5); }
.amp-header-search input:focus { background: rgba(255,255,255,.15); width: 280px; }
.amp-header-search button {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: rgba(255,255,255,.6); cursor: pointer; font-size: 16px;
}

/* Mobile Menu */
.amp-menu-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.3); color: #fff; padding: 8px 12px; border-radius: 8px; cursor: pointer; }
@media (max-width: 900px) {
  .amp-nav { display: none; }
  .amp-menu-toggle { display: flex; }
  .amp-nav.open { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--amp-secondary); padding: 16px; border-bottom: 1px solid rgba(255,255,255,.1); z-index: 500; }
}

/* ── Homepage Hero ────────────────────────────────────────── */
.amp-home-hero {
  background: linear-gradient(135deg, var(--amp-secondary) 0%, #16213E 50%, #0F3460 100%);
  padding: 100px 0 80px;
  position: relative; overflow: hidden;
}
.amp-home-hero::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,53,.15) 0%, transparent 70%);
  pointer-events: none;
}
.amp-home-hero::after {
  content: ''; position: absolute; bottom: -30%; left: -10%;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,215,0,.08) 0%, transparent 70%);
}
.amp-hero-content { position: relative; z-index: 1; max-width: 700px; }
.amp-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,215,0,.15); border: 1px solid rgba(255,215,0,.3);
  color: var(--amp-accent); padding: 6px 16px; border-radius: 100px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; margin-bottom: 24px;
}
.amp-hero-headline {
  font-family: var(--amp-font-display); font-size: clamp(36px, 5vw, 60px);
  font-weight: 800; color: #fff; line-height: 1.15; margin-bottom: 20px;
}
.amp-hero-headline em { color: var(--amp-primary); font-style: normal; }
.amp-hero-subheadline { font-size: 18px; color: rgba(255,255,255,.75); line-height: 1.6; margin-bottom: 36px; max-width: 560px; }
.amp-hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.amp-hero-stats { display: flex; gap: 32px; margin-top: 48px; }
.amp-hero-stat { text-align: center; }
.amp-hero-stat-num { font-size: 28px; font-weight: 800; color: var(--amp-accent); display: block; }
.amp-hero-stat-label { font-size: 12px; color: rgba(255,255,255,.6); }
.amp-hero-trust { display: flex; align-items: center; gap: 10px; margin-top: 20px; }
.amp-hero-trust-badge { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); padding: 6px 12px; border-radius: 100px; font-size: 12px; color: rgba(255,255,255,.8); }

/* ── Features Section ─────────────────────────────────────── */
.amp-features-section { padding: 80px 0; background: var(--amp-gray-50); }
.amp-section-header { text-align: center; margin-bottom: 56px; }
.amp-section-label { display: inline-block; background: var(--amp-primary-pale); color: var(--amp-primary); padding: 6px 16px; border-radius: 100px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.amp-section-title { font-family: var(--amp-font-display); font-size: 36px; font-weight: 800; color: var(--amp-gray-900); margin-bottom: 14px; }
.amp-section-subtitle { font-size: 17px; color: var(--amp-gray-500); max-width: 560px; margin: 0 auto; line-height: 1.6; }
.amp-features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px)  { .amp-features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .amp-features-grid { grid-template-columns: 1fr; } }
.amp-feature-card {
  background: #fff; border-radius: 20px;
  padding: 32px; border: 1.5px solid var(--amp-gray-100);
  transition: all .25s; position: relative; overflow: hidden;
}
.amp-feature-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--amp-primary-pale), #fff); opacity: 0; transition: opacity .3s; }
.amp-feature-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0,0,0,.1); border-color: var(--amp-primary); }
.amp-feature-card:hover::before { opacity: 1; }
.amp-feature-icon { position: relative; z-index: 1; font-size: 36px; margin-bottom: 16px; display: block; }
.amp-feature-title { position: relative; z-index: 1; font-family: var(--amp-font-display); font-size: 18px; font-weight: 700; color: var(--amp-gray-900); margin-bottom: 10px; }
.amp-feature-desc { position: relative; z-index: 1; font-size: 14px; color: var(--amp-gray-500); line-height: 1.65; }

/* ── How It Works ─────────────────────────────────────────── */
.amp-how-section { padding: 80px 0; }
.amp-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.amp-steps::before { content: ''; position: absolute; top: 32px; left: 15%; right: 15%; height: 2px; background: var(--amp-gray-200); z-index: 0; }
@media (max-width: 900px) { .amp-steps { grid-template-columns: 1fr 1fr; } .amp-steps::before { display: none; } }
@media (max-width: 540px) { .amp-steps { grid-template-columns: 1fr; } }
.amp-step { text-align: center; position: relative; z-index: 1; }
.amp-step-num { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--amp-primary), var(--amp-primary-dark)); color: #fff; font-family: var(--amp-font-display); font-size: 22px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; box-shadow: 0 4px 20px rgba(255,107,53,.4); }
.amp-step-title { font-weight: 700; font-size: 16px; color: var(--amp-gray-800); margin-bottom: 8px; }
.amp-step-desc  { font-size: 14px; color: var(--amp-gray-500); line-height: 1.6; }

/* ── Regions Showcase ─────────────────────────────────────── */
.amp-regions-section { padding: 60px 0; background: var(--amp-secondary); }
.amp-regions-section .amp-section-title { color: #fff; }
.amp-regions-section .amp-section-subtitle { color: rgba(255,255,255,.6); }
.amp-regions-banner { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }
.amp-region-pill {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  color: #fff; padding: 8px 16px; border-radius: 100px;
  font-size: 14px; font-weight: 500; transition: all .2s;
}
.amp-region-pill:hover { background: rgba(255,255,255,.2); color: #fff; transform: scale(1.05); }

/* ── Testimonials ─────────────────────────────────────────── */
.amp-testimonials-section { padding: 80px 0; background: var(--amp-gray-50); }
.amp-testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .amp-testimonials-grid { grid-template-columns: 1fr; } }
.amp-testimonial {
  background: #fff; border-radius: 20px; padding: 32px;
  border: 1.5px solid var(--amp-gray-100);
  box-shadow: var(--amp-shadow);
}
.amp-testimonial-body { font-size: 16px; color: var(--amp-gray-700); line-height: 1.7; font-style: italic; margin-bottom: 20px; }
.amp-testimonial-author { display: flex; align-items: center; gap: 12px; }
.amp-testimonial-avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--amp-primary), var(--amp-primary-dark)); color: #fff; font-weight: 800; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.amp-testimonial-name { font-weight: 700; font-size: 14px; color: var(--amp-gray-800); }
.amp-testimonial-role { font-size: 12px; color: var(--amp-gray-500); }

/* ── Footer ───────────────────────────────────────────────── */
.amp-site-footer {
  background: var(--amp-secondary);
  color: rgba(255,255,255,.7);
  padding: 60px 0 32px;
}
.amp-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 900px) { .amp-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .amp-footer-grid { grid-template-columns: 1fr; } }
.amp-footer-brand .amp-logo-text { font-size: 22px; }
.amp-footer-desc { font-size: 14px; line-height: 1.7; margin-top: 12px; color: rgba(255,255,255,.55); }
.amp-footer-heading { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.9); margin-bottom: 16px; }
.amp-footer-links { list-style: none; padding: 0; }
.amp-footer-links li { margin-bottom: 8px; }
.amp-footer-links a { font-size: 14px; color: rgba(255,255,255,.6); transition: color .2s; }
.amp-footer-links a:hover { color: #fff; }
.amp-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.amp-footer-copyright { font-size: 13px; color: rgba(255,255,255,.4); }
.amp-footer-disclaimer { font-size: 11px; color: rgba(255,255,255,.35); max-width: 600px; line-height: 1.5; }
.amp-footer-legal { display: flex; gap: 16px; }
.amp-footer-legal a { font-size: 12px; color: rgba(255,255,255,.45); }
.amp-footer-legal a:hover { color: #fff; }

/* ── Page Banner ──────────────────────────────────────────── */
.amp-page-banner { background: linear-gradient(135deg, var(--amp-secondary), #2d2d5e); padding: 60px 0; text-align: center; }
.amp-page-banner h1 { font-family: var(--amp-font-display); font-size: 40px; font-weight: 800; color: #fff; }
.amp-page-banner p { color: rgba(255,255,255,.7); font-size: 17px; margin-top: 10px; }

/* ── Content Page ─────────────────────────────────────────── */
.amp-content-page { max-width: 800px; margin: 60px auto; padding: 0 24px 80px; }
.amp-content-page h1, .amp-content-page h2 { font-family: var(--amp-font-display); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .amp-header-search { display: none; }
  .amp-hero-stats { gap: 20px; }
  .amp-hero-stat-num { font-size: 22px; }
}
