/*
 * CoburnicusMind site look (Nov 2026 cleanup).
 * One visual system for every theme page, matching /adamai/ and /compute/.
 * Loads after custom.css. Overrides the old blue circuit theme without touching page content.
 */
:root {
  --cm-bg: #090c10;
  --cm-bg-2: #0e1318;
  --cm-card: rgba(255, 255, 255, .05);
  --cm-line: rgba(255, 255, 255, .11);
  --cm-text: #f1ede3;
  --cm-body: #d6dde0;
  --cm-muted: #9fb0b8;
  --cm-mint: #7ee0b0;
  --cm-mint-2: #a6f0cb;
  --cm-amber: #f0b45a;
}

/* Base */
html { background: var(--cm-bg) !important; }
body {
  background: var(--cm-bg) !important;
  background-image: radial-gradient(900px 520px at 15% -10%, rgba(126, 224, 176, .12), transparent 60%),
                    radial-gradient(800px 480px at 100% 20%, rgba(126, 224, 176, .05), transparent 60%) !important;
  background-attachment: fixed !important;
  color: var(--cm-body);
  font-family: Inter, system-ui, -apple-system, sans-serif !important;
  -webkit-font-smoothing: antialiased;
}
#bg-canvas, #three-bg, .three-bg, canvas.bg-canvas { display: none !important; }
h1, h2, h3, h4, h5, h6 { color: var(--cm-text); font-family: Inter, system-ui, sans-serif !important; letter-spacing: -.01em; }
a { color: var(--cm-mint); }
a:hover { color: var(--cm-mint-2); }
::selection { background: rgba(126, 224, 176, .3); }

/* Old blue accents become mint/amber */
.text-blue-300, .text-blue-400, .text-sky-400, .text-cyan-400 { color: var(--cm-mint) !important; }
.text-blue-400\/50 { color: rgba(126, 224, 176, .5) !important; }
.bg-blue-500, .bg-blue-600, .bg-blue-700 { background-color: var(--cm-mint) !important; color: #0b1712 !important; }
.bg-blue-500:hover, .bg-blue-600:hover, .bg-blue-700:hover,
.hover\:bg-blue-600:hover, .hover\:bg-blue-700:hover { background-color: var(--cm-mint-2) !important; color: #0b1712 !important; }
.bg-blue-500\/10, .bg-blue-500\/20 { background-color: rgba(126, 224, 176, .12) !important; }
.border-blue-500, .border-blue-500\/50 { border-color: rgba(126, 224, 176, .5) !important; }
.border-blue-500\/20, .border-blue-500\/30 { border-color: rgba(126, 224, 176, .25) !important; }
.from-blue-900\/30, .from-blue-900\/50 { --tw-gradient-from: rgba(126, 224, 176, .10) var(--tw-gradient-from-position) !important; }
.to-purple-900\/30, .to-purple-900\/50 { --tw-gradient-to: rgba(240, 180, 90, .06) var(--tw-gradient-to-position) !important; }
.shadow-blue-500\/10 { --tw-shadow-color: rgba(126, 224, 176, .1) !important; }

/* Cards and panels */
.bg-slate-800\/50, .bg-slate-700\/50, .bg-slate-900\/50 { background-color: var(--cm-card) !important; }
.bg-slate-700, .bg-slate-600 { background-color: rgba(255, 255, 255, .08) !important; }
.bg-slate-900 { background-color: var(--cm-bg-2) !important; }
.text-slate-300 { color: var(--cm-body) !important; }
.text-slate-400 { color: var(--cm-muted) !important; }
.text-slate-500 { color: #7f8f97 !important; }

/* Inline-styled blues in old templates */
[style*="color: #60a5fa"], [style*="color:#60a5fa"], [style*="color: #93c5fd"], [style*="color:#93c5fd"] { color: var(--cm-mint) !important; }
[style*="border: 4px solid rgba(96, 165, 250"] { border-color: rgba(126, 224, 176, .55) !important; }
[style*="background: #2563eb"], [style*="background:#2563eb"], [style*="background-color: #2563eb"] { background: var(--cm-mint) !important; color: #0b1712 !important; }

/* Buttons from custom.css */
.wp-block-button__link, .button, button.button, input[type="submit"] {
  background-color: var(--cm-mint) !important; color: #0b1712 !important; border-radius: 12px !important; font-weight: 700 !important;
}
.wp-block-button__link:hover, .button:hover, input[type="submit"]:hover { background-color: var(--cm-mint-2) !important; }

/* Long-form content */
.entry-content, .prose { color: var(--cm-body); }
.entry-content a, .prose a { color: var(--cm-mint); }
.entry-content blockquote { border-left: 3px solid var(--cm-mint); color: var(--cm-body); }
.entry-content code, .prose code { background: rgba(255, 255, 255, .07); color: var(--cm-amber); border-radius: 6px; padding: .1em .35em; }
.entry-content hr, .prose hr { border-color: var(--cm-line); }

/* No horizontal page scroll on phones */
html, body { max-width: 100%; overflow-x: clip; }
img, video, iframe { max-width: 100%; }

/* Cookie consent button and bar in the site palette */
html .cookieadmin_re_consent, html #cookieadmin_re_consent, html .cookieadmin_reconsent_img, html [class*="cookieadmin_re"] { background:#0e1318!important; border:1px solid rgba(126,224,176,.45)!important; box-shadow:0 8px 24px rgba(0,0,0,.4)!important; }
html .cookieadmin_law_container { background:#0e1318!important; color:#d6dde0!important; border:1px solid rgba(255,255,255,.11)!important; }
html .cookieadmin_btn { background:#7ee0b0!important; color:#0b1712!important; border:0!important; }
/* Cookie re-consent icon: the plugin's image is blue; shift it to mint */
html body .cookieadmin_re_consent img { filter: hue-rotate(-70deg) saturate(.85) brightness(1.05) !important; }
html body .cookieadmin_re_consent { border-radius: 50% !important; }
