/************************************************************
 * UPLIFTICS — ELEMENTOR SITE SETTINGS (CUSTOM CSS)
 * File: Elementor → Site Settings → Custom CSS
 *
 * PURPOSE
 * - Elementor component styling (hero, tiles, Elementor-built templates)
 * - Post template styling that relies on Elementor widgets/classes
 *
 * DO NOT PUT HERE
 * - Blocksy header/nav/footer overrides (those belong in Appearance → Customize → Additional CSS)
 *
 * REQUIRED CLASSES (Elementor)
 * - Tiles: .upliftics-tile, .tile-title, .tile-subtext, .meta, .sep
 * - Single post wrapper: .upliftics-post
 * - Meta stack widget wrapper: .upl-meta-stack
 * - Post nav wrapper: .upl-nav
 * - CB post body class: .cb-post
 * - CB landing loops: .cb-loop and .cb-log
 * - CB page header block: .cb-header + .cb-logo + .cb-title + .cb-subtitle + .cb-intro + optional spans .cb-syntax
 * - Elementor footer (if you built it in Elementor): .upl-footer, .upl-footer-status, .upl-footer-links, .upl-footer-mark
 ************************************************************/


/************************************************************
 * 0) GLOBAL TYPE (ELEMENTOR-SAFE)
 * NOTE: Avoid broad sitewide selectors (like h1–h6) if Blocksy controls typography.
 * If you truly want every heading globally in Elementor areas to be light, scope it.
 ************************************************************/

.elementor h1,
.elementor h2,
.elementor h3,
.elementor h4,
.elementor h5,
.elementor h6 {
  color: #e6e6e6;
}


/************************************************************
 * 1) HERO (HOME)
 ************************************************************/

/* Main ::UPLIFTICS title */
.hero-title {
  color: #d0d0d0;
  font-weight: 700;
  letter-spacing: 0.12rem;
}

/* Tagline row (performance / clarity / self-improvement) */
.hero-tagline {
  color: #c7a56e;      /* gold accent */
  font-size: 1.3rem;   /* rem-based */
  opacity: 0.9;
  letter-spacing: 0.05rem;
}

/* Command line container (> BUILD BETTER _) */
.hero-command {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}

/* Prefix ">" */
.cmd-prefix {
  color: #a82222; /* subtle idle red */
  transition: all 0.25s ease;
}

/* Glow on prefix when row hovered */
.hero-command:hover .cmd-prefix {
  color: #ff2a2a;
  text-shadow: 0 0 10px #ff2a2a;
}

/* BUILD BETTER link */
.hero-command-link {
  color: #e6e6e6;
  text-decoration: none;
  transition: all 0.25s ease;
}

/* BUILD BETTER hover */
.hero-command-link:hover {
  color: #ff2a2a;
  text-shadow: 0 0 10px #ff2a2a;
  cursor: pointer;
}

/* Blinking cursor "_" */
.cmd-cursor {
  color: #ff2a2a;
  animation: cmd-blink 1s step-end infinite;
}

/* Cursor blink animation */
@keyframes cmd-blink {
  0%, 50% { opacity: 1; }
  50%, 100% { opacity: 0; }
}


/************************************************************
 * 2) TILES (HOME HUB)
 ************************************************************/

/* Base tile */
.upliftics-tile {
  background: #0c0c0c;
  border: 1px solid #1a1a1a;
  padding: 40px;
  cursor: pointer;

  transition:
    background 0.25s ease-out,
    border-color 0.25s ease-out,
    box-shadow 0.35s ease-out,
    transform 0.3s ease;
}

/* Hover: lift + premium pulse */
.upliftics-tile:hover {
  background: #111111;
  border-color: #c7a56e !important; /* gold border to match system */
  transform: translateY(-3px);
  animation: upliftics-pulse 4s ease-in-out infinite;
}

/* Hover pulse animation (red glow) */
@keyframes upliftics-pulse {
  0% {
    box-shadow:
      0 0 22px rgba(255, 42, 42, 0.30),
      0 0 60px rgba(255, 42, 42, 0.15);
  }
  50% {
    box-shadow:
      0 0 28px rgba(255, 42, 42, 0.38),
      0 0 75px rgba(255, 42, 42, 0.20);
  }
  100% {
    box-shadow:
      0 0 22px rgba(255, 42, 42, 0.30),
      0 0 60px rgba(255, 42, 42, 0.15);
  }
}


/************************************************************
 * 3) TILE TITLE + GLITCH
 ************************************************************/

.upliftics-tile .tile-title {
  color: #e6e6e6;
  position: relative;
  z-index: 2;
  will-change: transform, text-shadow, color;
}

/* Glitch trigger */
.upliftics-tile:hover .tile-title {
  animation: upliftics-glitch 0.3s linear 1;
}

/* Glitch keyframes (amber flicker) */
@keyframes upliftics-glitch {
  0% {
    color: #e6e6e6;
    text-shadow: 0 0 0 #c7a56e;
    transform: translate(0, 0);
  }
  20% {
    color: #c7a56e;
    text-shadow: -2px 0 6px #c7a56e;
    transform: translate(1px, -1px);
  }
  40% {
    color: #e6e6e6;
    text-shadow: 2px 0 4px #c7a56e;
    transform: translate(-1px, 1px);
  }
  60% {
    color: #c7a56e;
    text-shadow: -2px 0 6px #c7a56e;
    transform: translate(1px, 1px);
  }
  80% {
    color: #e6e6e6;
    text-shadow: 2px 0 4px #c7a56e;
    transform: translate(-1px, -1px);
  }
  100% {
    color: #e6e6e6;
    text-shadow: 0 0 0 #c7a56e;
    transform: translate(0, 0);
  }
}


/************************************************************
 * 4) TILE SUBTEXT (DESKTOP + MOBILE STACK)
 ************************************************************/

.upliftics-tile .tile-subtext {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.95rem;
  color: #c1c1c1;
  letter-spacing: 0.025rem;
  opacity: 0.75;
  line-height: 1.6;

  transform: translateY(2px);
  transition: all 0.25s ease-out;
}

.upliftics-tile:hover .tile-subtext {
  opacity: 1;
  transform: translateY(0);
}

/* Pipes inside subtext (desktop) */
.tile-subtext .sep {
  padding: 0 8px;
  color: #777;
}

/* Mobile: stack meta tags + hide separators */
@media (max-width: 767px) {
  .upliftics-tile .tile-subtext {
    font-size: 0.8rem;
    letter-spacing: 0.02rem;
    line-height: 1.5;
  }

  .upliftics-tile .tile-subtext .meta {
    display: block;
  }

  .upliftics-tile .tile-subtext .sep {
    display: none;
  }
}


/************************************************************
 * 5) SINGLE POST TEMPLATE (UNIVERSAL)
 * Applies to containers with class "upliftics-post"
 ************************************************************/

/* Page background for single posts */
.single-post {
  background-color: #000000;
}

/* Main wrapper */
.upliftics-post {
  max-width: 800px;
  margin: 0 auto;
  padding-top: 80px;
  padding-bottom: 120px;
  color: #e6e6e6;
}

/* Post title widget */
.upliftics-post .elementor-widget-theme-post-title .elementor-heading-title {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: 0.08rem;
  line-height: 1.1;
  color: #e6e6e6;
  margin-bottom: 10px;
}

/* Title responsiveness */
@media (max-width: 1024px) {
  .upliftics-post .elementor-widget-theme-post-title .elementor-heading-title { font-size: 2.4rem; }
}
@media (max-width: 767px) {
  .upliftics-post .elementor-widget-theme-post-title .elementor-heading-title { font-size: 1.8rem; }
}


/************************************************************
 * 6) POST META (STACKED — ONE SYSTEM)
 * This section replaces older .upl-meta / .upl-meta-mobile duplication.
 * Use ONLY .upl-meta-stack going forward.
 ************************************************************/

.upliftics-post .upl-meta-stack .elementor-post-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;

  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  color: #c1c1c1;
  opacity: 0.8;

  margin: 10px 0 24px;
}

/* Each item (date/module/etc.) */
.upliftics-post .upl-meta-stack .elementor-post-info__item {
  display: inline-flex;
  align-items: baseline;
  text-transform: lowercase;
}

/* Prefix label ("date:", "module:") */
.upliftics-post .upl-meta-stack .elementor-post-info__item-prefix {
  color: #e6e6e6;
  margin-right: 4px;
}

/* Links in meta */
.upliftics-post .upl-meta-stack a {
  color: #c1c1c1 !important;
  text-decoration: none !important;
}
.upliftics-post .upl-meta-stack a:hover {
  color: #ff2a2a !important;
}

/* Remove separators if Elementor injects them */
.upliftics-post .upl-meta-stack .elementor-post-info__separator {
  display: none;
}

/* Meta mobile refinement */
@media (max-width: 767px) {
  .upliftics-post .upl-meta-stack .elementor-post-info {
    font-size: 0.9rem;
    opacity: 0.85;
  }
}

/* CB posts: center meta */
.cb-post .upl-meta-stack .elementor-post-info {
  align-items: center;
  text-align: center;
}


/************************************************************
 * 7) POST CONTENT (TYPO + ELEMENTS)
 ************************************************************/

/* Featured image */
.upliftics-post .elementor-widget-theme-post-featured-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 30px 0 40px;
}

/* Content typography */
.upliftics-post .elementor-widget-theme-post-content {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #e6e6e6;
}

.upliftics-post .elementor-widget-theme-post-content p {
  margin-bottom: 1.1em;
}

/* Links inside content */
.upliftics-post .elementor-widget-theme-post-content a {
  color: #c7a56e;
  text-decoration: none;
  border-bottom: 1px solid rgba(199, 165, 110, 0.4);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.upliftics-post .elementor-widget-theme-post-content a:hover {
  color: #ff2a2a;
  border-color: rgba(255, 42, 42, 0.7);
}

/* Headings in content */
.upliftics-post .elementor-widget-theme-post-content h2,
.upliftics-post .elementor-widget-theme-post-content h3,
.upliftics-post .elementor-widget-theme-post-content h4 {
  color: #e6e6e6;
  margin: 2.2em 0 0.8em;
  font-weight: 600;
}
.upliftics-post .elementor-widget-theme-post-content h2 { font-size: 2rem; }
.upliftics-post .elementor-widget-theme-post-content h3 { font-size: 1.5rem; }
.upliftics-post .elementor-widget-theme-post-content h4 { font-size: 1.25rem; }

/* Lists */
.upliftics-post .elementor-widget-theme-post-content ul,
.upliftics-post .elementor-widget-theme-post-content ol {
  margin-left: 1.4em;
  margin-bottom: 1.1em;
}
.upliftics-post .elementor-widget-theme-post-content li {
  margin-bottom: 0.4em;
}

/* Blockquotes */
.upliftics-post .elementor-widget-theme-post-content blockquote {
  border-left: 2px solid #c7a56e;
  padding-left: 18px;
  margin: 1.8em 0;
  font-style: italic;
  opacity: 0.9;
}

/* Horizontal rule */
.upliftics-post .elementor-widget-theme-post-content hr {
  border: none;
  border-top: 1px solid #2e2e2e;
  margin: 2.5em 0;
}


/************************************************************
 * 8) POST NAVIGATION (PREV/NEXT)
 ************************************************************/

.upliftics-post .upl-nav .elementor-post-navigation__link,
.upliftics-post .upl-nav a {
  color: #c1c1c1 !important;
  text-decoration: none !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.9rem;
  letter-spacing: 0.03rem;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.upliftics-post .upl-nav .elementor-post-navigation__link:hover,
.upliftics-post .upl-nav a:hover {
  color: #ff2a2a !important;
  text-shadow: 0 0 10px rgba(255, 42, 42, 0.6);
}

/* Keep arrows consistent */
.upliftics-post .upl-nav .elementor-post-navigation__arrow {
  color: #c1c1c1 !important;
}
.upliftics-post .upl-nav .elementor-post-navigation__arrow:hover {
  color: #ff2a2a !important;
}


/************************************************************
 * 9) POST END (OS-STYLE FOOTER EXPANSION INSIDE POST)
 ************************************************************/

.upliftics-post .post-end {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  letter-spacing: 0.08rem;

  opacity: 0.5;
  margin-top: 60px;
  text-align: center;
  color: #e6e6e6;
}

.upliftics-post .post-end-line {
  margin: 2px 0;
}

/* CB posts: slightly stronger */
.cb-post .post-end {
  opacity: 0.7;
}


/************************************************************
 * 10) CHASING BUTTERFLIES — POST VARIANT (JOURNAL MODE)
 * NOTE: Kept minimal. Removed duplicated title sizing blocks.
 ************************************************************/

.cb-post .elementor-widget-theme-post-content {
  line-height: 1.8;
  opacity: 0.95;
}

/* CB post title slightly smaller / intimate (overrides universal title) */
.cb-post .elementor-widget-theme-post-title .elementor-heading-title {
  font-size: 2.6rem;
  line-height: 1.15;
  letter-spacing: 0.06rem;
  opacity: 0.96;
}

@media (max-width: 1024px) {
  .cb-post .elementor-widget-theme-post-title .elementor-heading-title { font-size: 2.1rem; }
}
@media (max-width: 767px) {
  .cb-post .elementor-widget-theme-post-title .elementor-heading-title { font-size: 1.7rem; }
}

/* Optional subtle glow behind the title */
.cb-post .elementor-widget-theme-post-title {
  position: relative;
}
.cb-post .elementor-widget-theme-post-title .elementor-heading-title::before {
  content: "";
  position: absolute;
  inset: -20px -40px;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.06), transparent 65%);
  z-index: -1;
}


/************************************************************
 * 11) CHASING BUTTERFLIES — PAGE HEADER BLOCK (CB LANDING)
 * Used on the /chasing-butterflies/ landing page header section.
 ************************************************************/

.cb-header {
  text-align: center;
  margin-bottom: 3rem;
}

.cb-header .cb-logo img {
  max-width: 90px;
  height: auto;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.cb-header .cb-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0;
}

.cb-header .cb-subtitle {
  margin-top: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: lowercase;
  color: #c1c1c1;
  opacity: 0.85;
}

/* Tint only the symbols in the subtitle via <span class="cb-syntax">::</span> */
.cb-syntax {
  color: #c7a56e;
  opacity: 0.6;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.cb-header .cb-intro {
  margin-top: 0.5rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #9a9a9a;
  opacity: 0.8;
  font-style: italic;
}

/* Mobile tightening */
@media (max-width: 768px) {
  .cb-header { margin-bottom: 2rem; }
  .cb-header .cb-logo img { max-width: 70px; margin-bottom: 0.6rem; }
  .cb-header .cb-subtitle { margin-top: 0.4rem; font-size: 0.8rem; }
  .cb-header .cb-intro { margin-top: 0.6rem; font-size: 0.9rem; }
}


/************************************************************
 * 12) CHASING BUTTERFLIES — LOOP TEMPLATES
 * These stop blue links + unify meta appearance on CB landing.
 ************************************************************/

/* Entries list spacing */
.cb-entries .elementor-posts-container {
  row-gap: 24px;
}

/* Signal Boost loop (if still used) */
.cb-loop a,
.cb-loop a:visited,
.cb-loop a:active {
  color: #c1c1c1 !important;
  text-decoration: none !important;
}
.cb-loop a:hover {
  color: #ff2a2a !important;
}

.cb-loop .elementor-post__meta-data,
.cb-loop .elementor-post__meta-data span {
  color: #c1c1c1 !important;
  opacity: 0.7;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
}

/* Journal Log loop */
.cb-log a,
.cb-log a:visited,
.cb-log a:active {
  color: #c1c1c1 !important;
  text-decoration: none !important;
}
.cb-log a:hover {
  color: #ff2a2a !important;
}

.cb-log .elementor-post__meta-data,
.cb-log .elementor-post__meta-data span {
  color: #c1c1c1 !important;
  opacity: 0.7;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
}


/************************************************************
 * 13) ELEMENTOR FOOTER (IF BUILT IN ELEMENTOR)
 * NOTE: Layout/flex rules should live in Additional CSS.
 * This section only covers visual styling for the Elementor footer block.
 ************************************************************/

.upl-footer {
  background: #0c0c0c;
  border-top: 1px solid #1a1a1a;
}

.upl-footer .upl-footer-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  letter-spacing: 0.6px;
  color: #c1c1c1;
  opacity: 0.85;
  margin-bottom: 10px;
}

/* Subtle red glow on hover */
.upl-footer:hover {
  border-top-color: rgba(255, 42, 42, 0.65);
  box-shadow: 0 -12px 40px rgba(255, 42, 42, 0.06);
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

/* Footer link line */
.upl-footer .upl-footer-links {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.4px;
  color: #c1c1c1;
  opacity: 0.75;
}

.upl-footer .upl-footer-links a,
.upl-footer .upl-footer-links a:visited {
  color: #c1c1c1 !important;
  text-decoration: none !important;
}

.upl-footer .upl-footer-links a:hover {
  color: #ff2a2a !important;
}

/* Right mark */
.upl-footer .upl-footer-mark {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.6px;
  color: #e6e6e6;
  opacity: 0.75;
  text-align: right;
}
   
/* ==========================================


/* ===== MOVED FROM Customizer Additional CSS (Footer Elementor widgets) ===== */
* 4) FOOTER — LINK COLORS (NO BLUE) + HOVERS
 *
 * INTENT
 * - Footer menu links: static gray, hover red
 * - Social icons: static gray, hover gold
 *
 * NOTES
 * - We avoid global "footer a" to prevent unintended overrides.
 ************************************************************/

/* ---- 4A) Footer NAV (Elementor Nav Menu) ---- */
/* Static */
footer .upl-footer-nav a,
footer .upl-footer-nav a:visited,
footer .upl-footer-nav .elementor-item {
  color: #c1c1c1 !important;
  text-decoration: none !important;
}

/* Hover = RED */
footer .upl-footer-nav a:hover,
footer .upl-footer-nav a:focus,
footer .upl-footer-nav .elementor-item:hover,
footer .upl-footer-nav .elementor-item:focus {
  color: #ff2a2a !important;
}


/* ---- 4B) Footer SOCIALS (Elementor Social Icons widget) ---- */
/* Static = same as footer menu text */
footer .elementor-social-icons-wrapper a.elementor-social-icon i,
footer .elementor-social-icons-wrapper a.elementor-social-icon svg {
  color: #c1c1c1 !important;
  fill:  #c1c1c1 !important;
  transition: color 0.2s ease, fill 0.2s ease, transform 0.2s ease;
}

/* Hover = GOLD */
footer .elementor-social-icons-wrapper a.elementor-social-icon:hover i,
footer .elementor-social-icons-wrapper a.elementor-social-icon:hover svg,
footer .elementor-social-icons-wrapper a.elementor-social-icon:focus i,
footer .elementor-social-icons-wrapper a.elementor-social-icon:focus svg {
  color: #c7a56e !important;
  fill:  #c7a56e !important;
  transform: translateY(-1px);
}

/* Optional: remove default icon background pills */
footer .elementor-social-icon {
  background: none !important;
}
