/*
Theme Name: Pulse of Fame Child
Theme URI: https://pulseoffame.com/
Description: Child theme for Pulse of Fame (Hello Elementor parent) — SEO deduplication, editorial card freshness metadata, accessible black-and-gold tokens, and mobile overlay harmony.
Author: Pulse of Fame Editorial Tech
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/

/* =========================================================
   1. HOMEPAGE & LOOP CARD FRESHNESS META (Author + Date)
   ========================================================= */
.pof-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 0 0 8px 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #545454;
}

.pof-card-meta .pof-card-author {
  color: #755800; /* 5.35:1 WCAG AA contrast on #FFFFFF */
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(117, 88, 0, 0.35);
  border-radius: 3px;
  padding: 2px 7px;
}

.pof-card-meta .pof-card-sep {
  color: #8a8270;
}

.pof-card-meta time {
  color: #545454;
  font-weight: 600;
}

html[data-pof-theme="dark"] .pof-card-meta,
html[data-pof-theme="dark"] .pof-card-meta time {
  color: #C7C2B8 !important;
}

html[data-pof-theme="dark"] .pof-card-meta .pof-card-author {
  color: #E6C75A !important; /* >10:1 contrast on #222222 */
  background: rgba(212, 175, 55, 0.14);
  border-color: rgba(212, 175, 55, 0.45);
}

/* Fix negative mobile top margin on Loop 2043 title so meta + image never collide */
@media (max-width: 767px) {
  .elementor-2043 .elementor-element-697e9de {
    margin-top: 0 !important;
  }
}

/* =========================================================
   2. MOBILE OVERLAY HARMONY (Prevent Floating Widget Overlap)
   ========================================================= */
@media (max-width: 767px) {
  /* Give bottom of page breathing room above floating controls */
  body {
    padding-bottom: 72px;
  }

  /* Keep Back-to-Top compact in bottom-right corner above safe area */
  #pof-back-to-top {
    left: auto !important;
    right: 14px !important;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
    width: 42px !important;
    height: 42px !important;
    z-index: 890 !important;
  }

  /* Keep GSpeech inline block inside content flow without floating overlap */
  .gspeech_wrap,
  .ssblock,
  [class*="gspeech"] {
    position: relative !important;
    max-width: 100% !important;
    z-index: 10 !important;
  }
}
