/**
 * Break The News – Dark Mode CSS Overrides
 *
 * Applied when body has class .dark-mode or [data-theme="dark"]
 *
 * @package Break_The_News
 * @version 1.0.0
 */

/* Dark mode overrides for components not covered by CSS custom properties */

[data-theme="dark"] .btn-ad-placeholder {
  background: #252840;
  border-color: #323555;
}

[data-theme="dark"] .btn-hero-slider {
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

[data-theme="dark"] .btn-cat-archive-banner {
  border: 1px solid rgba(255,255,255,0.05);
}

[data-theme="dark"] .btn-poll-option {
  border-color: #323555;
}
[data-theme="dark"] .btn-poll-option:hover {
  background: rgba(192,57,43,0.1);
}

[data-theme="dark"] .btn-scroller-bar.btn-stock-bar {
  background: #1A1D27;
  border-color: #252840;
}

[data-theme="dark"] .btn-search-overlay {
  background: rgba(0,0,0,0.92);
}

[data-theme="dark"] .btn-search-input-wrap {
  background: #1A1D27;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

[data-theme="dark"] .btn-article-body {
  color: #CBD5E0;
}

[data-theme="dark"] .btn-dropdown {
  background: #1A1D27;
  border-top-color: var(--btn-red);
}
[data-theme="dark"] .btn-dropdown .menu-item > a {
  color: #E2E8F0;
  border-bottom-color: #252840;
}
[data-theme="dark"] .btn-dropdown .menu-item > a:hover {
  background: #252840;
  color: var(--btn-red-light);
}

[data-theme="dark"] .btn-slider-arrow {
  background: rgba(255,255,255,0.08);
}

[data-theme="dark"] .btn-share-box {
  background: #1A1D27;
}
[data-theme="dark"] .btn-share-copy,
[data-theme="dark"] .btn-share-print {
  background: #252840;
  color: #A8B2C1;
}

[data-theme="dark"] .btn-author-box {
  background: #1A1D27;
}

[data-theme="dark"] .btn-sidebar-newsletter {
  background: #1A1D27;
}

[data-theme="dark"] .btn-comment {
  background: #1A1D27;
}
[data-theme="dark"] .children .btn-comment {
  background: #252840;
}

[data-theme="dark"] .btn-ai-summary {
  border-color: rgba(102,126,234,0.25);
  background: rgba(102,126,234,0.05);
}

[data-theme="dark"] .btn-pagination .page-numbers {
  background: #1A1D27;
  border-color: #252840;
  color: #E2E8F0;
}
[data-theme="dark"] .btn-pagination .page-numbers:hover:not(.current) {
  background: var(--btn-red);
  border-color: var(--btn-red);
  color: #fff;
}

[data-theme="dark"] .btn-hscroll-arrow {
  background: #1A1D27;
  border-color: #252840;
  color: #E2E8F0;
}

[data-theme="dark"] .btn-stock-up .btn-stock-change-badge {
  background: rgba(39,174,96,0.15);
  color: #27ae60;
}
[data-theme="dark"] .btn-stock-down .btn-stock-change-badge {
  background: rgba(231,76,60,0.15);
  color: #e74c3c;
}

[data-theme="dark"] .btn-fact-check-block {
  background: rgba(255,255,255,0.03);
}

[data-theme="dark"] .btn-source-box {
  background: #1A1D27;
}

[data-theme="dark"] .btn-weather-detail {
  background: #252840;
}

[data-theme="dark"] .btn-stock-row {
  background: #252840;
}

[data-theme="dark"] .btn-form-input,
[data-theme="dark"] .btn-form-textarea {
  background: #252840;
  border-color: #323555;
  color: #E2E8F0;
}
[data-theme="dark"] .btn-form-input::placeholder,
[data-theme="dark"] .btn-form-textarea::placeholder {
  color: #6B7590;
}

[data-theme="dark"] .btn-inline-form input[type="email"] {
  background: #1A1D27;
  border-color: #323555;
  color: #E2E8F0;
}

[data-theme="dark"] .btn-search-input {
  color: #F0F4F8;
}
[data-theme="dark"] .btn-search-input::placeholder {
  color: #6B7590;
}

/* Smooth transition for dark mode toggle */
body {
  transition: background-color 0.3s ease, color 0.3s ease;
}
*, *::before, *::after {
  transition-property: background-color, border-color, color;
  transition-duration: 0.2s;
  transition-timing-function: ease;
}
/* Reset transitions for animated elements */
.btn-ticker-track,
.btn-scroller-track,
.btn-reading-progress-bar,
.btn-slider-dot,
.btn-poll-bar-fill {
  transition: none !important;
}
