/*
 * WP Moz — page-home.css
 * ─────────────────────────────────────────────────────────────
 * Page-specific styles auto-enqueued by functions.php when the
 * corresponding page template is active.
 *
 * HOW TO USE:
 *   Copy the <style> block from your original HTML file
 *   (the section AFTER the shared styles) and paste it here.
 *
 *   Example — from your contact.html:
 *   The CSS inside the <style> tag specific to the contact page
 *   goes here. The global styles (navbar, footer, buttons, tokens)
 *   are already loaded by main.css — do NOT duplicate them.
 * ─────────────────────────────────────────────────────────────
 */

/*
 * ── PASTE PAGE-SPECIFIC CSS FROM YOUR HTML FILE BELOW ──
 */

/*
 * WP Moz — page-home.css
 * ─────────────────────────────────────────────────────────────
 * Page-specific styles for template-home.php.
 * Auto-enqueued by functions.php (glob pattern assets/css/page-*.css).
 *
 * Prefix convention:
 *   wpmoz-htpl-*  →  HTML/CSS Templates showcase section
 *   All other selectors use IDs/classes already defined in
 *   the existing <style> block inside template-home.php.
 * ─────────────────────────────────────────────────────────────
 */

/* ══════════════════════════════════════════════════════════════
   1. HERO — "Browse Templates" ghost button tweak
══════════════════════════════════════════════════════════════ */

/* Give the second hero CTA a subtle purple tint so it reads
   as a "templates" call rather than another plugin link        */
#hero .hero-btns .btn-ghost {
  border-color: rgba(139, 92, 246, 0.35);
  color: var(--text2);
}
#hero .hero-btns .btn-ghost:hover {
  border-color: var(--purple, #8b5cf6);
  color: var(--purple, #8b5cf6);
  background: rgba(139, 92, 246, 0.06);
}

/* ══════════════════════════════════════════════════════════════
   2. HTML/CSS TEMPLATES SHOWCASE SECTION
   All classes prefixed  wpmoz-htpl-  to avoid collisions.
══════════════════════════════════════════════════════════════ */

/* Section wrapper */
.wpmoz-htpl-section {
  background: var(--bg);
}

/* Section label override — purple accent */
.wpmoz-htpl-label {
  color: var(--purple, #8b5cf6) !important;
  background: rgba(139, 92, 246, 0.08) !important;
  border-color: rgba(139, 92, 246, 0.2) !important;
}

/* Title highlight span */
.wpmoz-htpl-hl {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Category filter pills ── */
.wpmoz-htpl-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0 48px;
}
.wpmoz-htpl-cat {
  padding: 7px 18px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  cursor: pointer;
  transition: var(--transition, 0.2s);
  user-select: none;
}
.wpmoz-htpl-cat:hover {
  border-color: rgba(139, 92, 246, 0.4);
  color: var(--purple, #8b5cf6);
}
.wpmoz-htpl-cat--active {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.28);
}

/* ── Cards grid ── */
.wpmoz-htpl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ── Individual card ── */
.wpmoz-htpl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition, 0.2s);
}
.wpmoz-htpl-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(139, 92, 246, 0.22);
}

/* ── Card thumbnail ── */
.wpmoz-htpl-thumb {
  height: 180px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Colour variants */
.wpmoz-htpl-thumb--purple {
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
}
.wpmoz-htpl-thumb--blue {
  background: linear-gradient(135deg, #eff6ff, #bfdbfe);
}
.wpmoz-htpl-thumb--teal {
  background: linear-gradient(135deg, #f0fdfa, #99f6e4);
}

[data-dark] .wpmoz-htpl-thumb--purple {
  background: linear-gradient(135deg, #160d2c, #1e1040);
}
[data-dark] .wpmoz-htpl-thumb--blue {
  background: linear-gradient(135deg, #0a1628, #0f1f3d);
}
[data-dark] .wpmoz-htpl-thumb--teal {
  background: linear-gradient(135deg, #042f2e, #0d3d3b);
}

/* Actual screenshot when set */
.wpmoz-htpl-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* ── Browser chrome mockup ── */
.wpmoz-htpl-browser {
  width: calc(100% - 24px);
  background: var(--surface);
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  position: relative;
  z-index: 1;
}
.wpmoz-htpl-browser-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}
.wpmoz-htpl-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.wpmoz-htpl-dot--r {
  background: #ff5f57;
}
.wpmoz-htpl-dot--y {
  background: #febc2e;
}
.wpmoz-htpl-dot--g {
  background: #28c840;
}
.wpmoz-htpl-url {
  flex: 1;
  margin-left: 8px;
  background: var(--border);
  border-radius: 100px;
  padding: 3px 10px;
  font-size: 10px;
  color: var(--text3);
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hero strip inside browser */
.wpmoz-htpl-hero-strip {
  height: 52px;
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.28),
    rgba(59, 130, 246, 0.22)
  );
}
[data-dark] .wpmoz-htpl-hero-strip {
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.4),
    rgba(59, 130, 246, 0.3)
  );
}

/* Skeleton lines */
.wpmoz-htpl-skeleton {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  background: var(--surface);
}
.wpmoz-htpl-skeleton span {
  display: block;
  height: 6px;
  border-radius: 100px;
  background: var(--border);
}
.wpmoz-htpl-skel-btn {
  width: 60px !important;
  height: 18px !important;
  border-radius: 100px !important;
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.4),
    rgba(99, 102, 241, 0.35)
  ) !important;
  margin-top: 4px;
}

/* ── Badge overlays on thumb ── */
.wpmoz-htpl-price-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--purple, #8b5cf6);
  box-shadow: var(--shadow);
  z-index: 2;
}
.wpmoz-htpl-cat-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  z-index: 2;
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}
.wpmoz-htpl-sale-tag {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: linear-gradient(135deg, var(--green, #22c55e), #16a34a);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  z-index: 2;
  font-family: var(--font-mono);
}

/* ── Card body ── */
.wpmoz-htpl-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.wpmoz-htpl-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.wpmoz-htpl-emoji {
  font-size: 22px;
  line-height: 1;
}
.wpmoz-htpl-rating {
  font-size: 12px;
  font-weight: 600;
  color: #f59e0b;
}
.wpmoz-htpl-rating span {
  color: var(--text3);
  font-weight: 400;
  margin-left: 2px;
}
.wpmoz-htpl-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.wpmoz-htpl-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 14px;
}

/* ── Compatibility badges ── */
.wpmoz-htpl-compat {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}
.wpmoz-htpl-badge {
  padding: 3px 9px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 600;
  font-family: var(--font-mono);
  background: var(--bg2);
  color: var(--text2);
  border: 1px solid var(--border);
}
.wpmoz-htpl-badge--wp {
  background: rgba(139, 92, 246, 0.08);
  color: var(--purple, #8b5cf6);
  border-color: rgba(139, 92, 246, 0.25);
}

/* ── Card footer buttons ── */
.wpmoz-htpl-footer {
  display: flex;
  gap: 10px;
}

/* Small purple primary button */
.btn-purple-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 10px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #fff;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition, 0.2s);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.28);
}
.btn-purple-sm:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(139, 92, 246, 0.38);
  filter: brightness(1.06);
}

/* Small ghost button */
.btn-sm {
  padding: 10px 14px !important;
  font-size: 13px !important;
}

/* ── WordPress compatibility callout bar ── */
.wpmoz-htpl-wp-note {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.06),
    rgba(59, 130, 246, 0.04)
  );
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: var(--radius, 12px);
  padding: 24px 28px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.wpmoz-htpl-wp-icon {
  font-size: 32px;
  flex-shrink: 0;
}
.wpmoz-htpl-wp-note > div {
  flex: 1;
  min-width: 200px;
}
.wpmoz-htpl-wp-note strong {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}
.wpmoz-htpl-wp-note p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
  margin: 0;
}

/* ══════════════════════════════════════════════════════════════
   3. RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .wpmoz-htpl-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .wpmoz-htpl-grid {
    grid-template-columns: 1fr;
  }
  .wpmoz-htpl-wp-note {
    flex-direction: column;
    text-align: center;
  }
  .wpmoz-htpl-cats {
    justify-content: center;
  }
}
@media (max-width: 480px) {
  .wpmoz-htpl-footer {
    flex-direction: column;
  }
  .btn-purple-sm {
    width: 100%;
  }
}
