/* ============================================
   MusicSaz.com - Design System
   Premium Music Production Website
   ============================================ */

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

/* --- CSS Custom Properties --- */
:root {
  /* Colors - Dark Music Production Theme */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a2e;
  --bg-card-hover: #1f1f35;
  --bg-surface: #16162a;
  --bg-input: #1e1e32;

  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b8;
  --text-muted: #6b6b82;
  --text-link: #8b5cf6;

  --accent-primary: #8b5cf6;
  --accent-secondary: #6d28d9;
  --accent-glow: rgba(139, 92, 246, 0.3);
  --accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 50%, #c084fc 100%);

  --accent-warm: #f59e0b;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --accent-blue: #3b82f6;
  --accent-pink: #ec4899;

  --border-color: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.1);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 1.875rem;
  --fs-3xl: 2.25rem;
  --fs-4xl: 3rem;
  --fs-5xl: 3.75rem;

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Layout */
  --max-width: 1200px;
  --content-width: 800px;
  --sidebar-width: 360px;

  /* Borders */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 20px var(--accent-glow);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Header background (dark) */
  --header-bg: rgba(10, 10, 15, 0.85);
}

/* --- Light Theme --- */
[data-theme="light"] {
  --bg-primary: #f8f9fc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f3f0ff;
  --bg-surface: #f0f0f5;
  --bg-input: #f3f4f6;

  --text-primary: #1a1a2e;
  --text-secondary: #4a4a68;
  --text-muted: #8888a0;
  --text-link: #7c3aed;

  --accent-primary: #7c3aed;
  --accent-secondary: #5b21b6;
  --accent-glow: rgba(124, 58, 237, 0.15);
  --accent-gradient: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 50%, #a78bfa 100%);

  --accent-warm: #d97706;
  --accent-green: #059669;
  --accent-red: #dc2626;
  --accent-blue: #2563eb;

  --border-color: rgba(0, 0, 0, 0.08);
  --border-light: rgba(0, 0, 0, 0.12);

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-glow: 0 0 20px var(--accent-glow);

  --header-bg: rgba(255, 255, 255, 0.88);
}

/* Theme Toggle */
.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all var(--transition-fast);
  margin-left: var(--sp-3);
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: scale(1.1);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  display: none;
}

/* Default (light): show moon icon (to switch to dark) */
.theme-toggle .icon-moon {
  display: block;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

/* Smooth color transition for theme switch */
body,
.site-header,
.article-card,
.newsletter-box,
.site-footer,
.bg-card,
.comment,
.comment-form,
.toc,
.author-box,
.product-card,
.contact-form,
.footer-social a,
.tip-box,
.warning-box {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--accent-primary);
}

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

ul, ol {
  list-style: none;
}

/* --- Utilities --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --- Header / Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: background var(--transition-base);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--fs-xl);
  color: var(--text-primary);
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.logo span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.nav-menu a {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
  transition: width var(--transition-base);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--text-primary);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-2);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

/* --- Hero Section --- */
.hero {
  padding: var(--sp-24) 0 var(--sp-16);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.4;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  color: var(--accent-primary);
  margin-bottom: var(--sp-6);
  font-weight: 500;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: var(--fs-5xl);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--sp-6);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 .gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--sp-8);
  line-height: 1.8;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--sp-12);
  margin-top: var(--sp-10);
}

.hero-stat {
  text-align: center;
}

.hero-stat .number {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat .label {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-top: var(--sp-1);
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  margin-bottom: var(--sp-12);
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: 700;
  margin-bottom: var(--sp-3);
}

.section-header p {
  color: var(--text-secondary);
  font-size: var(--fs-md);
}

/* --- Article Cards Grid --- */
.articles-section {
  padding: var(--sp-16) 0;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--sp-8);
}

.article-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
  position: relative;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: var(--shadow-glow);
  background: var(--bg-card-hover);
}

.article-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.article-card:hover .article-card-image img {
  transform: scale(1.05);
}

.article-card-category {
  position: absolute;
  top: var(--sp-4);
  left: var(--sp-4);
  background: rgba(139, 92, 246, 0.9);
  color: white;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-card-body {
  padding: var(--sp-6);
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.article-card-meta span {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.article-card h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--sp-3);
}

.article-card h3 a {
  color: var(--text-primary);
  text-decoration: none;
}

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

.article-card-excerpt {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  line-height: 1.7;
  margin-bottom: var(--sp-4);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border-color);
}

.read-more-link {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  transition: gap var(--transition-fast);
}

.read-more-link:hover {
  gap: var(--sp-3);
}

/* --- Featured Article (First/Largest) --- */
.featured-article {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
}

.featured-article .article-card-image {
  aspect-ratio: auto;
  min-height: 400px;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.featured-article .article-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--sp-10);
}

.featured-article h3 {
  font-size: var(--fs-2xl);
}

.featured-label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--accent-warm);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--sp-3);
}

/* --- Newsletter Section --- */
.newsletter-section {
  padding: var(--sp-16) 0;
}

.newsletter-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--sp-12) var(--sp-10);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 50%);
  opacity: 0.15;
  pointer-events: none;
}

.newsletter-box h2 {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: 700;
  margin-bottom: var(--sp-3);
  position: relative;
}

.newsletter-box p {
  color: var(--text-secondary);
  margin-bottom: var(--sp-8);
  position: relative;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: var(--sp-3);
  position: relative;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: var(--sp-4) var(--sp-5);
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--fs-base);
  font-family: var(--font-primary);
  outline: none;
  transition: border-color var(--transition-fast);
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--accent-primary);
}

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

.btn-primary {
  padding: var(--sp-4) var(--sp-8);
  background: var(--accent-gradient);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--fs-base);
  font-weight: 600;
  font-family: var(--font-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary:hover {
  opacity: 0.9;
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

/* --- Footer --- */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: var(--sp-16) 0 var(--sp-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-10);
  margin-bottom: var(--sp-12);
}

.footer-about .logo {
  margin-bottom: var(--sp-4);
}

.footer-about p {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  line-height: 1.8;
}

.footer-column h4 {
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  font-weight: 600;
  margin-bottom: var(--sp-5);
  color: var(--text-primary);
}

.footer-column ul li {
  margin-bottom: var(--sp-3);
}

.footer-column ul li a {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  transition: color var(--transition-fast);
}

.footer-column ul li a:hover {
  color: var(--accent-primary);
}

.footer-social {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

.footer-social a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-8);
  border-top: 1px solid var(--border-color);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: var(--sp-6);
}

.footer-bottom-links a {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

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

/* === ARTICLE PAGE STYLES === */

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: var(--sp-6) 0 var(--sp-4);
}

.breadcrumbs ol {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.breadcrumbs li::after {
  content: '›';
  margin-left: var(--sp-2);
  color: var(--text-muted);
}

.breadcrumbs li:last-child::after {
  display: none;
}

.breadcrumbs a {
  color: var(--text-secondary);
}

.breadcrumbs a:hover {
  color: var(--accent-primary);
}

/* --- Article Layout --- */
.article-layout {
  display: grid;
  grid-template-columns: 1fr min(var(--content-width), 100%) 1fr;
  padding-bottom: var(--sp-16);
}

.article-layout > * {
  grid-column: 2;
}

.article-header {
  margin-bottom: var(--sp-8);
}

.article-category {
  display: inline-block;
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-primary);
  padding: var(--sp-1) var(--sp-4);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--sp-4);
}

.article-header h1 {
  font-family: var(--font-heading);
  font-size: var(--fs-4xl);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--sp-6);
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-5);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--border-color);
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--fs-sm);
  color: white;
}

/* --- Featured Image --- */
.article-featured-image {
  margin: var(--sp-8) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.article-featured-image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.article-featured-image figcaption {
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-align: center;
  background: var(--bg-card);
}

/* --- Table of Contents --- */
.toc {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  margin: var(--sp-8) 0;
}

.toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
  cursor: pointer;
}

.toc h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.toc ol {
  padding-left: var(--sp-5);
}

.toc ol li {
  margin-bottom: var(--sp-2);
  list-style: decimal;
  color: var(--text-muted);
}

.toc ol li::marker {
  color: var(--accent-primary);
}

.toc a {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
}

.toc a:hover {
  color: var(--accent-primary);
}

/* --- Article Content --- */
.article-content {
  font-size: var(--fs-md);
  line-height: 1.85;
}

.article-content h2 {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: 700;
  margin: var(--sp-10) 0 var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border-color);
}

.article-content h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 600;
  margin: var(--sp-8) 0 var(--sp-3);
}

.article-content p {
  margin-bottom: var(--sp-5);
  color: var(--text-secondary);
}

.article-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.article-content ul,
.article-content ol {
  margin: var(--sp-4) 0 var(--sp-6);
  padding-left: var(--sp-6);
}

.article-content ul li,
.article-content ol li {
  margin-bottom: var(--sp-3);
  color: var(--text-secondary);
  line-height: 1.7;
}

.article-content ul li {
  list-style: disc;
}

.article-content ol li {
  list-style: decimal;
}

.article-content ul li::marker {
  color: var(--accent-primary);
}

.article-content ol li::marker {
  color: var(--accent-primary);
  font-weight: 600;
}

.article-content a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content blockquote {
  border-left: 4px solid var(--accent-primary);
  background: rgba(139, 92, 246, 0.05);
  padding: var(--sp-5) var(--sp-6);
  margin: var(--sp-6) 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
}

.article-content blockquote p {
  color: var(--text-primary);
  margin-bottom: 0;
}

/* Content Images */
.content-image {
  margin: var(--sp-8) 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.content-image img {
  width: 100%;
}

.content-image figcaption {
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-align: center;
  background: var(--bg-card);
}

/* Pro Tip & Info Boxes */
.tip-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-md);
  padding: var(--sp-5) var(--sp-6);
  margin: var(--sp-6) 0;
}

.tip-box .tip-label {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 700;
  color: var(--accent-green);
  margin-bottom: var(--sp-2);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tip-box p {
  color: var(--text-secondary);
  margin-bottom: 0;
  font-size: var(--fs-sm);
}

.warning-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-md);
  padding: var(--sp-5) var(--sp-6);
  margin: var(--sp-6) 0;
}

.warning-box .warning-label {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 700;
  color: var(--accent-warm);
  margin-bottom: var(--sp-2);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Comparison Table */
.comparison-table {
  width: 100%;
  margin: var(--sp-6) 0;
  border-collapse: collapse;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.comparison-table th,
.comparison-table td {
  padding: var(--sp-4) var(--sp-5);
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: var(--fs-sm);
}

.comparison-table th {
  background: var(--bg-card);
  font-weight: 600;
  color: var(--text-primary);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.comparison-table td {
  background: var(--bg-secondary);
  color: var(--text-secondary);
}

.comparison-table tr:hover td {
  background: var(--bg-card);
}

/* Product Cards */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  margin: var(--sp-6) 0;
  transition: border-color var(--transition-base);
}

.product-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
}

.product-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
}

.product-card h4 {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 600;
}

.product-badge {
  background: var(--accent-gradient);
  color: white;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  color: var(--accent-warm);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-3);
}

.product-card p {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  margin-top: var(--sp-4);
}

.pros h5,
.cons h5 {
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: var(--sp-2);
}

.pros h5 {
  color: var(--accent-green);
}

.cons h5 {
  color: var(--accent-red);
}

.pros li,
.cons li {
  font-size: var(--fs-xs);
  margin-bottom: var(--sp-2);
  padding-left: var(--sp-4);
  position: relative;
  list-style: none !important;
}

.pros li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-green);
  font-weight: 700;
}

.cons li::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: var(--accent-red);
  font-weight: 700;
}

/* Video Embed */
.video-embed {
  margin: var(--sp-8) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.video-embed .video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-embed .video-caption {
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-align: center;
  background: var(--bg-card);
}

/* --- Author Bio Box --- */
.author-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  margin: var(--sp-10) 0;
  display: flex;
  gap: var(--sp-6);
  align-items: flex-start;
}

.author-box-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.author-box-info h4 {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: var(--sp-1);
}

.author-box-info .author-title {
  color: var(--accent-primary);
  font-size: var(--fs-sm);
  font-weight: 500;
  margin-bottom: var(--sp-3);
}

.author-box-info p {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

/* --- Social Share Buttons --- */
.share-section {
  margin: var(--sp-8) 0;
  padding: var(--sp-6) 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.share-section h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: 600;
  margin-bottom: var(--sp-4);
  text-align: center;
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: white;
  text-decoration: none;
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: white;
}

.share-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.share-btn.facebook { background: #1877f2; }
.share-btn.facebook:hover { background: #0d6ce8; }
.share-btn.twitter { background: #000000; }
.share-btn.twitter:hover { background: #1a1a1a; }
.share-btn.pinterest { background: #e60023; }
.share-btn.pinterest:hover { background: #cc001f; }
.share-btn.linkedin { background: #0a66c2; }
.share-btn.linkedin:hover { background: #084e96; }
.share-btn.reddit { background: #ff4500; }
.share-btn.reddit:hover { background: #e63e00; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.whatsapp:hover { background: #1fb855; }

/* --- Comments Section --- */
.comments-section {
  margin: var(--sp-10) 0;
}

.comments-section h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-bottom: var(--sp-6);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.comment-count {
  font-size: var(--fs-sm);
  font-weight: 500;
  background: var(--accent-primary);
  color: white;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-full);
}

.comment {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-6);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: var(--sp-4);
}

.comment-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent-primary);
  flex-shrink: 0;
  border: 2px solid var(--border-light);
}

.comment-body {
  flex: 1;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-2);
}

.comment-author {
  font-weight: 600;
  font-size: var(--fs-sm);
}

.comment-date {
  color: var(--text-muted);
  font-size: var(--fs-xs);
}

.comment-text {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

.comment-actions {
  display: flex;
  gap: var(--sp-4);
  margin-top: var(--sp-3);
}

.comment-actions button {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: var(--fs-xs);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  transition: color var(--transition-fast);
  font-family: var(--font-primary);
}

.comment-actions button:hover {
  color: var(--accent-primary);
}

/* Comment Form */
.comment-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  margin-top: var(--sp-6);
}

.comment-form h4 {
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  margin-bottom: var(--sp-4);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: var(--sp-4);
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--fs-sm);
  font-family: var(--font-primary);
  outline: none;
  transition: border-color var(--transition-fast);
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--accent-primary);
}

.comment-form textarea {
  min-height: 120px;
  resize: vertical;
  margin-bottom: var(--sp-4);
}

/* --- Related Articles --- */
.related-articles {
  margin: var(--sp-12) 0;
}

.related-articles h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-bottom: var(--sp-6);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--sp-6);
}

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

.related-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-2px);
}

.related-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.related-card-body {
  padding: var(--sp-4);
}

.related-card h4 {
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.4;
}

.related-card h4 a {
  color: var(--text-primary);
}

.related-card h4 a:hover {
  color: var(--accent-primary);
}

/* === LEGAL PAGES === */
.legal-page {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--sp-12) var(--sp-6) var(--sp-16);
}

.legal-page h1 {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: 700;
  margin-bottom: var(--sp-3);
}

.legal-page .last-updated {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-10);
}

.legal-page h2 {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 600;
  margin: var(--sp-8) 0 var(--sp-4);
}

.legal-page p {
  color: var(--text-secondary);
  margin-bottom: var(--sp-4);
  line-height: 1.8;
}

.legal-page ul {
  margin: var(--sp-3) 0 var(--sp-5);
  padding-left: var(--sp-6);
}

.legal-page ul li {
  list-style: disc;
  margin-bottom: var(--sp-2);
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal-page ul li::marker {
  color: var(--accent-primary);
}

/* === CONTACT PAGE === */
.contact-page {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--sp-12) var(--sp-6) var(--sp-16);
}

.contact-page h1 {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: 700;
  margin-bottom: var(--sp-3);
}

.contact-page > p {
  color: var(--text-secondary);
  margin-bottom: var(--sp-8);
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
}

.contact-form .form-group {
  margin-bottom: var(--sp-5);
}

.contact-form label {
  display: block;
  font-weight: 500;
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-2);
  color: var(--text-primary);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: var(--sp-4);
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--fs-base);
  font-family: var(--font-primary);
  outline: none;
  transition: border-color var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--accent-primary);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-8);
  }

  .featured-article {
    grid-template-columns: 1fr;
  }

  .featured-article .article-card-image {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    min-height: 250px;
  }
}

@media (max-width: 768px) {
  :root {
    --fs-5xl: 2.5rem;
    --fs-4xl: 2rem;
    --fs-3xl: 1.75rem;
    --fs-2xl: 1.5rem;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: var(--sp-6);
    gap: var(--sp-5);
  }

  .nav-menu.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--sp-6);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--sp-4);
    text-align: center;
  }

  .footer-bottom-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .share-buttons {
    gap: var(--sp-2);
  }

  .share-btn {
    padding: var(--sp-2) var(--sp-3);
    font-size: var(--fs-xs);
  }

  .pros-cons {
    grid-template-columns: 1fr;
  }

  .article-header h1 {
    font-size: var(--fs-2xl);
  }

  .comparison-table {
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--sp-4);
  }

  .hero {
    padding: var(--sp-12) 0 var(--sp-8);
  }

  .hero h1 {
    font-size: var(--fs-2xl);
  }

  .share-btn span.btn-label {
    display: none;
  }

  .share-btn {
    padding: var(--sp-3);
  }
}

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Scroll animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: var(--sp-8);
  right: var(--sp-8);
  width: 44px;
  height: 44px;
  background: var(--accent-primary);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}
