/* ============================================================
   BLOG — LIGHT MODE
   Matches main site light mode aesthetic
   Activated via data-theme="light" on body
   ============================================================ */

body[data-theme="light"] {
  --color-bg: #f4f4f7;
  --color-bg-alt: #ecedf2;
  --color-text: #1e1b4b;
  --color-text-muted: #6366a0;
  --color-border: #d8d9e4;
  --color-accent: #14b8a6;
}

body[data-theme="light"] {
  background: #f4f4f7;
  color: #1e1b4b;
}

/* Header */
body[data-theme="light"] .header {
  background: #f4f4f7;
  border-bottom-color: #d8d9e4;
}

body[data-theme="light"] .logo {
  background: linear-gradient(135deg, #8b5cf6 0%, #14b8a6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body[data-theme="light"] .nav a {
  color: #3a386b;
}

body[data-theme="light"] .nav a:hover,
body[data-theme="light"] .nav a.active {
  color: #7c3aed;
}

body[data-theme="light"] .lang-toggle {
  background: #1e1b4b;
  color: #f4f4f7;
  border-color: #1e1b4b;
}

body[data-theme="light"] .lang-toggle:hover {
  background: #f4f4f7;
  color: #1e1b4b;
}

/* Blog Hero */
body[data-theme="light"] .blog-hero {
  background: #f4f4f7;
  border-bottom-color: #d8d9e4;
}

body[data-theme="light"] .blog-hero h1 {
  color: #1e1b4b;
}

body[data-theme="light"] .lead {
  color: #6366a0;
}

/* Blog List */
body[data-theme="light"] .blog-list {
  background: #f4f4f7;
}

/* Article Card - Dark text for light mode since content sits outside the colored hero */
body[data-theme="light"] .article-content {
  color: #1e1b4b;
  text-shadow: none;
}

body[data-theme="light"] .article-meta {
  color: #6366a0;
}

body[data-theme="light"] .article-excerpt {
  color: #4c4a7a;
}

body[data-theme="light"] .article-card h2 {
  color: #1e1b4b;
}

body[data-theme="light"] .read-more {
  color: #1e1b4b;
  background: rgba(30, 27, 75, 0.1);
}

body[data-theme="light"] .article-card:hover .read-more {
  background: rgba(30, 27, 75, 0.2);
}

body[data-theme="light"] .article-type-badge {
  color: #1e1b4b;
  background: rgba(30, 27, 75, 0.15);
}

/* Card hover - lighter effect in light mode */
body[data-theme="light"] .article-card:hover {
  transform: translateX(4px);
  box-shadow: 8px 8px 0 rgba(30, 27, 75, 0.15);
}

/* Article Page */
body[data-theme="light"] .article-back {
  background: #f4f4f7;
}

body[data-theme="light"] .back-link {
  color: #6366a0;
}

body[data-theme="light"] .back-link:hover {
  color: #7c3aed;
}

body[data-theme="light"] .article-page {
  background: #f4f4f7;
}

body[data-theme="light"] .blog-article h1 {
  color: #1e1b4b;
}

body[data-theme="light"] .blog-article .article-meta {
  color: #6366a0;
}

body[data-theme="light"] .blog-article .article-lead {
  color: #4c4a7a;
}

body[data-theme="light"] .blog-article .article-body {
  color: #3a386b;
}

body[data-theme="light"] .blog-article .article-body h2,
body[data-theme="light"] .blog-article .article-body h3 {
  color: #1e1b4b;
}

body[data-theme="light"] .blog-article .article-body strong {
  color: #1e1b4b;
}

body[data-theme="light"] .blog-article .article-footer {
  border-top-color: #d8d9e4;
  color: #6366a0;
}

/* Footer - stays dark */
body[data-theme="light"] .footer {
  background: #0f172a;
  border-top-color: #0f172a;
  color: rgba(255, 255, 255, 0.5);
}

/* Debug Panel */
body[data-theme="light"] .debug-panel .debug-toggle {
  background: #1e1b4b;
  border-color: #1e1b4b;
}

body[data-theme="light"] .debug-panel .debug-menu {
  background: #fafafc;
  border-color: #1e1b4b;
}

body[data-theme="light"] .debug-panel .debug-title {
  color: #6366a0;
  border-bottom-color: #d8d9e4;
}

body[data-theme="light"] .debug-panel .debug-btn {
  border-color: #d8d9e4;
  color: #1e1b4b;
}

body[data-theme="light"] .debug-panel .debug-btn:hover {
  border-color: #14b8a6;
  background: rgba(20, 184, 166, 0.1);
}

body[data-theme="light"] .debug-panel .debug-btn.active {
  border-color: #7c3aed;
  background: rgba(124, 58, 237, 0.15);
  color: #7c3aed;
}

body[data-theme="light"] .debug-panel .debug-info {
  color: #8486b5;
}

/* Smooth transition */
body[data-theme="light"],
body[data-theme="light"] * {
  transition: background-color 0.3s ease,
              color 0.3s ease,
              border-color 0.3s ease;
}
