/* ============================================
   RED LIGHT THERAPY HUB - Main Stylesheet
   ============================================ */

/* ---------- CSS Reset & Variables ---------- */
:root {
  --red-deep: #8B1A1A;
  --red-primary: #C0392B;
  --red-light: #E74C3C;
  --red-glow: #FF6B6B;
  --orange-warm: #E67E22;
  --gold: #F39C12;
  --bg-dark: #1A1A2E;
  --bg-card: #16213E;
  --bg-section: #0F3460;
  --text-light: #F5F5F5;
  --text-muted: #B0B0C0;
  --text-body: #D0D0E0;
  --white: #FFFFFF;
  --border: rgba(255,255,255,0.08);
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --radius: 12px;
  --max-width: 1200px;
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-dark);
  color: var(--text-body);
  line-height: 1.7;
  min-height: 100vh;
}

a { color: var(--red-glow); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

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

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

/* ---------- Header & Navigation ---------- */
.site-header {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-card) 100%);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}

.logo span { color: var(--red-glow); }

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

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

.main-nav a {
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
}

.main-nav a:hover, .main-nav a.active {
  color: var(--white);
  background: rgba(255,107,107,0.12);
}

/* Mobile Nav */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 16px; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { display: block; padding: 12px 16px; }
}

/* ---------- Hero Section ---------- */
.hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--red-deep) 50%, var(--bg-dark) 100%);
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,107,107,0.15) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.2;
  position: relative;
}

.hero h1 span { color: var(--red-glow); }

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 32px;
  position: relative;
}

@media (max-width: 768px) {
  .hero { padding: 48px 24px; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red-light), var(--red-primary));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(231,76,60,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(231,76,60,0.5);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--red-glow);
  border: 2px solid var(--red-glow);
}

.btn-secondary:hover {
  background: rgba(255,107,107,0.1);
  color: var(--white);
  border-color: var(--white);
}

.btn-amazon {
  background: linear-gradient(135deg, #FF9900, #E68A00);
  color: #111;
  font-weight: 800;
}

.btn-amazon:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,153,0,0.4);
  color: #111;
}

.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

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

.section-alt {
  background: var(--bg-card);
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 48px;
  font-size: 1.05rem;
}

/* ---------- Cards Grid ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: all var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(255,107,107,0.2);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.card h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Product Cards ---------- */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

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

.product-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--red-light), var(--orange-warm));
  color: var(--white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-image {
  background: linear-gradient(135deg, #1a1a2e, #2a1a2e);
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
}

.product-body {
  padding: 24px;
}

.product-body h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.product-body .price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 8px;
}

.product-body .rating {
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.product-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.product-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ---------- Comparison Table ---------- */
.comparison-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.comparison-table th {
  background: var(--bg-section);
  color: var(--white);
  padding: 16px;
  text-align: left;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--red-primary);
}

.comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.comparison-table tr:nth-child(even) { background: rgba(255,255,255,0.02); }

.comparison-table tr:hover { background: rgba(255,107,107,0.05); }

.comparison-table .highlight-row {
  background: rgba(255,107,107,0.08) !important;
  border-left: 3px solid var(--red-glow);
}

/* ---------- Pros/Cons ---------- */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 24px 0;
}

.pros, .cons {
  padding: 24px;
  border-radius: var(--radius);
}

.pros { background: rgba(46,204,113,0.08); border: 1px solid rgba(46,204,113,0.2); }
.cons { background: rgba(231,76,60,0.08); border: 1px solid rgba(231,76,60,0.2); }

.pros h4 { color: #2ECC71; margin-bottom: 12px; }
.cons h4 { color: var(--red-light); margin-bottom: 12px; }

.pros ul, .cons ul { list-style: none; }
.pros li::before { content: '✓ '; color: #2ECC71; font-weight: 700; }
.cons li::before { content: '✗ '; color: var(--red-light); font-weight: 700; }
.pros li, .cons li { margin-bottom: 6px; font-size: 0.9rem; }

@media (max-width: 600px) { .pros-cons { grid-template-columns: 1fr; } }

/* ---------- Blog / Article Styles ---------- */
.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px;
}

.article-content h1 {
  font-size: 2.2rem;
  color: var(--white);
  margin-bottom: 16px;
}

.article-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.article-content h2 {
  color: var(--white);
  font-size: 1.5rem;
  margin: 40px 0 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.article-content h3 {
  color: var(--red-glow);
  font-size: 1.2rem;
  margin: 24px 0 12px;
}

.article-content p {
  margin-bottom: 16px;
}

.article-content ul, .article-content ol {
  margin: 0 0 16px 24px;
}

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

.callout {
  background: rgba(255,107,107,0.08);
  border-left: 4px solid var(--red-glow);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
}

.callout strong { color: var(--white); }

/* ---------- Blog List ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

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

.blog-card-image {
  height: 180px;
  background: linear-gradient(135deg, var(--bg-section), var(--red-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.blog-card-body {
  padding: 24px;
}

.blog-card-body .tag {
  display: inline-block;
  background: rgba(255,107,107,0.15);
  color: var(--red-glow);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.blog-card-body h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.blog-card-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--white);
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
}

.faq-question:hover { background: rgba(255,255,255,0.03); }

.faq-question .icon { color: var(--red-glow); font-size: 1.2rem; transition: transform var(--transition); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer { max-height: 500px; padding: 0 24px 20px; }
.faq-item.open .faq-question .icon { transform: rotate(45deg); }

/* ---------- Email Signup ---------- */
.email-signup {
  background: linear-gradient(135deg, var(--red-deep), var(--bg-section));
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  margin: 48px 0;
  border: 1px solid rgba(255,107,107,0.15);
}

.email-signup h2 {
  color: var(--white);
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.email-signup p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.email-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.email-form input[type="email"] {
  flex: 1;
  min-width: 240px;
  padding: 14px 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-dark);
  color: var(--white);
  font-size: 1rem;
}

.email-form input[type="email"]::placeholder { color: var(--text-muted); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; }

.footer-links h4 {
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.footer-links ul { list-style: none; }

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  display: block;
  padding: 4px 0;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.affiliate-disclosure {
  background: rgba(255,107,107,0.05);
  border: 1px solid rgba(255,107,107,0.1);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--red-glow); }
.breadcrumb span { margin: 0 8px; }

/* ---------- Star Rating ---------- */
.stars { color: var(--gold); letter-spacing: 2px; }

/* ---------- Affiliate Disclaimer Banner ---------- */
.disclaimer-bar {
  background: var(--bg-card);
  padding: 8px 24px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mt-48 { margin-top: 48px; }
.mb-24 { margin-bottom: 24px; }
.mb-48 { margin-bottom: 48px; }
.gap-16 { gap: 16px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.justify-center { justify-content: center; }
