/*
Theme Name: BIZ24 Blog
Theme URI: https://biz24.kz
Author: BIZ24.kz
Author URI: https://biz24.kz
Description: Премиум тема для блога BIZ24 — тёмная тема с жёлтым акцентом, вдохновлённая Linear/Vercel/Stripe. Оптимизирована для SEO и конверсий.
Version: 3.5
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: biz24-blog
Tags: blog, dark, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* === RESET & BASE === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #161616;
  --bg-card-hover: #1a1a1a;
  --bg-elevated: #1e1e1e;
  --accent: #ffcf32;
  --accent-dim: rgba(255, 207, 50, 0.15);
  --accent-glow: rgba(255, 207, 50, 0.08);
  --text-primary: #f5f5f5;
  --text-secondary: #c5c5c5;
  --text-tertiary: #888888;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  --max-width: 1200px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: #ffe066; }

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

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

/* === HEADER / NAV === */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(10,10,10,0.7);
  border-bottom: 1px solid var(--border);
}

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

.site-branding { display: flex; align-items: center; gap: 12px; }

.site-logo {
  width: 36px; height: 36px; background: var(--accent); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; color: #0a0a0a; letter-spacing: -0.5px;
}

.site-title {
  font-size: 18px; font-weight: 700; letter-spacing: -0.3px; color: var(--text-primary);
}
.site-title a { color: inherit; }
.site-title span { color: var(--text-tertiary); font-weight: 400; margin-left: 4px; }

/* Main Navigation */
.main-navigation {
  flex: 1; display: flex; justify-content: center; min-width: 0; overflow: hidden;
}
.main-navigation ul,
.main-navigation .nav-menu {
  display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0;
}

.main-navigation a {
  padding: 6px 10px; border-radius: var(--radius-full);
  font-size: 12px; font-weight: 500; color: var(--text-secondary); transition: all 0.2s;
  white-space: nowrap; letter-spacing: 0.01em;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
  color: var(--text-primary); background: rgba(255,255,255,0.05);
}

/* Header Actions (theme toggle + CTA) */
.header-actions {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: 8px;
}

.nav-cta {
  padding: 7px 16px; border-radius: var(--radius-full);
  font-size: 12px; font-weight: 600; color: #0a0a0a; background: var(--accent);
}
.nav-cta:hover { background: #ffe066; color: #0a0a0a; transform: translateY(-1px); }

/* === HERO === */
.hero-section {
  padding: 160px 2rem 80px; text-align: center; max-width: 900px; margin: 0 auto;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px 6px 8px; border-radius: var(--radius-full);
  background: var(--accent-dim); border: 1px solid rgba(255,207,50,0.2);
  font-size: 13px; font-weight: 500; color: var(--accent); margin-bottom: 32px;
}

.hero-badge-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-section h1 {
  font-size: clamp(40px, 6vw, 64px); font-weight: 800; letter-spacing: -2px; line-height: 1.1; margin-bottom: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hero-section p {
  font-size: 18px; color: var(--text-secondary); max-width: 560px;
  margin: 0 auto 40px; line-height: 1.7;
}

/* Search */
.search-container { max-width: 520px; margin: 0 auto 32px; }

.search-form {
  display: flex; align-items: center; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 4px;
  transition: border-color 0.3s;
}
.search-form:focus-within { border-color: rgba(255,207,50,0.3); }

.search-form input[type="search"],
.search-form .search-field {
  flex: 1; background: none; border: none; outline: none; padding: 14px 16px;
  font-size: 15px; color: var(--text-primary); font-family: inherit;
}
.search-form input::placeholder { color: var(--text-tertiary); }

.search-form .search-submit {
  background: none; border: none; color: var(--text-tertiary); padding: 8px 12px; cursor: pointer;
}

/* Category chips */
.category-chips {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 80px;
}

.chip {
  padding: 8px 18px; border-radius: var(--radius-full); font-size: 13px; font-weight: 500;
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text-secondary);
  cursor: pointer; transition: all 0.2s;
}
.chip:hover { border-color: var(--border-hover); color: var(--text-primary); transform: translateY(-1px); }
.chip.active { background: var(--accent-dim); border-color: rgba(255,207,50,0.25); color: var(--accent); }

/* === ARTICLES GRID === */
.articles-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 80px;
}

.article-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex; flex-direction: column;
}
.article-card:hover {
  border-color: var(--border-hover); transform: translateY(-4px);
  box-shadow: 0 16px 48px -12px rgba(0,0,0,0.4);
}

.article-card .post-thumbnail {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
}

.article-card .post-thumbnail img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.article-card:hover .post-thumbnail img { transform: scale(1.03); }

.article-card .category-badge {
  position: absolute; top: 12px; left: 12px; padding: 4px 10px;
  border-radius: var(--radius-full); font-size: 11px; font-weight: 600;
  backdrop-filter: blur(8px); background: rgba(0,0,0,0.5);
  color: var(--text-primary); text-transform: uppercase; letter-spacing: 0.5px;
}

.article-card .entry-content-wrap {
  padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1;
}

.article-card .entry-meta {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
}

.article-card .entry-meta .cat-links a {
  font-size: 12px; font-weight: 600; color: var(--accent);
}

.article-card .entry-meta .posted-on {
  font-size: 12px; color: var(--text-tertiary);
}

.article-card .entry-title {
  font-size: 18px; font-weight: 650; letter-spacing: -0.3px; line-height: 1.35; margin-bottom: 10px;
}
.article-card .entry-title a { color: var(--text-primary); }
.article-card .entry-title a:hover { color: var(--accent); }

.article-card .entry-excerpt {
  font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 20px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

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

.article-card .author-info { display: flex; align-items: center; gap: 8px; }

.author-avatar {
  width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #ff9500);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 11px; color: #0a0a0a; overflow: hidden;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }

.author-name { font-size: 13px; font-weight: 500; }

.read-time { font-size: 12px; color: var(--text-tertiary); }

/* === FEATURED POST === */
.featured-post {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; margin-bottom: 80px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl);
  overflow: hidden; transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.featured-post:hover {
  border-color: var(--border-hover); transform: translateY(-4px);
  box-shadow: 0 20px 60px -15px rgba(0,0,0,0.5);
}

.featured-post .featured-image {
  position: relative; background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460); overflow: hidden;
}

.featured-post .featured-content {
  padding: 48px 44px; display: flex; flex-direction: column; justify-content: center;
}

.featured-tag {
  display: inline-block; padding: 4px 12px; border-radius: var(--radius-full);
  font-size: 12px; font-weight: 600; background: var(--accent); color: #0a0a0a;
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 20px; width: fit-content;
}

.featured-post .entry-title {
  font-size: 32px; font-weight: 700; letter-spacing: -1px; line-height: 1.2; margin-bottom: 16px;
}

.featured-post .entry-excerpt {
  font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 28px;
}

/* === SINGLE POST === */
.single-post-content { max-width: 720px; margin: 140px auto 80px; padding: 0 2rem; }

.single-post-content .entry-header { margin-bottom: 40px; }

.single-post-content .entry-title {
  font-size: clamp(32px, 5vw, 48px); font-weight: 800; letter-spacing: -1.5px; line-height: 1.15; margin-bottom: 20px;
}

.single-post-content .entry-meta {
  display: flex; align-items: center; gap: 16px; margin-bottom: 32px; flex-wrap: wrap;
}

.single-post-content .entry-content {
  font-size: 17px; line-height: 1.8; color: var(--text-secondary);
}

.single-post-content .entry-content h2 {
  font-size: 28px; font-weight: 700; letter-spacing: -0.5px; color: var(--text-primary);
  margin: 48px 0 20px;
}

.single-post-content .entry-content h3 {
  font-size: 22px; font-weight: 600; color: var(--text-primary); margin: 36px 0 16px;
}

.single-post-content .entry-content p { margin-bottom: 20px; }

.single-post-content .entry-content ul,
.single-post-content .entry-content ol {
  margin: 20px 0; padding-left: 24px;
}

.single-post-content .entry-content li { margin-bottom: 8px; }

.single-post-content .entry-content blockquote {
  border-left: 3px solid var(--accent); padding: 16px 24px; margin: 32px 0;
  background: var(--bg-card); border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic; color: var(--text-primary);
}

.single-post-content .entry-content code {
  background: var(--bg-elevated); padding: 2px 8px; border-radius: 4px;
  font-size: 0.9em; font-family: 'JetBrains Mono', monospace;
}

.single-post-content .entry-content pre {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 24px; overflow-x: auto; margin: 24px 0;
}

.single-post-content .entry-content img {
  border-radius: var(--radius-md); margin: 24px 0;
}

/* === CTA BANNER === */
.cta-banner {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 64px; text-align: center; margin-bottom: 80px; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(ellipse at center, rgba(255,207,50,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner h2 {
  font-size: 32px; font-weight: 700; letter-spacing: -1px; margin-bottom: 12px; position: relative;
}

.cta-banner p { font-size: 16px; color: var(--text-secondary); margin-bottom: 32px; position: relative; }

.cta-form { display: flex; gap: 12px; max-width: 440px; margin: 0 auto; position: relative; }

.cta-input {
  flex: 1; padding: 14px 20px; border-radius: var(--radius-md); border: 1px solid var(--border);
  background: var(--bg-primary); color: var(--text-primary); font-size: 15px; font-family: inherit; outline: none;
}
.cta-input:focus { border-color: rgba(255,207,50,0.3); }
.cta-input::placeholder { color: var(--text-tertiary); }

.cta-button {
  padding: 14px 28px; border-radius: var(--radius-md); border: none;
  background: var(--accent); color: #0a0a0a; font-size: 15px; font-weight: 600;
  font-family: inherit; cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.cta-button:hover { background: #ffe066; transform: translateY(-1px); }

/* === STATS === */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 80px; }

.stat-card {
  text-align: center; padding: 32px 20px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
}

.stat-number {
  font-size: 36px; font-weight: 800; letter-spacing: -1px;
  background: linear-gradient(135deg, var(--accent), #ff9500);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.stat-label { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }

/* === TOPICS GRID === */
.topics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 80px; }

.topic-card {
  padding: 24px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); transition: all 0.3s; position: relative; overflow: hidden;
}
.topic-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }

.topic-icon {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
  background: var(--accent-dim); color: var(--accent); font-size: 20px;
}

.topic-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.topic-count { font-size: 13px; color: var(--text-tertiary); }

/* === SECTION HEADERS === */
.section-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px;
}

.section-title { font-size: 24px; font-weight: 700; letter-spacing: -0.5px; }

.section-link {
  font-size: 14px; font-weight: 500; color: var(--accent);
  display: flex; align-items: center; gap: 6px; transition: gap 0.2s;
}
.section-link:hover { gap: 10px; }

/* === FOOTER === */
.site-footer {
  border-top: 1px solid var(--border); padding: 60px 0 40px;
}

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

.footer-brand p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-top: 16px; max-width: 300px; }

.footer-col-title {
  font-size: 13px; font-weight: 600; color: var(--text-tertiary);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14px; color: var(--text-secondary); }
.footer-links a:hover { color: var(--text-primary); }

.footer-bottom {
  padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--text-tertiary);
}

.social-links { display: flex; gap: 16px; }
.social-links a { color: var(--text-tertiary); }
.social-links a:hover { color: var(--accent); }

/* === SIDEBAR WIDGETS === */
.widget { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 24px; }
.widget-title { font-size: 16px; font-weight: 600; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.widget ul { list-style: none; }
.widget li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.widget li:last-child { border-bottom: none; }
.widget a { color: var(--text-secondary); font-size: 14px; }
.widget a:hover { color: var(--accent); }

/* === PAGINATION === */
.pagination {
  display: flex; justify-content: center; gap: 8px; margin: 48px 0;
}
.pagination a, .pagination span {
  padding: 10px 16px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; border: 1px solid var(--border); color: var(--text-secondary);
}
.pagination a:hover { border-color: var(--border-hover); color: var(--text-primary); }
.pagination .current { background: var(--accent); color: #0a0a0a; border-color: var(--accent); }

/* === COMMENTS === */
.comments-area { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--border); }
.comments-title { font-size: 24px; font-weight: 700; margin-bottom: 32px; }
.comment-list { list-style: none; }
.comment-body { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 16px; }
.comment-author { font-weight: 600; margin-bottom: 8px; }
.comment-content { font-size: 15px; color: var(--text-secondary); }
.comment-respond { margin-top: 40px; }
.comment-form textarea, .comment-form input[type="text"], .comment-form input[type="email"] {
  width: 100%; padding: 14px 20px; border-radius: var(--radius-md); border: 1px solid var(--border);
  background: var(--bg-card); color: var(--text-primary); font-size: 15px; font-family: inherit;
  outline: none; margin-bottom: 16px;
}
.comment-form textarea:focus, .comment-form input:focus { border-color: rgba(255,207,50,0.3); }
.comment-form .submit {
  padding: 14px 28px; border-radius: var(--radius-md); border: none; background: var(--accent);
  color: #0a0a0a; font-size: 15px; font-weight: 600; cursor: pointer;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .featured-post { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .topics-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .articles-grid { grid-template-columns: 1fr; }
  .topics-grid { grid-template-columns: 1fr; }
  .hero-section h1 { font-size: 36px; }
  .cta-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .main-navigation { display: none; }
  .header-actions .nav-cta { font-size: 12px; padding: 6px 14px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
}

/* === ANIMATIONS === */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Ambient glow */
.ambient-glow {
  position: fixed; width: 600px; height: 600px; border-radius: 50%;
  filter: blur(120px); opacity: 0.07; pointer-events: none; z-index: 0;
}
.glow-1 { top: -200px; left: -100px; background: var(--accent); }
.glow-2 { top: 300px; right: -200px; background: #8b5cf6; opacity: 0.04; }

/* === LIGHT THEME === */
[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f1f3;
  --bg-elevated: #f5f6f8;
  --accent: #d4a017;
  --accent-dim: rgba(212, 160, 23, 0.12);
  --accent-glow: rgba(212, 160, 23, 0.06);
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-tertiary: #888888;
  --border: rgba(0,0,0,0.08);
  --border-hover: rgba(0,0,0,0.15);
}

[data-theme="light"] .site-header {
  background: rgba(255,255,255,0.85);
  border-bottom-color: rgba(0,0,0,0.08);
}

[data-theme="light"] .site-logo {
  background: #1a1a1a;
  color: var(--accent);
}

[data-theme="light"] .site-title a,
[data-theme="light"] .site-title { color: #1a1a1a; }

[data-theme="light"] .nav-cta {
  border-color: #1a1a1a;
  color: #1a1a1a;
}
[data-theme="light"] .nav-cta:hover {
  background: #1a1a1a;
  color: #ffffff;
}

[data-theme="light"] .hero-section {
  background: linear-gradient(180deg, #f0f1f3 0%, #ffffff 100%);
}

[data-theme="light"] .hero-badge {
  background: rgba(212, 160, 23, 0.12);
  color: #9a7500;
  border-color: rgba(212, 160, 23, 0.25);
}

[data-theme="light"] .search-bar {
  background: #f0f1f3;
  border-color: rgba(0,0,0,0.1);
}
[data-theme="light"] .search-field { color: #1a1a1a; }
[data-theme="light"] .search-field::placeholder { color: #999; }

[data-theme="light"] .cat-chip {
  background: #f0f1f3;
  color: #4a4a4a;
  border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .cat-chip:hover,
[data-theme="light"] .cat-chip.active {
  background: #1a1a1a;
  color: #ffffff;
}

[data-theme="light"] .article-card {
  background: #ffffff;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
[data-theme="light"] .article-card:hover {
  border-color: rgba(0,0,0,0.15);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

[data-theme="light"] .article-card .entry-title { color: #1a1a1a; }
[data-theme="light"] .article-card .entry-title a { color: #1a1a1a; }

[data-theme="light"] .featured-post {
  background: #f8f9fa;
  border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .featured-post .entry-title { color: #1a1a1a; }
[data-theme="light"] .featured-post .entry-title a { color: #1a1a1a; }

[data-theme="light"] .featured-tag {
  background: #1a1a1a;
  color: var(--accent);
}

[data-theme="light"] .cta-banner {
  background: #1a1a1a;
}
[data-theme="light"] .cta-banner h2,
[data-theme="light"] .cta-banner p { color: #f5f5f5; }
[data-theme="light"] .cta-banner .cta-input {
  background: rgba(255,255,255,0.15);
  color: #f5f5f5;
  border-color: rgba(255,255,255,0.2);
}
[data-theme="light"] .cta-banner .cta-input::placeholder { color: rgba(255,255,255,0.6); }
[data-theme="light"] .cta-banner .cta-note { color: rgba(255,255,255,0.5); }

[data-theme="light"] .site-footer {
  background: #1a1a1a;
  border-top-color: rgba(255,255,255,0.06);
}
[data-theme="light"] .site-footer,
[data-theme="light"] .site-footer a,
[data-theme="light"] .footer-heading,
[data-theme="light"] .footer-bottom { color: #ccc; }

[data-theme="light"] .entry-content { color: #333333; }
[data-theme="light"] .entry-content h2,
[data-theme="light"] .entry-content h3 { color: #1a1a1a; }

[data-theme="light"] .ambient-glow { display: none; }

[data-theme="light"] .single-post-content .entry-header h1 { color: #1a1a1a; }

[data-theme="light"] .card-thumb {
  background: linear-gradient(135deg, #e8e9eb 0%, #d0d2d6 100%);
}

[data-theme="light"] .author-avatar {
  background: #e0e0e0;
  color: #666;
}

/* === THEME TOGGLE === */
.theme-toggle {
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: transparent;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
  margin-right: 12px;
  color: var(--text-secondary);
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* === LIGHT THEME FIXES === */
[data-theme="light"] .hero-section h1 {
  color: #1a1a1a;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: #1a1a1a;
  background-clip: unset;
}

[data-theme="light"] .hero-section p {
  color: #4a4a4a;
}

[data-theme="light"] .featured-post .entry-title,
[data-theme="light"] .featured-post .entry-title a,
[data-theme="light"] .article-card .entry-title,
[data-theme="light"] .article-card .entry-title a {
  color: #1a1a1a !important;
}

[data-theme="light"] .section-title {
  color: #1a1a1a;
}

[data-theme="light"] .entry-content p,
[data-theme="light"] .entry-content li {
  color: #333333;
}

[data-theme="light"] .breadcrumbs a {
  color: #666;
}

[data-theme="light"] .wp-admin-bar-top {
  background: #f8f9fa;
}

/* Light theme: card text readability */
[data-theme="light"] .article-card .entry-meta,
[data-theme="light"] .article-card .entry-meta a,
[data-theme="light"] .article-card .entry-meta .cat-links a {
  color: #666;
}
[data-theme="light"] .article-card .entry-excerpt {
  color: #4a4a4a;
}
[data-theme="light"] .article-card .entry-footer {
  color: #888;
  border-top-color: rgba(0,0,0,0.06);
}
[data-theme="light"] .article-card .entry-footer .author-name { color: #555; }
[data-theme="light"] .article-card .entry-meta .posted-on { color: #888; }

/* Light theme: featured card text */
[data-theme="light"] .featured-post .entry-meta,
[data-theme="light"] .featured-post .entry-meta a {
  color: #666;
}
[data-theme="light"] .featured-post .entry-excerpt {
  color: #4a4a4a;
}
[data-theme="light"] .featured-post .entry-footer {
  color: #888;
}
[data-theme="light"] .featured-post .author-name { color: #555; }

/* Light theme: footer logo fix - keep white text on dark footer */
[data-theme="light"] .site-footer .site-logo {
  background: var(--accent);
  color: #0a0a0a;
}
[data-theme="light"] .site-footer .site-title,
[data-theme="light"] .site-footer .site-title span {
  color: #ffffff;
}
[data-theme="light"] .site-footer .footer-brand p {
  color: #999;
}
[data-theme="light"] .site-footer .footer-col-title {
  color: #ffffff;
}
[data-theme="light"] .site-footer .footer-links a {
  color: #bbb;
}
[data-theme="light"] .site-footer .footer-links a:hover {
  color: var(--accent);
}

/* Light theme: nav menu link hover */
[data-theme="light"] .main-navigation a:hover,
[data-theme="light"] .main-navigation .current-menu-item a {
  color: #1a1a1a;
  background: rgba(0,0,0,0.05);
}

/* Light theme: category badges on card images — keep white text on dark overlay */
[data-theme="light"] .article-card .category-badge,
[data-theme="light"] .featured-post .category-badge {
  color: #ffffff !important;
}

/* Light theme: CTA banner — force bright text on dark background */
[data-theme="light"] .cta-banner h2 {
  color: #ffffff !important;
}
[data-theme="light"] .cta-banner p {
  color: #e0e0e0 !important;
}
[data-theme="light"] .cta-banner .cta-note {
  color: rgba(255,255,255,0.55);
}
[data-theme="light"] .cta-banner .cta-input {
  color: #ffffff;
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
}
[data-theme="light"] .cta-banner .cta-input::placeholder {
  color: rgba(255,255,255,0.5);
}
