/* VK Dark Mode: site palette (light + dark) and dark-mode styles. */

/* ---------- palette ---------- */
:root {
  --vk-bg: #FFFFFF;
  --vk-cloud: #F5F7FA;
  --vk-card: #FFFFFF;
  --vk-band: #0F1F3D;
  --vk-heading: #0F1F3D;
  --vk-text: #1F2937;
  --vk-muted: #5B6472;
  --vk-border: #E5E7EB;
  --vk-accent: #0F766E;
  --vk-tint: #E6F4F2;
  --vk-chip: #F8FAFC;
  --vk-btn-hover: #0F1F3D;
  --vk-uob: #B01C2E;
  --vk-header: #FFFFFF;
  --vk-strip: #E8F5F3;
}
html[data-theme="dark"] {
  --vk-bg: #0B1220;
  --vk-cloud: #0F172A;
  --vk-card: #141E33;
  --vk-band: #13264A;
  --vk-heading: #F1F5F9;
  --vk-text: #CBD5E1;
  --vk-muted: #94A3B8;
  --vk-border: #26344D;
  --vk-accent: #2DD4BF;
  --vk-tint: #0F2E2C;
  --vk-chip: #18233A;
  --vk-btn-hover: #115E59;
  --vk-uob: #F0707D;
  --vk-header: #0B1220;
  --vk-strip: #0F2E2C;
  color-scheme: dark;

  /* Astra theme palette (header, footer, blog, privacy policy) */
  --ast-global-color-0: #2DD4BF;
  --ast-global-color-1: #5EEAD4;
  --ast-global-color-2: #F1F5F9;
  --ast-global-color-3: #CBD5E1;
  --ast-global-color-4: #0B1220;
  --ast-global-color-5: #0F172A;
  --ast-global-color-6: #E2E8F0;
  --ast-global-color-7: #26344D;
  --ast-global-color-8: #E2E8F0;
}

/* smooth switch only when the visitor clicks the toggle */
html.vk-theme-anim, html.vk-theme-anim * {
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, fill .3s ease !important;
}

/* site background (also fixes the grey behind non-Elementor pages in light mode) */
body, .site, .site-content, .ast-plain-container .site-content { background-color: var(--vk-bg) !important; }
body { color: var(--vk-text); }
/* the theme's content background is a mid grey (#5B6472) on 404, search, archive and plain pages: use the page colour */
.ast-separate-container .ast-article-single, .ast-separate-container .ast-article-post,
.ast-separate-container .error-404, .ast-separate-container .no-results,
.ast-separate-container .ast-archive-description, .ast-separate-container .comments-area,
.ast-separate-container .ast-author-meta, .ast-separate-container .related-posts-title-wrapper,
.ast-separate-container .comments-count-wrapper, .ast-article-inner,
.ast-box-layout.ast-plain-container .site-content, .ast-padded-layout.ast-plain-container .site-content {
  background-color: var(--vk-bg) !important; background-image: none !important;
}

/* ---------- toggle button ---------- */
.vk-mode-toggle {
  display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; margin: 0;
  border-radius: 50%; border: 1px solid var(--vk-border); background: var(--vk-card);
  color: var(--vk-heading); cursor: pointer; line-height: 0;
  transition: border-color .2s, transform .2s, background-color .2s;
}
.vk-mode-toggle:hover, .vk-mode-toggle:focus-visible { border-color: var(--vk-accent); transform: rotate(-12deg); }
.vk-mode-toggle:focus-visible { outline: 2px solid var(--vk-accent); outline-offset: 2px; }
.vk-mode-toggle svg { width: 20px; height: 20px; }
.vk-mode-toggle .vk-sun { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; display: none; }
.vk-mode-toggle .vk-sun circle { fill: currentColor; stroke: none; }
.vk-mode-toggle .vk-moon { fill: currentColor; }
html[data-theme="dark"] .vk-mode-toggle .vk-sun { display: block; }
html[data-theme="dark"] .vk-mode-toggle .vk-moon { display: none; }
.ast-header-html p { margin: 0; }

/* ======================= DARK MODE ======================= */
html[data-theme="dark"] body { background-color: var(--vk-bg); }

/* header */
html[data-theme="dark"] .ast-primary-header-bar,
html[data-theme="dark"] .main-header-bar,
html[data-theme="dark"] #ast-mobile-header .ast-primary-header-bar,
html[data-theme="dark"] .ast-mobile-header-wrap .ast-primary-header-bar {
  background-color: var(--vk-header) !important; border-bottom-color: var(--vk-border) !important;
}
html[data-theme="dark"] .main-header-menu .menu-link,
html[data-theme="dark"] .ast-builder-menu .menu-link,
html[data-theme="dark"] .site-title a, html[data-theme="dark"] .site-title a:visited { color: var(--vk-text) !important; }
html[data-theme="dark"] .main-header-menu .menu-link:hover,
html[data-theme="dark"] .main-header-menu .current-menu-item > .menu-link,
html[data-theme="dark"] .site-title a:hover { color: var(--vk-accent) !important; }
html[data-theme="dark"] .main-header-menu .sub-menu,
html[data-theme="dark"] .ast-mobile-popup-content,
html[data-theme="dark"] .ast-mobile-header-content,
html[data-theme="dark"] #ast-mobile-header .ast-mobile-header-content,
html[data-theme="dark"] .ast-mobile-popup-drawer .ast-mobile-popup-inner {
  background-color: var(--vk-card) !important; border-color: var(--vk-border) !important;
}
html[data-theme="dark"] .ast-mobile-menu-trigger-minimal, html[data-theme="dark"] .menu-toggle { color: var(--vk-text) !important; }
html[data-theme="dark"] .ast-mobile-svg, html[data-theme="dark"] .menu-toggle svg { fill: var(--vk-text) !important; }
html[data-theme="dark"] .custom-logo { box-shadow: 0 0 0 1px rgba(255,255,255,.18); border-radius: 22%; }

/* footer */
html[data-theme="dark"] .ast-above-footer-bar, html[data-theme="dark"] .site-above-footer-wrap { background-color: var(--vk-strip) !important; }
html[data-theme="dark"] .ast-below-footer-bar, html[data-theme="dark"] .site-below-footer-wrap,
html[data-theme="dark"] .site-footer { background-color: var(--vk-bg) !important; border-top-color: var(--vk-border) !important; }
html[data-theme="dark"] .ast-footer-copyright, html[data-theme="dark"] .ast-footer-copyright * { color: var(--vk-muted) !important; }
html[data-theme="dark"] #ast-scroll-top { background-color: var(--vk-band) !important; color: #fff !important; }

/* footer connect strip */
.vk-connect-text { color: var(--vk-heading) !important; }
.vk-connect-text span { color: var(--vk-muted) !important; }

/* regular WordPress pages and posts (privacy policy, blog) */
html[data-theme="dark"] .entry-content, html[data-theme="dark"] .entry-content p,
html[data-theme="dark"] .entry-content li { color: var(--vk-text); }
html[data-theme="dark"] .entry-title, html[data-theme="dark"] .entry-content h1,
html[data-theme="dark"] .entry-content h2, html[data-theme="dark"] .entry-content h3,
html[data-theme="dark"] .entry-content h4 { color: var(--vk-heading) !important; }
html[data-theme="dark"] .entry-content a { color: var(--vk-accent); }
html[data-theme="dark"] .ast-separate-container .ast-article-single,
html[data-theme="dark"] .ast-separate-container .ast-article-post,
html[data-theme="dark"] .ast-article-inner { background-color: var(--vk-card) !important; }

/* Elementor text links inside dark sections keep the accent */
html[data-theme="dark"] .elementor-widget-text-editor a:not(.vk-connect-btn) { color: var(--vk-accent); }

/* brand logos that are too dark to see on a dark background */
html[data-theme="dark"] svg[fill="#0052CC"] { fill: #4C9AFF; }   /* Jira, Trello */
html[data-theme="dark"] svg[fill="#172B4D"] { fill: #B3D4FF; }   /* Confluence */
html[data-theme="dark"] svg[fill="#282C33"] { fill: #E2E8F0; }   /* Lucid */
html[data-theme="dark"] svg[fill="#050038"] { fill: #FFD02F; }   /* Miro */
html[data-theme="dark"] svg[fill="#0F766E"] { fill: #2DD4BF; }   /* method icons */
html[data-theme="dark"] svg[fill="#3955A3"] { fill: #8FA8F0; }   /* Visio */
html[data-theme="dark"] svg[fill="#336791"] { fill: #7FB2E5; }   /* SQL */
html[data-theme="dark"] svg[fill="#217346"] { fill: #4ADE80; }   /* Excel */

/* ---------- career roadmap (Home) ---------- */
html[data-theme="dark"] .vkj { --navy: #E2E8F0; --teal: #2DD4BF; --slate: #94A3B8; --line: #2B3A55; }
html[data-theme="dark"] .vkj-card { background: var(--vk-card); border-color: var(--vk-border); box-shadow: none; }
html[data-theme="dark"] .vkj-feature .vkj-card { border-color: #2DD4BF; box-shadow: 0 8px 24px rgba(45,212,191,.12); }
html[data-theme="dark"] .vkj-title { color: var(--vk-heading); }
html[data-theme="dark"] .vkj-note { color: var(--vk-text); }
html[data-theme="dark"] .vkj-kind { background: var(--vk-chip); color: var(--vk-muted); }
html[data-theme="dark"] .vkj-node { background: var(--vk-card); border-color: #2B3A55; color: var(--vk-heading); }
html[data-theme="dark"] .vkj-edu .vkj-node { background: #1E3A5F; border-color: #1E3A5F; color: #fff; }
html[data-theme="dark"] .vkj-feature .vkj-node { background: #0F766E; border-color: #0F766E; }
html[data-theme="dark"] .vkj-now .vkj-node { background: #14B8A6; border-color: #14B8A6; color: #0B1220; }
html[data-theme="dark"] .vkj-fill { background: linear-gradient(90deg, #1E3A5F, #2DD4BF); }
html[data-theme="dark"] .vkj-badge { background: #1E3A5F; }
html[data-theme="dark"] .vkj-chip { background: var(--vk-chip); border-color: var(--vk-border); color: var(--vk-heading); }
html[data-theme="dark"] .vkj-split-bar i { background: #3B5B8C; }
html[data-theme="dark"] .vkj .vkj-cta { background: #0F766E; color: #fff !important; }
html[data-theme="dark"] .vkj .vkj-cta:hover { background: #115E59; }
html[data-theme="dark"] .vkj.is-anim .vkj-stop:not(.is-on) .vkj-node { background: var(--vk-card); border-color: #2B3A55; color: #475569; }

/* ---------- toolkit chips (Home + toolkit pages) ---------- */
html[data-theme="dark"] .vkt-g h3 { color: var(--vk-muted) !important; }
html[data-theme="dark"] .vkt-chip { background: var(--vk-chip); border-color: var(--vk-border); color: var(--vk-heading); }
html[data-theme="dark"] .vkt-chip:hover, html[data-theme="dark"] .vkt-chip:focus-visible { border-color: #2DD4BF; color: var(--vk-heading); box-shadow: 0 4px 14px rgba(0,0,0,.35); }
html[data-theme="dark"] .vkt-chip .vkt-go { color: #2DD4BF; }
html[data-theme="dark"] .vkt-hint { color: var(--vk-muted); }

/* ---------- glossary ---------- */
html[data-theme="dark"] .vkg { color: var(--vk-text); }
html[data-theme="dark"] .vkg label { color: var(--vk-heading) !important; }
html[data-theme="dark"] .vkg-search { background: var(--vk-card); border-color: var(--vk-border); color: var(--vk-heading); }
html[data-theme="dark"] .vkg-az a { background: var(--vk-card); border-color: var(--vk-border); color: var(--vk-heading); }
html[data-theme="dark"] .vkg h2.vkg-letter { color: #2DD4BF; }
html[data-theme="dark"] .vkg-item { background: var(--vk-card); border-color: var(--vk-border); }
html[data-theme="dark"] .vkg-item dt { color: var(--vk-heading); }
html[data-theme="dark"] .vkg-item dd { color: var(--vk-text); }
html[data-theme="dark"] .vkg-item dd a { color: #2DD4BF; }
html[data-theme="dark"] .vkg-empty { color: var(--vk-muted); }

/* ---------- interview guide ---------- */
html[data-theme="dark"] .vki { color: var(--vk-text); }
html[data-theme="dark"] .vki h2, html[data-theme="dark"] .vki h3, html[data-theme="dark"] .vki summary,
html[data-theme="dark"] .vki b, html[data-theme="dark"] .vki-ans b { color: var(--vk-heading) !important; }
html[data-theme="dark"] .vki a { color: #2DD4BF; }
html[data-theme="dark"] .vki-lead, html[data-theme="dark"] .vki-card p, html[data-theme="dark"] .vki details .vki-ans,
html[data-theme="dark"] .vki-list li, html[data-theme="dark"] .vki-check li { color: var(--vk-text); }
html[data-theme="dark"] .vki-card, html[data-theme="dark"] .vki details,
html[data-theme="dark"] .vki-toc a { background: var(--vk-card); border-color: var(--vk-border); }
html[data-theme="dark"] .vki-toc a { color: var(--vk-heading); }
html[data-theme="dark"] .vki details[open] { border-color: #2DD4BF; }
html[data-theme="dark"] .vki-num { background: #1E3A5F; }
html[data-theme="dark"] .vki-letter { color: #2DD4BF; }
html[data-theme="dark"] .vki-callout { background: var(--vk-band); }
html[data-theme="dark"] .vki-check li { border-bottom-color: var(--vk-border); }
html[data-theme="dark"] .vki-check li::before { background: var(--vk-tint); color: #2DD4BF; }

/* ---------- contact form (WPForms) ---------- */
html[data-theme="dark"] .wpforms-container .wpforms-field-label,
html[data-theme="dark"] .wpforms-container .wpforms-field-label-inline,
html[data-theme="dark"] .wpforms-container label { color: var(--vk-heading) !important; }
html[data-theme="dark"] .wpforms-container input[type=text],
html[data-theme="dark"] .wpforms-container input[type=email],
html[data-theme="dark"] .wpforms-container select,
html[data-theme="dark"] .wpforms-container textarea {
  background-color: var(--vk-bg) !important; color: var(--vk-heading) !important; border-color: var(--vk-border) !important;
}
html[data-theme="dark"] .wpforms-container .wpforms-field-sublabel,
html[data-theme="dark"] .wpforms-container .wpforms-field-description { color: var(--vk-muted) !important; }
html[data-theme="dark"] .wpforms-confirmation-container-full { background: var(--vk-tint) !important; border-color: #2DD4BF !important; color: var(--vk-heading) !important; }

/* ---------- 404, search results and search boxes ---------- */
html[data-theme="dark"] .error-404, html[data-theme="dark"] .error-404 p,
html[data-theme="dark"] .no-results, html[data-theme="dark"] .no-results p,
html[data-theme="dark"] .page-content, html[data-theme="dark"] .page-content p,
html[data-theme="dark"] .ast-archive-description, html[data-theme="dark"] .ast-archive-description p { color: var(--vk-text) !important; }
html[data-theme="dark"] .error-404 .page-title, html[data-theme="dark"] .error-404 h1,
html[data-theme="dark"] .page-title, html[data-theme="dark"] .ast-archive-title { color: var(--vk-heading) !important; }
html[data-theme="dark"] input[type="search"], html[data-theme="dark"] .search-field,
html[data-theme="dark"] .search-form .search-submit, html[data-theme="dark"] .ast-search-submit {
  background-color: var(--vk-card) !important; color: var(--vk-heading) !important; border-color: var(--vk-border) !important;
}
html[data-theme="dark"] .search-form svg, html[data-theme="dark"] .ast-search-submit svg { fill: var(--vk-muted) !important; }
html[data-theme="dark"] ::placeholder { color: var(--vk-muted); opacity: 1; }

/* theme headings (404, archives, plain pages) that carry the theme's fixed navy */
html[data-theme="dark"] .site-content :is(h1,h2,h3,h4,h5,h6):not([class*="elementor"]):not([class^="vk"]) { color: var(--vk-heading); }

/* links inside the contact form (consent checkbox) */
html[data-theme="dark"] .wpforms-container a { color: var(--vk-accent) !important; }

/* contact form thank-you message: WPForms colours the text inside the box separately */
html[data-theme="dark"] .wpforms-confirmation-container-full p,
html[data-theme="dark"] .wpforms-confirmation-container-full * { color: var(--vk-heading) !important; }

/* ---------- blog: post cards, single posts and comments (v1.7) ---------- */
/* The theme colours post titles, categories and meta in navy, which disappears on the dark cards */
html[data-theme="dark"] .entry-title a,
html[data-theme="dark"] .ast-blog-single-element.entry-title a { color: var(--vk-heading) !important; }
html[data-theme="dark"] .entry-title a:hover,
html[data-theme="dark"] .entry-title a:focus { color: var(--vk-accent) !important; }
html[data-theme="dark"] .cat-links a, html[data-theme="dark"] .tags-links a,
html[data-theme="dark"] .ast-taxonomy-container a { color: var(--vk-accent) !important; }
html[data-theme="dark"] .entry-meta, html[data-theme="dark"] .entry-meta *,
html[data-theme="dark"] .ast-blog-meta-container, html[data-theme="dark"] .ast-blog-meta-container *,
html[data-theme="dark"] .posted-on, html[data-theme="dark"] .posted-by,
html[data-theme="dark"] .author-name, html[data-theme="dark"] .published,
html[data-theme="dark"] .updated { color: var(--vk-muted) !important; }
html[data-theme="dark"] .ast-read-more-container a, html[data-theme="dark"] .read-more a,
html[data-theme="dark"] .post-navigation a, html[data-theme="dark"] .nav-links a,
html[data-theme="dark"] .ast-pagination a, html[data-theme="dark"] .page-numbers { color: var(--vk-accent) !important; }
html[data-theme="dark"] .post-navigation .ast-post-nav, html[data-theme="dark"] .post-navigation .nav-links span { color: var(--vk-muted) !important; }
html[data-theme="dark"] .page-numbers.current { color: var(--vk-heading) !important; }

/* comments */
html[data-theme="dark"] .comments-area, html[data-theme="dark"] .comment-respond,
html[data-theme="dark"] .comment-content, html[data-theme="dark"] .comment-form label,
html[data-theme="dark"] .comment-notes, html[data-theme="dark"] .logged-in-as,
html[data-theme="dark"] .comment-form-cookies-consent { color: var(--vk-text) !important; }
html[data-theme="dark"] .comments-title, html[data-theme="dark"] .comment-reply-title,
html[data-theme="dark"] .comment-author, html[data-theme="dark"] .comment-author a,
html[data-theme="dark"] .ast-comment-cite-wrap cite { color: var(--vk-heading) !important; }
html[data-theme="dark"] .logged-in-as a, html[data-theme="dark"] .comment-reply-link,
html[data-theme="dark"] .comment-meta a, html[data-theme="dark"] .ast-comment-time,
html[data-theme="dark"] .comment-awaiting-moderation { color: var(--vk-accent) !important; }
html[data-theme="dark"] .comment-form input[type=text], html[data-theme="dark"] .comment-form input[type=email],
html[data-theme="dark"] .comment-form input[type=url], html[data-theme="dark"] .comment-form textarea {
  background: var(--vk-card) !important; color: var(--vk-heading) !important; border-color: var(--vk-border) !important; }
html[data-theme="dark"] .comment-form ::placeholder { color: var(--vk-muted) !important; }
