/* Brad's Daily Deals - site-wide look (every page): navy header, footer polish, light + dark mode.
   Theme: Hostinger AI block theme. Dark mode = html[data-theme="dark"], set in <head> before paint. */

:root {
  --bdd-navy: #0f172a;
  --bdd-navy-2: #1e293b;
  --bdd-orange: #f97316;
  --bdd-orange-dark: #ea580c;
}

/* ------------------------------------------------------------------ Header */
header.site-header { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 50; }
header.site-header .hostinger-ai-menu {
  background: var(--bdd-navy) !important;
  border-bottom: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 6px 20px rgba(2,6,23,.18);
}
header.site-header .hostinger-ai-menu-wrapper { padding-top: 10px !important; padding-bottom: 10px !important; align-items: center; grid-template-columns: auto 1fr !important; }
header.site-header .hostinger-ai-site-navigation-wrapper { flex-wrap: nowrap !important; justify-content: flex-end !important; gap: 6px; }
header.site-header .wp-block-navigation__container { flex-wrap: nowrap !important; }
header.site-header .wp-block-navigation-item__content { white-space: nowrap; }
/* Not enough room for the full menu below ~1080px: use the hamburger (the theme's default switch is 600px) */
@media (max-width: 1080px) {
  header.site-header .wp-block-navigation__responsive-container-open { display: flex !important; }
  header.site-header .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }
  header.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close { display: flex !important; }
}
.bdd-logo { margin: 0 !important; line-height: 0; }
.bdd-logo img { height: 48px !important; width: auto !important; max-width: 100%; display: block; }

header.site-header .wp-block-navigation { gap: 4px !important; }
header.site-header .wp-block-navigation-item__content {
  color: #e2e8f0 !important; font-weight: 600; font-size: 15px;
  padding: 7px 11px !important; border-radius: 9px; transition: background .15s, color .15s;
  text-decoration: none !important;
}
header.site-header .wp-block-navigation-item__content:hover { background: rgba(255,255,255,.08); color: #fff !important; }
header.site-header .bdd-nav-telegram .wp-block-navigation-item__content {
  border: 1px solid rgba(34,158,217,.6); color: #7dd3fc !important;
}
header.site-header .bdd-nav-telegram .wp-block-navigation-item__content:hover { background: #229ED9; color: #fff !important; }
header.site-header .bdd-nav-cta .wp-block-navigation-item__content {
  background: var(--bdd-orange); color: #fff !important; font-weight: 800;
}
header.site-header .bdd-nav-cta .wp-block-navigation-item__content:hover { background: var(--bdd-orange-dark); }

/* Mobile menu (hamburger + overlay) */
header.site-header .wp-block-navigation__responsive-container-open,
header.site-header .wp-block-navigation__responsive-container-close { color: #fff !important; }
header.site-header .wp-block-navigation__responsive-container.is-menu-open {
  background: var(--bdd-navy) !important; color: #fff !important; padding-top: 72px;
}
header.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  font-size: 20px; padding: 10px 14px !important;
}

@media (max-width: 600px) {
  .bdd-logo img { height: 40px !important; }
  header.site-header .hostinger-ai-menu-wrapper { padding-top: 8px !important; padding-bottom: 8px !important; }
}

/* Light/dark toggle (added by site.js) */
.bdd-theme-toggle {
  display: inline-grid; place-items: center; width: 38px; height: 38px; margin-left: 6px; flex: none;
  border-radius: 10px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06);
  color: #fde68a; cursor: pointer; padding: 0; transition: background .15s;
}
.bdd-theme-toggle:hover { background: rgba(255,255,255,.14); }
.bdd-theme-toggle svg { width: 18px; height: 18px; }
.bdd-theme-toggle .i-sun { display: none; }
html[data-theme="dark"] .bdd-theme-toggle .i-sun { display: block; }
html[data-theme="dark"] .bdd-theme-toggle .i-moon { display: none; }

/* Header sits right on top of the dark hero: no white gap */
body.bdd-home-page main, body.bdd-home-page .wp-site-blocks > main { margin-top: 0 !important; }
body.bdd-home-page .wp-site-blocks > * + * { margin-block-start: 0; }

/* ------------------------------------------------------------------ Footer */
footer.wp-block-template-part > .wp-block-group, footer .has-color-2-background-color { background: #0b1120 !important; }
footer h3.wp-block-heading { font-size: 18px !important; letter-spacing: .01em; color: #fff; }
footer .wp-block-navigation-item__content { color: #cbd5e1 !important; }
footer .wp-block-navigation-item__content:hover { color: #fdba74 !important; }
footer a { text-underline-offset: 3px; }
footer a:hover { color: #fdba74 !important; }
footer .wp-block-social-links .wp-social-link { transition: transform .15s; }
footer .wp-block-social-links .wp-social-link:hover { transform: translateY(-2px); }
footer input[type=email] { border-radius: 10px !important; border: 1px solid #334155 !important; background: #111827 !important; color: #fff !important; }
footer.site-footer form.hostinger-reach-block-subscription-form button.hostinger-reach-block-submit {
  background: var(--bdd-orange) !important; background-color: var(--bdd-orange) !important;
  border: 0 !important; color: #fff !important; font-weight: 800 !important; border-radius: 10px !important;
}
footer.site-footer form.hostinger-reach-block-subscription-form button.hostinger-reach-block-submit:hover {
  background: var(--bdd-orange-dark) !important; background-color: var(--bdd-orange-dark) !important;
}
footer.site-footer { border-top: 1px solid rgba(255,255,255,.07); }
html[data-theme="dark"] footer.wp-block-template-part > .wp-block-group,
html[data-theme="dark"] footer .has-color-2-background-color { background: #070b16 !important; }
footer .impact-verify { opacity: .25; }
/* Footer menu: always a plain list (no second hamburger on phones) */
footer .wp-block-navigation__responsive-container-open,
footer .wp-block-navigation__responsive-container-close { display: none !important; }
footer .wp-block-navigation__responsive-container {
  display: block !important; position: static !important; background: transparent !important; padding: 0 !important;
}
footer .wp-block-navigation__responsive-container .wp-block-navigation__container {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
}
footer .wp-block-navigation__responsive-container .wp-block-navigation-item__content { padding: 0 !important; font-size: 16px; }
footer .has-small-font-size { color: #94a3b8; }

/* ------------------------------------------------------------------ Card polish (both modes) */
.bddf-card { transition: box-shadow .15s, border-color .15s, transform .15s; }
.bddf-card:hover { box-shadow: 0 10px 26px rgba(15,23,42,.08); border-color: #cbd5e1; }
.bddf-tab { transition: background .15s, border-color .15s; }
.bddf-tab:hover { border-color: #cbd5e1; }
.bddf-cta, .bdd-btn, .bddf-post { box-shadow: 0 4px 12px rgba(249,115,22,.25); }

/* Single deal pages: the deal card already shows the picture; the theme's big cropped copy is hidden
   (it stays the featured image for link previews). */
body.single-deal .wp-block-post-featured-image { display: none; }

/* ================================================================== DARK MODE */
html[data-theme="dark"] .bddc-comments,
html[data-theme="dark"] .bddf-box--alerts { background: #111827; border-color: #243045; }
html[data-theme="dark"] .bddc-comments textarea,
html[data-theme="dark"] .bddc-alerts__add input { background: #0b1120; color: #f1f5f9; border-color: #334155; }
html[data-theme="dark"] .bdd-btn--ghost { background: #334155; }
html[data-theme="dark"] {
  color-scheme: dark;
  --wp--preset--color--page-background: #0b1120;
  --wp--preset--color--page-text: #e5e7eb;
  --wp--preset--color--color-1: #111827;
  --wp--preset--color--dark: #e5e7eb;
}
html[data-theme="dark"] body { background: #0b1120 !important; color: #e5e7eb; }
html[data-theme="dark"] .wp-block-post-content a:not(.bdd-btn):not(.bddf-cta):not(.bddf-post):not(.bddf-telegram) { color: #fdba74; }
html[data-theme="dark"] h1, html[data-theme="dark"] h2, html[data-theme="dark"] h3, html[data-theme="dark"] h4 { color: #f1f5f9; }

/* Deal engine + feed variables */
html[data-theme="dark"] .bdd {
  --bdd-ink: #f1f5f9;
  --bdd-ink-2: #cbd5e1;
  --bdd-muted: #94a3b8;
  --bdd-line: #243045;
  --bdd-bg: #0b1120;
  --bdd-card: #111827;
  --bdd-save: #4ade80;
  --bdd-accent-dark: #fb923c;
}
html[data-theme="dark"] .bdd-section--white { background: #0b1120; }

/* Surfaces that were hard-coded white */
html[data-theme="dark"] .bddf-card,
html[data-theme="dark"] .bddf-box,
html[data-theme="dark"] .bddf-launch,
html[data-theme="dark"] .bddf-form-card,
html[data-theme="dark"] .bdd-single,
html[data-theme="dark"] .bdd-empty,
html[data-theme="dark"] .bddf-box--signup .bddf-signup { background: #111827; }
html[data-theme="dark"] .bddf-signup { background: #0f172a; }
html[data-theme="dark"] .bddf-card:hover { border-color: #334155; box-shadow: 0 10px 26px rgba(0,0,0,.35); }
html[data-theme="dark"] .bddf-tab,
html[data-theme="dark"] .bdd-chip,
html[data-theme="dark"] .bdd-sort,
html[data-theme="dark"] .bddf-vote { background: #111827; color: #cbd5e1; }
html[data-theme="dark"] .bddf-tab:hover, html[data-theme="dark"] .bdd-chip:hover { border-color: #475569; }
html[data-theme="dark"] .bddf-tab.is-active,
html[data-theme="dark"] .bdd-chip.is-active { background: #f1f5f9; border-color: #f1f5f9; color: #0f172a; }
html[data-theme="dark"] .bddf-vote.is-voted { background: rgba(249,115,22,.15); }

/* Product images: keep a light tile so store photos (white backgrounds) look right */
html[data-theme="dark"] .bddf-img { background: #1e293b; }
html[data-theme="dark"] .bddf-img img, html[data-theme="dark"] .bdd-card__img { background: #f8fafc; }
html[data-theme="dark"] .bddf-ph, html[data-theme="dark"] .bdd-card__ph { filter: saturate(.9); }

/* Badges, flags, chips */
html[data-theme="dark"] .bddf-save, html[data-theme="dark"] .bdd-price__save { background: rgba(34,197,94,.14); }
html[data-theme="dark"] .bddf-flag, html[data-theme="dark"] .bdd-hot { background: rgba(249,115,22,.14); border-color: rgba(249,115,22,.4); color: #fdba74; }
html[data-theme="dark"] .bddf-flag--error { background: rgba(239,68,68,.14); border-color: rgba(239,68,68,.4); color: #fca5a5; }
html[data-theme="dark"] .bddf-flag--penny { background: rgba(234,179,8,.14); border-color: rgba(234,179,8,.4); color: #fde047; }
html[data-theme="dark"] .bddf-coupon, html[data-theme="dark"] .bdd-coupon { background: rgba(139,92,246,.15); border-color: #7c3aed; color: #c4b5fd; }
html[data-theme="dark"] .bddf-chan--online { color: #60a5fa; }
html[data-theme="dark"] .bddf-chan--instore { color: #fbbf24; }
html[data-theme="dark"] .bddf-note { color: #64748b; }
html[data-theme="dark"] .bddf-note--warn { color: #fbbf24; }
html[data-theme="dark"] .bddf-icon:hover { color: #f1f5f9; }
html[data-theme="dark"] .bddf-box--cta { background: linear-gradient(135deg, rgba(249,115,22,.18), rgba(249,115,22,.06)); border-color: rgba(249,115,22,.35); }
html[data-theme="dark"] .bdd-store--ebay { background: #f8fafc; }

/* Search box in the hero */
html[data-theme="dark"] .bdd-search { background: #111827; box-shadow: 0 10px 30px rgba(0,0,0,.45); border: 1px solid #243045; }
html[data-theme="dark"] .bdd-search input { color: #f1f5f9; }
html[data-theme="dark"] .bdd-search input::placeholder { color: #64748b; }

/* Forms */
html[data-theme="dark"] .bddf-field input,
html[data-theme="dark"] .bddf-field select,
html[data-theme="dark"] .bddf-field textarea,
html[data-theme="dark"] .bddf-signup input[type=email] { background: #0b1120; color: #f1f5f9; border-color: #334155; }
html[data-theme="dark"] .bddf-seg label:has(input:checked) { background: rgba(249,115,22,.12); }
html[data-theme="dark"] .bddf-msg--ok { background: rgba(34,197,94,.12); color: #86efac; border-color: rgba(34,197,94,.35); }
html[data-theme="dark"] .bddf-msg--err { background: rgba(239,68,68,.12); color: #fca5a5; border-color: rgba(239,68,68,.35); }

/* Theme pages (About, policies, etc.) */
html[data-theme="dark"] .has-light-background-color:not(footer *),
html[data-theme="dark"] .has-white-background-color { background-color: #111827 !important; }
html[data-theme="dark"] .has-black-color:not(footer *),
html[data-theme="dark"] .has-dark-color:not(footer *) { color: #e5e7eb !important; }
html[data-theme="dark"] .has-color-1-background-color:not(.hostinger-ai-menu) { background-color: #111827 !important; }
html[data-theme="dark"] .wp-block-separator { border-color: #243045; }
/* Page text the editor colored dark grey by hand (e.g. color:#444) */
html[data-theme="dark"] .wp-block-post-content [style*="color:#0"],
html[data-theme="dark"] .wp-block-post-content [style*="color:#1"],
html[data-theme="dark"] .wp-block-post-content [style*="color:#2"],
html[data-theme="dark"] .wp-block-post-content [style*="color:#3"],
html[data-theme="dark"] .wp-block-post-content [style*="color:#4"],
html[data-theme="dark"] .wp-block-post-content [style*="color:#5"],
html[data-theme="dark"] .wp-block-post-content [style*="color:#6"] { color: #cbd5e1 !important; }
html[data-theme="dark"] input, html[data-theme="dark"] textarea, html[data-theme="dark"] select { color-scheme: dark; }
