/* Happy Hues #7 — light lavender widgets need dark type in dark mode */

body.dark .card,
body.dark .card .card-title,
body.dark .card .card-text,
body.dark .card .card-body,
body.dark .card a,
body.dark #docs-projects .card,
body.dark #docs-projects a,
body.dark #docs-projects h5,
body.dark #projects .card,
body.dark #projects a,
body.dark #projects h5,
body.dark #achievements .card,
body.dark #achievements .card-title,
body.dark #achievements .card-text {
  color: #0e172c !important;
}

body.dark .card .badge,
body.dark #docs-projects .badge,
body.dark #projects .badge {
  background-color: #0e172c !important;
  color: #fffffe !important;
}

body.dark .card .btn,
body.dark #docs-projects .btn,
body.dark #projects .btn {
  color: #0e172c !important;
  border-color: #0e172c !important;
  background-color: transparent !important;
}

body.dark .card .btn:hover,
body.dark #docs-projects .btn:hover,
body.dark #projects .btn:hover {
  background-color: #0e172c !important;
  color: #fffffe !important;
}

/* Experience widget (lavender panel) — force black text in dark mode */
body.dark #experience .experience-container,
body.dark #experience .experience-container *,
body.dark #experience .experience-container .nav-link,
body.dark #experience .experience-container .nav-link.active,
body.dark #experience .experience-container .h4,
body.dark #experience .experience-container small,
body.dark #experience .experience-container p,
body.dark #experience .experience-container li,
body.dark #experience .experience-container a {
  color: #0e172c !important;
}

body.dark #experience .experience-container .nav-link.active {
  border-bottom-color: #a786df !important;
}

body.dark #experience .experience-container a {
  color: #a786df !important;
}

body.dark #experience .experience-container .tab-content .tab-pane ul li::before {
  color: #a786df !important;
  border-color: #a786df !important;
}

/* Section titles outside widgets stay light on navy page */
body.dark #experience > .container > h3 {
  color: #d9d4e7 !important;
}

/* Light mode nav — same pink as first section pair */
body:not(.dark) header,
body:not(.dark) header .navbar,
body:not(.dark) #profileHeader.showHeaderOnTop {
  background-color: #fec7d7 !important;
}

body:not(.dark) .navbar-brand,
body:not(.dark) .nav-link {
  color: #0e172c !important;
}

/*
 * Light mode bands in pairs of two sections:
 * pink → hero + about
 * white → docs-projects + experience
 * pink → projects + achievements
 * white → education + contact (if enabled)
 */
body:not(.dark) #hero,
body:not(.dark) #about {
  background-color: #fec7d7 !important;
}

body:not(.dark) #docs-projects,
body:not(.dark) #experience {
  background-color: #fffffe !important;
}

body:not(.dark) #projects,
body:not(.dark) #achievements {
  background-color: #fec7d7 !important;
}

body:not(.dark) #education,
body:not(.dark) #contact {
  background-color: #fffffe !important;
}

/* Cards stay lavender on both pink and white bands */
body:not(.dark) #docs-projects .card,
body:not(.dark) #projects .card,
body:not(.dark) #achievements .card,
body:not(.dark) #experience .experience-container {
  background-color: #d9d4e7 !important;
}

/*
 * Theme applies `.light > * { background: var(--background-color) }` (white)
 * and `#theme-toggle { background: var(--background-color) }` — override both.
 */
html body.light > #site-chat,
html body.dark > #site-chat,
html body #site-chat.site-chat {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

html body #theme-toggle {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 4px !important;
  line-height: 1 !important;
  height: 24px !important;
  width: 24px !important;
  vertical-align: middle !important;
}

html body #theme-toggle svg {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  stroke: #0e172c;
}

/* Light → show moon only; dark → show sun only */
html body:not(.dark) #theme-toggle #sun {
  display: none !important;
}

html body:not(.dark) #theme-toggle #moon {
  display: block !important;
}

html body.dark #theme-toggle #moon {
  display: none !important;
}

html body.dark #theme-toggle #sun {
  display: block !important;
  stroke: #fffffe;
}

/* Align theme toggle with nav text baseline */
header .navbar-nav {
  align-items: center !important;
}

header .navbar-nav > .nav-item {
  display: flex !important;
  align-items: center !important;
}

header .navbar-nav > .nav-item > .text-center {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  height: 100%;
}

.site-chat__fab {
  box-shadow: 0 8px 20px rgb(14 23 44 / 22%) !important;
  animation: none !important;
}

.site-chat__fab:hover {
  box-shadow: 0 12px 28px rgb(14 23 44 / 28%) !important;
}

body:not(.dark) footer,
html body.light > footer {
  background-color: #fec7d7 !important;
}

body.dark footer,
html body.dark > footer {
  background-color: #0e172c !important;
}

/* Light mode single page: white side panels (lavender looks muddy gray on pink) */
body:not(.dark) #single aside {
  background-color: #fffffe !important;
  border: 1px solid rgb(167 134 223 / 35%);
  color: #0e172c !important;
}

body:not(.dark) #single aside h5,
body:not(.dark) #single aside.toc h5,
body:not(.dark) #single aside.tags h5,
body:not(.dark) #single aside.social h5,
body:not(.dark) #single aside.toc .toc-content a,
body:not(.dark) #single aside.social .social-content a {
  color: #0e172c !important;
}

body:not(.dark) #single aside.tags ul.tags-ul li a {
  background-color: #d9d4e7 !important;
  color: #0e172c !important;
}

body:not(.dark) #single .page-content blockquote,
body:not(.dark) #single .page-content blockquote * {
  background-color: #fffffe !important;
  color: #0e172c !important;
}

/* —— Single / portfolio pages: lavender widgets need navy type —— */
body.dark #single aside,
body.dark #single aside h5,
body.dark #single aside.toc h5,
body.dark #single aside.tags h5,
body.dark #single aside.social h5,
body.dark #single aside.toc .toc-content a,
body.dark #single aside.toc .toc-content li,
body.dark #single aside.social .social-content,
body.dark #single aside.social .social-content a {
  color: #0e172c !important;
}

body.dark #single aside.tags ul.tags-ul li a {
  background-color: #0e172c !important;
  color: #fffffe !important;
}

body.dark #single aside.social .social-content ul li a {
  border-color: #0e172c !important;
  color: #0e172c !important;
}

body.dark #single aside.toc .toc-content a:hover,
body.dark #single aside.social .social-content a:hover {
  color: #a786df !important;
}

/* Note / blockquote on lavender panel */
body.dark #single .page-content blockquote,
body.dark #single .page-content blockquote * {
  color: #0e172c !important;
}

body:not(.dark) #single .page-content blockquote,
body:not(.dark) #single .page-content blockquote * {
  color: #0e172c !important;
}

/* Tables: solid colors, drop gray opacity */
#single .page-content table {
  opacity: 1 !important;
}

#single .page-content table > thead > tr > th {
  background-color: #a786df !important;
  color: #fffffe !important;
  border: 1px solid #a786df !important;
  opacity: 1 !important;
}

#single .page-content table > tbody > tr > td {
  background-color: #fffffe !important;
  color: #0e172c !important;
  border: 1px solid #d9d4e7 !important;
  opacity: 1 !important;
}

#single .page-content table > thead > tr {
  background-color: #a786df !important;
  color: #fffffe !important;
}
