/* =====================================================
   My Seven Stars — Global Design System
   mysevenstars.com
   ===================================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --color-primary: #1a1a2e;
  --color-primary-light: #16213e;
  --color-accent: #e94560;
  --color-accent-hover: #c73652;
  --color-accent-2: #f5a623;
  --color-accent-2-hover: #e09510;
  --color-bg: #f8f9fa;
  --color-surface: #ffffff;
  --color-text: #2d2d2d;
  --color-text-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-success: #10b981;
  --color-success-bg: #d1fae5;
  --color-warning: #f59e0b;
  --color-warning-bg: #fef3c7;
  --color-info: #3b82f6;
  --color-info-bg: #dbeafe;
  --shadow-card: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --max-width: 1200px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-ui: 'DM Sans', system-ui, -apple-system, sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ui);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 56px 0; }
.section-sm { padding: 32px 0; }

/* --- Site Header / Navigation --- */
.site-nav {
  background: var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.site-nav .nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}
.nav-brand {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-brand span { color: var(--color-accent-2); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex: 1;
}
.nav-links a {
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.nav-links a:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}
.nav-cta {
  background: var(--color-accent);
  color: #fff !important;
  border-radius: 8px !important;
  padding: 7px 14px !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--color-accent-hover) !important; }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: .2s;
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-primary);
    padding: 16px 24px 24px;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
}

/* --- Site Footer --- */
.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 32px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { font-family: var(--font-display); font-size: 22px; color: #fff; font-weight: 700; margin-bottom: 12px; }
.footer-brand span { color: var(--color-accent-2); }
.footer-tagline { font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
.footer-col h4 { color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.65); font-size: 14px; text-decoration: none; transition: color .15s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--max-width);
  margin: 24px auto 0;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}
.footer-disclosure {
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 12px;
  max-width: 600px;
  color: rgba(255,255,255,0.5);
}

/* --- Affiliate Disclosure Banner --- */
.disclosure-banner {
  background: #fef9c3;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px;
  color: #92400e;
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.disclosure-banner::before { content: '⚠️'; flex-shrink: 0; }

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-muted);
  padding: 16px 0;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--color-text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb .sep { color: var(--color-border); }

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(233,69,96,0.2);
  color: var(--color-accent);
  border: 1px solid rgba(233,69,96,0.4);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.2;
  margin-bottom: 16px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.hero-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto 28px;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-size: 24px; font-weight: 700; color: var(--color-accent-2); }
.hero-stat span { font-size: 13px; color: rgba(255,255,255,0.6); }

/* --- Quick Picks / Featured --- */
.quick-picks { background: var(--color-surface); border-bottom: 1px solid var(--color-border); padding: 40px 0; }
.quick-picks h2 { text-align: center; font-family: var(--font-display); font-size: 26px; margin-bottom: 28px; }
.quick-picks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 768px) { .quick-picks-grid { grid-template-columns: 1fr; } }

/* --- Tool Card --- */
.tool-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform .18s, box-shadow .18s;
}
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.tool-card-logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
  font-weight: 700;
  color: var(--color-primary);
}
.tool-card-name { font-size: 17px; font-weight: 700; margin-bottom: 4px; color: var(--color-text); }
.tool-card-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.stars { color: var(--color-accent-2); font-size: 14px; letter-spacing: 1px; }
.rating-num { font-size: 13px; font-weight: 600; color: var(--color-text-muted); }
.tool-card-desc { font-size: 14px; color: var(--color-text-muted); flex: 1; margin-bottom: 16px; line-height: 1.5; }
.tool-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 14px;
}
.tool-card-price { font-weight: 600; color: var(--color-text); }

/* --- Affiliate CTA Button --- */
.affiliate-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .15s, transform .1s;
  width: 100%;
  text-align: center;
}
.affiliate-cta-button:hover { background: var(--color-accent-hover); transform: translateY(-1px); text-decoration: none; }
.affiliate-cta-button.secondary {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}
.affiliate-cta-button.secondary:hover { background: var(--color-accent); color: #fff; }
.affiliate-cta-button.gold { background: var(--color-accent-2); color: var(--color-primary); }
.affiliate-cta-button.gold:hover { background: var(--color-accent-2-hover); }

/* --- Rating Badge --- */
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-accent-2);
  color: var(--color-primary);
  font-weight: 800;
  font-size: 16px;
  padding: 6px 14px;
  border-radius: 8px;
}
.rating-badge small { font-size: 12px; font-weight: 500; opacity: .7; }

/* --- Tools Grid --- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1100px) { .tools-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .tools-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .tools-grid { grid-template-columns: 1fr; } }

/* --- Category Card (for homepage grid) --- */
.cat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-decoration: none;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  box-shadow: var(--shadow-card);
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--color-accent); text-decoration: none; }
.cat-icon { font-size: 28px; }
.cat-card h3 { font-size: 16px; font-weight: 700; margin: 0; color: var(--color-text); }
.cat-card p { font-size: 13px; color: var(--color-text-muted); margin: 0; }
.cat-card .count { font-size: 12px; color: var(--color-accent); font-weight: 600; }

/* --- Comparison Table --- */
.comparison-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.comparison-table th {
  background: var(--color-primary);
  color: #fff;
  padding: 14px 16px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
}
.comparison-table th:first-child { border-radius: 8px 0 0 0; }
.comparison-table th:last-child { border-radius: 0 8px 0 0; }
.comparison-table td { padding: 12px 16px; border-bottom: 1px solid var(--color-border); vertical-align: middle; }
.comparison-table tr:nth-child(even) td { background: #fafafa; }
.comparison-table tr:hover td { background: #f0f9ff; }
.comparison-table .winner { color: var(--color-success); font-weight: 700; }
.comparison-table .loser { color: var(--color-text-muted); }
.check { color: var(--color-success); }
.cross { color: #ef4444; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--color-border); margin: 24px 0; }

/* --- Pros & Cons Grid --- */
.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
}
@media (max-width: 580px) { .pros-cons-grid { grid-template-columns: 1fr; } }
.pros-box, .cons-box {
  border-radius: var(--radius);
  padding: 20px;
}
.pros-box { background: #f0fdf4; border: 1px solid #bbf7d0; }
.cons-box { background: #fff1f2; border: 1px solid #fecdd3; }
.pros-box h4 { color: #15803d; font-size: 14px; font-weight: 700; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .05em; }
.cons-box h4 { color: #b91c1c; font-size: 14px; font-weight: 700; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .05em; }
.pros-box ul, .cons-box ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.pros-box ul li::before { content: '✓ '; color: #15803d; font-weight: 700; }
.cons-box ul li::before { content: '✗ '; color: #b91c1c; font-weight: 700; }
.pros-box ul li, .cons-box ul li { font-size: 14px; line-height: 1.5; }

/* --- FAQ Accordion --- */
.faq-section { margin: 40px 0; }
.faq-section h2 { font-family: var(--font-display); font-size: 26px; margin-bottom: 20px; }
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: var(--color-surface);
  border: none;
  padding: 16px 20px;
  text-align: left;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background .15s;
}
.faq-question:hover { background: #f9fafb; }
.faq-question .faq-icon { flex-shrink: 0; font-size: 18px; color: var(--color-accent); transition: transform .2s; }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease, padding .25s;
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.7;
}
.faq-answer.open { max-height: 400px; padding: 0 20px 16px; }

/* --- TOC (Table of Contents) --- */
.toc {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 0 0 28px;
}
.toc h3 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--color-primary); margin-bottom: 12px; }
.toc ol { padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.toc ol li a { font-size: 14px; color: var(--color-text); text-decoration: none; }
.toc ol li a:hover { color: var(--color-accent); text-decoration: underline; }

/* --- Verdict / Callout Boxes --- */
.verdict-box {
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
  border-left: 4px solid;
}
.verdict-box.green { background: #f0fdf4; border-color: var(--color-success); }
.verdict-box.red { background: #fff1f2; border-color: var(--color-accent); }
.verdict-box.gold { background: #fffbeb; border-color: var(--color-accent-2); }
.verdict-box.blue { background: #eff6ff; border-color: var(--color-info); }
.verdict-box h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.verdict-box p { font-size: 15px; margin: 0; }

/* --- Pricing Table --- */
.pricing-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 24px 0;
}
.pricing-plan {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  background: var(--color-surface);
}
.pricing-plan.featured {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(233,69,96,0.15);
  position: relative;
}
.pricing-plan.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  white-space: nowrap;
}
.plan-name { font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.plan-price { font-size: 32px; font-weight: 800; color: var(--color-primary); }
.plan-price sup { font-size: 18px; vertical-align: top; margin-top: 6px; display: inline-block; }
.plan-period { font-size: 13px; color: var(--color-text-muted); margin-bottom: 16px; }
.plan-features { list-style: none; text-align: left; display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; font-size: 14px; }
.plan-features li::before { content: '✓ '; color: var(--color-success); font-weight: 700; }

/* --- Review Score Card --- */
.score-card {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 28px 0;
}
.score-overall {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.score-num { font-size: 56px; font-weight: 800; color: var(--color-accent-2); line-height: 1; }
.score-out-of { font-size: 20px; color: rgba(255,255,255,0.5); }
.score-breakdown { display: flex; flex-direction: column; gap: 10px; }
.score-row { display: grid; grid-template-columns: 140px 1fr 40px; align-items: center; gap: 12px; font-size: 14px; }
.score-row span:first-child { color: rgba(255,255,255,0.7); }
.score-bar { background: rgba(255,255,255,0.15); border-radius: 4px; height: 6px; overflow: hidden; }
.score-fill { height: 100%; background: var(--color-accent-2); border-radius: 4px; }
.score-row span:last-child { font-weight: 700; text-align: right; }

/* --- Section Headers --- */
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-family: var(--font-display); font-size: clamp(22px, 3vw, 32px); margin-bottom: 10px; }
.section-header p { font-size: 16px; color: var(--color-text-muted); max-width: 600px; margin: 0 auto; }

/* --- Tag / Badge --- */
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.tag-green { background: var(--color-success-bg); color: #065f46; }
.tag-red { background: #fce7f3; color: #9d174d; }
.tag-gold { background: var(--color-warning-bg); color: #92400e; }
.tag-blue { background: var(--color-info-bg); color: #1e40af; }
.tag-gray { background: #f3f4f6; color: #374151; }

/* --- Key Stats Bar --- */
.key-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  background: #f9fafb;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 20px 0;
}
.key-stat { display: flex; flex-direction: column; gap: 2px; }
.key-stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--color-text-muted); font-weight: 600; }
.key-stat-value { font-size: 15px; font-weight: 700; color: var(--color-text); }

/* --- Related Tools Grid --- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 24px 0;
}
@media (max-width: 640px) { .related-grid { grid-template-columns: 1fr; } }

/* --- Newsletter Signup --- */
.newsletter-box {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
  color: #fff;
  margin: 56px 0;
}
.newsletter-box h2 { font-family: var(--font-display); font-size: 28px; margin-bottom: 10px; }
.newsletter-box p { color: rgba(255,255,255,0.7); margin-bottom: 24px; max-width: 480px; margin-left: auto; margin-right: auto; }
.newsletter-form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; }
.newsletter-form input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 15px;
  font-family: var(--font-ui);
  outline: none;
}
.newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form input[type="email"]:focus { border-color: var(--color-accent-2); }
.newsletter-form button {
  padding: 12px 24px;
  background: var(--color-accent-2);
  color: var(--color-primary);
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  font-family: var(--font-ui);
  transition: background .15s;
  white-space: nowrap;
}
.newsletter-form button:hover { background: var(--color-accent-2-hover); }
@media (max-width: 500px) { .newsletter-form { flex-direction: column; } }

/* --- Typography Utilities --- */
h1, h2, h3, h4 { line-height: 1.25; }
.display-font { font-family: var(--font-display); }
.text-muted { color: var(--color-text-muted); }
.text-accent { color: var(--color-accent); }
.text-gold { color: var(--color-accent-2); }
.text-center { text-align: center; }
.text-sm { font-size: 14px; }
.font-bold { font-weight: 700; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
