/*
Theme Name: HoloMapper Blog
Theme URI: https://holomapperstudio.com/blogs/
Description: HoloMapper child theme for Blocksy. Dark, modern, performance-focused projection mapping publication theme.
Author: HoloMapper
Template: blocksy
Version: 1.0.0
Text Domain: holomapper-blog
*/

:root {
  --hm-bg: #0b0f14;
  --hm-bg-2: #101720;
  --hm-surface: #121922;
  --hm-surface-2: #182230;
  --hm-border: #25303b;
  --hm-text: #eef5fb;
  --hm-muted: #a7b3c2;
  --hm-cyan: #27d3ff;
  --hm-blue: #2d9cdb;
  --hm-green: #59e1a8;
  --hm-radius: 16px;
  --hm-shadow: 0 18px 55px rgba(0,0,0,.28);
}

html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(circle at 15% 0%, rgba(39,211,255,.08), transparent 32rem),
    radial-gradient(circle at 85% 12%, rgba(45,156,219,.07), transparent 30rem),
    var(--hm-bg);
  color: var(--hm-muted);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(39,211,255,.28); color: #fff; }
a { text-underline-offset: 3px; }

/* Header */
#header [data-row] {
  background: rgba(11,15,20,.82) !important;
  border-bottom: 1px solid rgba(255,255,255,.07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
#header .site-title a,
#header .site-description { color: var(--hm-text); }
#header .site-title a {
  font-weight: 800;
  letter-spacing: -.02em;
}
#header .menu > li > a {
  font-weight: 600;
  color: #c9d4de;
}
#header .menu > li > a:hover,
#header .menu > li.current-menu-item > a,
#header .menu > li.current-menu-ancestor > a { color: var(--hm-cyan); }
#header .menu > li:last-child > a {
  border: 1px solid rgba(39,211,255,.5);
  background: linear-gradient(135deg, rgba(39,211,255,.13), rgba(45,156,219,.10));
  border-radius: 10px;
  padding-inline: 16px;
  color: #e9fbff;
}

/* Home hero */
.hm-blog-hero {
  position: relative;
  overflow: hidden;
  max-width: 1200px;
  margin: 52px auto 12px;
  padding: clamp(32px, 6vw, 72px);
  border: 1px solid rgba(39,211,255,.16);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(24,34,48,.94), rgba(11,15,20,.96)),
    var(--hm-surface);
  box-shadow: var(--hm-shadow);
}
.hm-blog-hero:before,
.hm-blog-hero:after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  pointer-events: none;
}
.hm-blog-hero:before {
  width: 340px; height: 340px;
  right: -120px; top: -150px;
  background: radial-gradient(circle, rgba(39,211,255,.18), transparent 66%);
}
.hm-blog-hero:after {
  width: 280px; height: 280px;
  left: -150px; bottom: -160px;
  background: radial-gradient(circle, rgba(45,156,219,.14), transparent 68%);
}
.hm-blog-hero__eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--hm-cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hm-blog-hero h1 {
  position: relative;
  margin: 12px 0 14px;
  max-width: 820px;
  color: var(--hm-text);
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -.045em;
}
.hm-blog-hero p {
  position: relative;
  max-width: 760px;
  margin: 0;
  color: #b9c6d2;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.65;
}
.hm-hero-links { position: relative; display:flex; flex-wrap:wrap; gap:12px; margin-top:26px; }
.hm-button {
  display: inline-flex;
  align-items:center;
  justify-content:center;
  min-height: 44px;
  padding: 10px 17px;
  border-radius: 10px;
  border: 1px solid var(--hm-border);
  background: var(--hm-surface-2);
  color: var(--hm-text) !important;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.hm-button:hover { transform: translateY(-1px); border-color: rgba(39,211,255,.5); }
.hm-button--primary {
  border-color: rgba(39,211,255,.65);
  background: linear-gradient(135deg, #168cb2, #257fbd);
  box-shadow: 0 10px 30px rgba(39,211,255,.12);
}

/* Archive cards */
.entries { gap: 26px; }
.entries .entry-card {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--hm-radius);
  background: linear-gradient(180deg, rgba(24,34,48,.95), rgba(18,25,34,.98));
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.entries .entry-card:hover {
  transform: translateY(-3px);
  border-color: rgba(39,211,255,.28);
  box-shadow: 0 20px 48px rgba(0,0,0,.26);
}
.entries .entry-card .entry-title { letter-spacing: -.018em; }
.entries .entry-card .entry-title a { color: var(--hm-text); }
.entries .entry-card .entry-title a:hover { color: var(--hm-cyan); }
.entries .entry-card .entry-excerpt { color: var(--hm-muted); }
.entries .entry-card .entry-meta { color: #8796a5; font-size: 13px; }
.entries .entry-card .entry-meta a { color: var(--hm-cyan); }
.entries .ct-media-container img { transition: transform .35s ease; }
.entries .entry-card:hover .ct-media-container img { transform: scale(1.025); }

/* Article */
.single-post .entry-header,
.single-post .entry-content,
.single-post .post-navigation,
.single-post .ct-related-posts-container { position: relative; }
.single-post .entry-header .page-title,
.single-post .entry-title { color: var(--hm-text); letter-spacing: -.035em; }
.single-post .entry-content {
  color: #bec9d4;
  font-size: 17px;
  line-height: 1.78;
}
.single-post .entry-content > p:first-of-type { font-size: 19px; color: #d0dae4; }
.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4 {
  color: var(--hm-text);
  letter-spacing: -.025em;
  scroll-margin-top: 110px;
}
.single-post .entry-content h2 { margin-top: 2.2em; }
.single-post .entry-content a { color: var(--hm-cyan); }
.single-post .entry-content a:hover { color: #8eeaff; }
.single-post .entry-content strong { color: #edf7ff; }
.single-post .entry-content hr { border-color: var(--hm-border); }

/* Tables */
.single-post .entry-content .wp-block-table,
.single-post .entry-content table { margin: 28px 0; }
.single-post .entry-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--hm-border);
  border-radius: 12px;
  background: var(--hm-surface);
  font-size: 15px;
}
.single-post .entry-content th,
.single-post .entry-content td {
  padding: 13px 14px;
  border-right: 1px solid var(--hm-border);
  border-bottom: 1px solid var(--hm-border);
  vertical-align: top;
}
.single-post .entry-content th:last-child,
.single-post .entry-content td:last-child { border-right: 0; }
.single-post .entry-content tr:last-child td { border-bottom: 0; }
.single-post .entry-content th {
  background: #182331;
  color: var(--hm-text);
  text-align: left;
  font-size: 13px;
  letter-spacing: .03em;
}

/* SEO/utility blocks */
.hm-toc,
.hm-note,
.hm-disclosure,
.hm-cta,
.hm-keytakeaways {
  margin: 28px 0;
  padding: 20px 22px;
  border: 1px solid var(--hm-border);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(24,34,48,.88), rgba(15,22,30,.92));
}
.hm-toc { border-color: rgba(39,211,255,.19); }
.hm-toc strong,
.hm-keytakeaways strong,
.hm-note strong { color: var(--hm-text); }
.hm-toc ul,
.hm-keytakeaways ul { margin: 12px 0 0 20px; }
.hm-toc li + li,
.hm-keytakeaways li + li { margin-top: 7px; }
.hm-disclosure {
  border-left: 3px solid var(--hm-cyan);
  color: #aebac6;
  font-size: 14px;
}
.hm-cta {
  padding: clamp(22px,4vw,34px);
  border-color: rgba(39,211,255,.26);
  background:
    radial-gradient(circle at 100% 0%, rgba(39,211,255,.10), transparent 40%),
    linear-gradient(145deg, #15202b, #0f161e);
}
.hm-cta h2,
.hm-cta h3 { margin-top: 0 !important; }
.hm-cta__actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:18px; }
.hm-badge {
  display:inline-flex;
  align-items:center;
  gap:7px;
  margin:0 6px 7px 0;
  padding:6px 10px;
  border:1px solid rgba(39,211,255,.20);
  border-radius:999px;
  background:rgba(39,211,255,.06);
  color:#bbf4ff;
  font-size:12px;
  font-weight:700;
}
.hm-sources {
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid var(--hm-border);
  font-size: 14px;
  color: #8997a5;
}
.hm-sources h2 { margin-top: 0 !important; font-size: 20px !important; }
.hm-sources ul { padding-left: 18px; }

/* Categories and breadcrumbs */
.ct-breadcrumbs { color: #7f8e9e; font-size: 13px; }
.ct-breadcrumbs a { color: #a8b5c1; }
.ct-breadcrumbs a:hover { color: var(--hm-cyan); }
.entry-meta [rel="tag"],
.entry-meta [rel="category tag"] { color: var(--hm-cyan); }

/* Related posts */
.ct-related-posts {
  border-top: 1px solid var(--hm-border);
  background: #0d131a;
}
.ct-related-posts .related-entry-title a { color: var(--hm-text); }

/* Footer */
footer.ct-footer {
  border-top: 1px solid rgba(255,255,255,.07);
  background: #080c10;
}
footer.ct-footer a { color: #b9c5d0; }
footer.ct-footer a:hover { color: var(--hm-cyan); }

/* Forms / search */
input, textarea, select {
  border-color: var(--hm-border) !important;
  background: #0e151d !important;
  color: var(--hm-text) !important;
}

/* Accessibility */
:focus-visible { outline: 2px solid var(--hm-cyan); outline-offset: 3px; }

/* Mobile */
@media (max-width: 689px) {
  .hm-blog-hero { margin-top: 26px; border-radius: 18px; }
  .single-post .entry-content { font-size: 16.5px; }
  .single-post .entry-content table { font-size: 13px; }
  .single-post .entry-content th,
  .single-post .entry-content td { padding: 10px; }
  .hm-toc, .hm-note, .hm-disclosure, .hm-cta, .hm-keytakeaways { padding: 17px; }
}
