/*
Theme Name:   Hello Elementor Child — LibrePower
Theme URI:    https://librepower.org
Description:  LibrePower dark theme with Tailwind CSS, Alexandria + Work Sans, gold/teal palette.
Author:       LibrePower
Author URI:   https://librepower.org
Template:     hello-elementor
Version:      1.0.0
License:      GNU General Public License v2 or later
Text Domain:  hello-elementor-child-librepower
*/

/* ═══════════════════════════════════════════════
   LIBREPOWER — Base overrides & custom utilities
   ═══════════════════════════════════════════════ */

:root {
  --lp-gold: #E9CB8E;
  --lp-gold-dim: rgba(233, 203, 142, 0.10);
  --lp-tq: #68AEC9;
  --lp-tq-dim: rgba(104, 174, 201, 0.08);
  --lp-bg: #0a0a0b;
  --lp-surface: #0d1017;
  --lp-surface-2: #12151e;
  --lp-border: rgba(255, 255, 255, 0.07);
  --lp-muted: #999;
  --lp-dim: #777;
  --lp-text: #e8e8e8;
}

/* ── Global ── */
body {
  background: var(--lp-bg);
  color: var(--lp-text);
  font-family: 'Work Sans', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Alexandria', sans-serif;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #f0f0f0;
}

a {
  color: var(--lp-tq);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: var(--lp-gold);
}

/* ── Grain overlay ── */
@keyframes lp-grain {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-3%, -8%); }
  60% { transform: translate(8%, 5%); }
  80% { transform: translate(-2%, 6%); }
}
.lp-grain::after {
  content: '';
  position: absolute;
  inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 1;
  animation: lp-grain 6s steps(8) infinite;
}

/* ── Shimmer text ── */
@keyframes lp-sh {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.lp-shim {
  background: linear-gradient(110deg, #E9CB8E 0%, #f5e6c3 20%, #E9CB8E 40%, #c9a44e 60%, #E9CB8E 80%, #f5e6c3 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: lp-sh 5s linear infinite;
}

/* ── Blog card hover ── */
.lp-blog-card {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.5s ease,
              border-color 0.4s ease;
}
.lp-blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  border-color: rgba(104, 174, 201, 0.25);
}

/* ── Featured image aspect ── */
.lp-blog-card .lp-thumb {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
}

/* ── Scroll reveal ── */
.lp-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.lp-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Single post content ── */
.lp-post-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.78);
}
.lp-post-content h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 2.5rem 0 1rem;
  color: #f0f0f0;
}
.lp-post-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: #e0e0e0;
}
.lp-post-content p {
  margin-bottom: 1.25rem;
}
.lp-post-content ul,
.lp-post-content ol {
  margin: 1rem 0 1.25rem 1.5rem;
}
.lp-post-content li {
  margin-bottom: 0.4rem;
}
.lp-post-content blockquote {
  border-left: 3px solid var(--lp-gold);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(233, 203, 142, 0.04);
  border-radius: 0 12px 12px 0;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}
.lp-post-content code {
  background: rgba(104, 174, 201, 0.1);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.9em;
  color: var(--lp-tq);
}
.lp-post-content pre {
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: 12px;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}
.lp-post-content pre code {
  background: none;
  padding: 0;
  color: var(--lp-text);
}
.lp-post-content img {
  border-radius: 12px;
  margin: 1.5rem 0;
}
.lp-post-content a {
  color: var(--lp-tq);
  border-bottom: 1px solid rgba(104, 174, 201, 0.3);
}
.lp-post-content a:hover {
  color: var(--lp-gold);
  border-bottom-color: rgba(233, 203, 142, 0.3);
}

/* ── Pagination ── */
.lp-pagination a,
.lp-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  font-family: 'Alexandria', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  border: 1px solid var(--lp-border);
  transition: all 0.3s ease;
}
.lp-pagination a:hover {
  background: rgba(104, 174, 201, 0.1);
  border-color: rgba(104, 174, 201, 0.3);
  color: var(--lp-tq);
}
.lp-pagination .current {
  background: var(--lp-tq);
  color: #0a0a0b;
  border-color: var(--lp-tq);
}

/* ── Hide default WP stuff ── */
.elementor-location-header,
.elementor-location-footer {
  /* Keep if you use Elementor header/footer, remove if you want custom */
}

/* ── Tag/category pills ── */
.lp-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 9999px;
  font-family: 'Alexandria', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--lp-border);
  color: var(--lp-dim);
  transition: all 0.3s ease;
}
.lp-tag:hover {
  border-color: rgba(104, 174, 201, 0.3);
  color: var(--lp-tq);
}
