/* ============================================
   รีวิวดี - Affiliate Review Website
   Primary: #FF6B35 (Shopee orange) + white + light gray
   Font: Sarabun | Mobile-first, responsive
   ============================================ */

:root {
  --color-primary: #FF6B35;
  --color-primary-dark: #e85525;
  --color-primary-light: #fff1eb;
  --color-text: #2b2b2b;
  --color-muted: #6b7280;
  --color-bg: #ffffff;
  --color-gray: #f5f6f8;
  --color-border: #e5e7eb;
  --color-star: #ffb400;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 6px 20px rgba(255, 107, 53, 0.18);
  --max-width: 1100px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Sarabun', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-primary);
}

.logo .logo-badge {
  background: var(--color-primary);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--color-text);
  cursor: pointer;
}

.main-nav ul {
  display: flex;
  gap: 8px;
  list-style: none;
}

.main-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--color-text);
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #ff8a5c 100%);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.3;
}

.hero p {
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto 24px;
  opacity: 0.95;
}

.hero .btn-hero {
  display: inline-block;
  background: #fff;
  color: var(--color-primary);
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 50px;
  box-shadow: var(--shadow);
  transition: transform 0.15s;
}

.hero .btn-hero:hover {
  transform: translateY(-2px);
}

/* ---------- Section ---------- */
.section {
  padding: 48px 0;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--color-muted);
  margin-bottom: 32px;
}

/* ---------- Card Grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.review-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.18s, box-shadow 0.18s;
  display: flex;
  flex-direction: column;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.review-card .card-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--color-gray);
  overflow: hidden;
}

.review-card .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-card .card-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
}

.review-card .card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.review-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.review-card h3 a {
  color: var(--color-text);
}

.review-card h3 a:hover {
  color: var(--color-primary);
}

.review-card .card-excerpt {
  color: var(--color-muted);
  font-size: 0.92rem;
  margin-bottom: 12px;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.card-price {
  font-weight: 700;
  color: var(--color-primary);
}

/* ---------- Stars ---------- */
.stars {
  color: var(--color-star);
  font-size: 1rem;
  letter-spacing: 1px;
}

.stars .rating-num {
  color: var(--color-muted);
  font-size: 0.85rem;
  margin-left: 4px;
}

/* ---------- Review Article ---------- */
.review-article {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 16px;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--color-muted);
}

.review-article h1 {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 16px;
}

.review-hero-img {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-gray);
  margin-bottom: 20px;
  aspect-ratio: 16 / 9;
}

.review-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-meta-box {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  background: var(--color-gray);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 28px;
}

.review-meta-box .price-big {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
}

.review-meta-box .price-label {
  font-size: 0.8rem;
  color: var(--color-muted);
  display: block;
}

.review-article h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--color-primary-light);
}

.review-article h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 20px 0 8px;
}

.review-article p {
  margin-bottom: 14px;
}

.review-article ul {
  margin: 0 0 16px 20px;
}

.review-article li {
  margin-bottom: 6px;
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 20px 0;
}

.pros-cons .box {
  border-radius: var(--radius);
  padding: 16px 20px;
}

.pros-cons .pros {
  background: #ecfdf3;
  border: 1px solid #abefc6;
}

.pros-cons .cons {
  background: #fef3f2;
  border: 1px solid #fecdca;
}

.pros-cons h3 {
  margin-top: 0;
}

.pros-cons ul {
  list-style: none;
  margin-left: 0;
}

.pros-cons .pros li::before {
  content: "✓ ";
  color: #12b76a;
  font-weight: 700;
}

.pros-cons .cons li::before {
  content: "✕ ";
  color: #f04438;
  font-weight: 700;
}

/* ---------- CTA Button ---------- */
.cta-wrap {
  text-align: center;
  margin: 36px 0;
}

.btn-cta {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  padding: 18px 40px;
  border-radius: 50px;
  box-shadow: 0 6px 18px rgba(255, 107, 53, 0.4);
  transition: transform 0.15s, background 0.15s;
  animation: pulse 2.2s infinite;
}

.btn-cta:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

@keyframes pulse {
  0%   { box-shadow: 0 6px 18px rgba(255, 107, 53, 0.4); }
  50%  { box-shadow: 0 6px 28px rgba(255, 107, 53, 0.65); }
  100% { box-shadow: 0 6px 18px rgba(255, 107, 53, 0.4); }
}

.cta-note {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: 10px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #1f2937;
  color: #d1d5db;
  padding: 36px 0;
  margin-top: 48px;
  font-size: 0.9rem;
}

.site-footer .footer-logo {
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.disclosure {
  background: rgba(255, 107, 53, 0.1);
  border-left: 4px solid var(--color-primary);
  padding: 14px 18px;
  border-radius: 8px;
  margin: 16px 0;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 18px;
  list-style: none;
  flex-wrap: wrap;
  margin-top: 16px;
}

.footer-links a {
  color: #d1d5db;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-copy {
  margin-top: 16px;
  color: #9ca3af;
  font-size: 0.82rem;
}

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pros-cons {
    grid-template-columns: 1fr 1fr;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (min-width: 960px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .review-article h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }
  .main-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    display: none;
  }
  .main-nav.open {
    display: block;
  }
  .main-nav ul {
    flex-direction: column;
    padding: 8px 16px;
  }
}
