/* Prime Time site-wide dark theme (2.10). Loaded on every front-end page except the plugin's own homepage.
   Scoped to body.pttm-dark (class added by the plugin), so wp-admin and the login screen are never touched.
   Written against the live theme "Extendable" (block theme): it mostly re-points the theme's color variables. */
body.pttm-dark {
  --pttm-bg:#050a14; --pttm-surface:#0b1422; --pttm-edge:#2a3a52; --pttm-text:#d3dceb; --pttm-head:#f5f8ff; --pttm-link:#00A8FD; --pttm-glow:#0089FE;
  --wp--preset--color--background: var(--pttm-bg);
  --wp--preset--color--foreground: var(--pttm-text);
  --wp--preset--color--foreground-alt: var(--pttm-text);
  --wp--preset--color--primary: #00A8FD;
  --wp--preset--color--secondary: #0089FE;
  --wp--preset--color--tertiary: var(--pttm-surface);
  --wp--preset--color--white: #f5f8ff;
  --wp--custom--elements--button--color--background: #00A8FD;
  --wp--custom--elements--button--color--text: #02101f;
  --wp--custom--elements--button--hover--color--background: #f5f8ff;
  --wp--custom--elements--button--hover--color--text: #02101f;
  --wp--custom--elements--button--focus--color--background: #00A8FD;
  --wp--custom--elements--button--focus--color--text: #02101f;
  --wp--style--global--content-size: min(46rem, 100%);
  background: radial-gradient(120% 60% at 50% 0%, rgba(0,137,254,.14), rgba(5,10,20,0) 60%), var(--pttm-bg) !important;
  color: var(--pttm-text) !important;
  font-size: max(16px, 1rem);
}
body.pttm-dark .wp-site-blocks { background: transparent; }
body.pttm-dark :where(p, li, td, th, dd, dt, label, figcaption, blockquote, .wp-block-post-content) { color: var(--pttm-text); }
body.pttm-dark :where(h1, h2, h3, h4, h5, h6, .wp-block-heading, .wp-block-post-title, .wp-block-site-title, strong, b) { color: var(--pttm-head) !important; }
body.pttm-dark :where(h1, .wp-block-post-title) { text-shadow: 0 0 18px rgba(0,168,253,.35); }
body.pttm-dark a:where(:not(.wp-element-button):not(.wp-block-button__link)) { color: var(--pttm-link) !important; text-underline-offset: 3px; }
body.pttm-dark a:where(:not(.wp-element-button):not(.wp-block-button__link)):hover { color: #7fd3ff !important; }
body.pttm-dark .has-text-color:not(.wp-block-button__link) { color: var(--pttm-text) !important; }
body.pttm-dark .has-background:not(.wp-block-button__link):not(.wp-block-navigation__responsive-container) { background-color: var(--pttm-surface) !important; }
body.pttm-dark :where(.wp-element-button, .wp-block-button__link, button[type=submit], input[type=submit], .wp-block-search__button) {
  background: #00A8FD !important; color: #02101f !important; border: 0 !important; border-radius: 999px; font-weight: 800;
  box-shadow: 0 0 14px rgba(0,168,253,.55);
}
body.pttm-dark :where(.wp-element-button, .wp-block-button__link):hover { background: #f5f8ff !important; }
body.pttm-dark .is-style-outline .wp-block-button__link { background: transparent !important; color: #f5f8ff !important; box-shadow: inset 0 0 0 2px #00A8FD, 0 0 12px rgba(0,168,253,.35); }
/* Header (Extendable sticky "glass" pill) and footer */
body.pttm-dark header.wp-block-template-part > .wp-block-group,
body.pttm-dark .ext-header-glass, body.pttm-dark .ext-header-sticky--floating-pill {
  background: rgba(8,12,21,.92) !important; border: 1px solid rgba(0,168,253,.45) !important; box-shadow: 0 0 22px rgba(0,137,254,.25) !important; backdrop-filter: blur(8px);
}
body.pttm-dark .wp-block-navigation, body.pttm-dark .wp-block-navigation a, body.pttm-dark .wp-block-navigation-item__content { color: #f5f8ff !important; }
body.pttm-dark .wp-block-navigation__responsive-container.is-menu-open { background: #050a14 !important; color: #f5f8ff !important; }
body.pttm-dark .wp-block-navigation__responsive-container-open, body.pttm-dark .wp-block-navigation__responsive-container-close { color: #f5f8ff !important; }
body.pttm-dark footer.wp-block-template-part { background: #070d18; border-top: 1px solid var(--pttm-edge); color: var(--pttm-text); }
body.pttm-dark footer.wp-block-template-part * { color: var(--pttm-text); }
body.pttm-dark .wp-block-social-links .wp-social-link { background: #0f1826 !important; color: #f5f8ff !important; box-shadow: 0 0 10px rgba(0,168,253,.35); }
/* Content width + readability */
body.pttm-dark .entry-content, body.pttm-dark .wp-block-post-content { line-height: 1.65; }
body.pttm-dark .wp-block-post-content > * { max-width: min(46rem, 100%); }
body.pttm-dark :where(input:not([type=submit]):not([type=checkbox]):not([type=radio]), textarea, select) { background: #0f1826; color: #f5f8ff; border: 1px solid var(--pttm-edge); border-radius: 10px; }
body.pttm-dark :where(table) { border-color: var(--pttm-edge); }
body.pttm-dark :where(hr, .wp-block-separator) { border-color: var(--pttm-edge); color: var(--pttm-edge); background: var(--pttm-edge); }
body.pttm-dark :where(code, pre) { background: #0f1826; color: #f5f8ff; }
body.pttm-dark ::selection { background: #00A8FD; color: #02101f; }
/* Logo sits on dark now: give a dark-friendly plate if the logo is a dark PNG */
body.pttm-dark .wp-block-site-logo img { filter: drop-shadow(0 0 6px rgba(0,168,253,.35)); }
/* Cookie banner (CookieAdmin plugin) */
body.pttm-dark .cookieadmin_law_container, body.pttm-dark .cookieadmin_cookie_modal { background: #0b1422 !important; color: #d3dceb !important; border: 1px solid rgba(0,168,253,.45) !important; }
body.pttm-dark .cookieadmin_law_container *, body.pttm-dark .cookieadmin_cookie_modal * { color: #d3dceb; }
/* ---------- Blog ("Tips & Tricks"): index, single posts, categories, archives ---------- */
body.pttm-dark .wp-block-post-template { gap: 20px; }
body.pttm-dark .wp-block-post-template > li.wp-block-post {
  background: var(--pttm-surface); border: 1px solid var(--pttm-edge); border-radius: 18px; overflow: hidden; padding: 0 0 16px;
  transition: box-shadow .2s, border-color .2s, transform .15s;
}
body.pttm-dark .wp-block-post-template > li.wp-block-post:hover { border-color: #3d5a80; box-shadow: 0 0 20px rgba(0,137,254,.3); transform: translateY(-2px); }
body.pttm-dark .wp-block-post-template > li.wp-block-post > *:not(.wp-block-post-featured-image) { padding-left: 16px; padding-right: 16px; }
body.pttm-dark .wp-block-post-featured-image { margin-bottom: 12px; }
body.pttm-dark .wp-block-post-featured-image img { border-radius: 14px; display: block; width: 100%; height: auto; object-fit: cover; }
body.pttm-dark .wp-block-post-template .wp-block-post-featured-image img { border-radius: 0; aspect-ratio: 16/9; }
body.pttm-dark .wp-block-post-title { line-height: 1.2; letter-spacing: -.02em; }
body.pttm-dark .wp-block-post-title a { color: #f5f8ff !important; text-decoration: none; }
body.pttm-dark .wp-block-post-title a:hover { color: #7fd3ff !important; }
body.pttm-dark :where(.wp-block-post-date, .wp-block-post-author, .wp-block-post-author__name, .wp-block-post-excerpt__excerpt) { color: var(--pttm-text) !important; font-size: max(15px, .95rem); }
body.pttm-dark .wp-block-post-terms a, body.pttm-dark .taxonomy-category a { display: inline-block; padding: 2px 10px; border-radius: 999px; border: 1px solid rgba(0,168,253,.55); color: #f5f8ff !important; text-decoration: none; font-size: 14px; }
body.pttm-dark .wp-block-post-excerpt__more-link, body.pttm-dark .wp-block-read-more { color: #00A8FD !important; font-weight: 700; }
body.pttm-dark.single-post .wp-block-post-content { font-size: max(17px, 1.06rem); line-height: 1.75; }
body.pttm-dark.single-post .wp-block-post-content :where(h2, h3) { margin-top: 1.8em; }
body.pttm-dark.single-post .wp-block-post-content :where(img) { border-radius: 14px; }
body.pttm-dark .wp-block-quote, body.pttm-dark blockquote { border-left: 3px solid #00A8FD; padding-left: 16px; color: #f5f8ff; }
body.pttm-dark :where(.wp-block-query-pagination a, .page-numbers) { display: inline-block; min-width: 40px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--pttm-edge); color: #f5f8ff !important; text-align: center; text-decoration: none; }
body.pttm-dark :where(.wp-block-query-pagination .current, .page-numbers.current) { background: #00A8FD; color: #02101f !important; border-color: #00A8FD; }
body.pttm-dark :where(.wp-block-query-title, .wp-block-term-description) { color: #f5f8ff; }
body.pttm-dark .wp-block-post-comments-form :where(input, textarea) { background: #0f1826 !important; color: #f5f8ff !important; border: 1px solid var(--pttm-edge) !important; }
body.pttm-dark .wp-block-post-comments-form label { color: var(--pttm-text) !important; }
@media (prefers-reduced-motion: reduce) { body.pttm-dark .wp-block-post-template > li.wp-block-post { transition: none; } body.pttm-dark .wp-block-post-template > li.wp-block-post:hover { transform: none; } }
