/* advertise.css
   Advertise With Us public page styles
   Uses CSS variables defined in variables.css */

/* ── Hero CTA ────────────────────────────────────────────────────────────── */
.adv-hero-cta {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ── Section Title spacing ───────────────────────────────────────────────── */
.adv-section-title {
  margin-bottom: 32px;
}

/* ── Alert wrapper ───────────────────────────────────────────────────────── */
.adv-alert-wrap {
  margin-top: 24px;
}

/* ── Stats Bar ───────────────────────────────────────────────────────────── */
.adv-stats-bar {
  background: var(--bg-section-soft);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 36px 0;
}

.adv-stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

.adv-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.adv-stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.adv-stat-label {
  font-size: 0.8125rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.adv-stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border-subtle);
}

/* ── Stats Blur-Lock (public visitors see blurred numbers; admins always see real
   numbers; a specific advertiser sees real numbers too once they open the per-lead
   unlock link the admin generates from /admin/advertise's Inquiries tab) ──────── */
.adv-stats-wrap {
  position: relative;
}

.adv-stats-blurred {
  filter: blur(7px);
  user-select: none;
  pointer-events: none;
}

.adv-stats-lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.adv-stats-lock svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent-primary);
}

.adv-stats-lock span {
  font-size: 14px;
  font-weight: var(--fw-semibold);
  color: var(--text-main);
  background: var(--color-info-bg);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

.adv-stats-lock-cta {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent-gradient);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  text-decoration: none;
}

/* ── Why Advertise Grid ──────────────────────────────────────────────────── */
.adv-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.adv-why-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: var(--transition-base);
}

.adv-why-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--accent-primary);
}

.adv-why-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.adv-why-card p {
  font-size: 0.875rem;
  color: var(--text-soft);
  line-height: 1.65;
  margin: 0;
}

/* ── Ad Format Section ───────────────────────────────────────────────────── */
.adv-format-section {
  background: var(--bg-section-soft);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.adv-format-intro {
  margin-bottom: 28px;
}

.adv-format-card {
  display: flex;
  gap: 28px;
  background: var(--bg-section);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

.adv-format-card + .adv-format-card {
  margin-top: 24px;
}

.adv-format-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.adv-format-icon svg {
  width: 28px;
  height: 28px;
  stroke: #fff;
}

.adv-format-details h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 8px;
}

.adv-format-details > p {
  font-size: 0.875rem;
  color: var(--text-soft);
  line-height: 1.65;
  margin: 0 0 16px;
}

.adv-format-specs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.adv-format-specs li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-main);
  line-height: 1.5;
}

.adv-format-specs li svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-emerald);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Ad Placement Zones Section ─────────────────────────────────────────── */
.adv-zones-intro {
  margin-bottom: 36px;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

.adv-zones-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.adv-zone-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-base);
}

.adv-zone-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent-primary);
}

/* ── Wireframe Mockup ──────────────────────────────────────────────────── */
.adv-zone-mockup {
  background: var(--bg-section-soft);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 160px;
  position: relative;
  overflow: hidden;
}

/* Nav bar */
.azm-nav {
  height: 10px;
  background: var(--bg-section);
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  flex-shrink: 0;
}

/* Footer bar */
.azm-footer {
  height: 7px;
  background: var(--bg-section);
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  flex-shrink: 0;
}

/* Body area */
.azm-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 0;
}

.azm-body--sidebar {
  flex-direction: row;
  gap: 6px;
}

.azm-article-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.azm-sidebar-col {
  width: 38%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

/* Placeholder content elements */
.azm-heading-block {
  height: 9px;
  background: var(--border-subtle);
  border-radius: 2px;
  width: 55%;
  align-self: center;
}

.azm-text-line {
  height: 5px;
  background: var(--border-subtle);
  border-radius: 2px;
  opacity: 0.7;
}

.azm-text-line--short { width: 65%; }
.azm-text-line--mid   { width: 80%; }

.azm-cards-row {
  display: flex;
  gap: 5px;
  flex: 1;
  min-height: 0;
}

.azm-card-block {
  flex: 1;
  background: var(--border-subtle);
  border-radius: 3px;
  opacity: 0.5;
}

/* ── Ad Zone Highlight ─────────────────────────────────────────────────── */
.azm-ad {
  background: linear-gradient(135deg, rgba(var(--accent-rgb, 99, 102, 241), 0.15), rgba(var(--accent-rgb, 99, 102, 241), 0.08));
  border: 1.5px dashed var(--accent-primary);
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex-shrink: 0;
}

.azm-ad--banner {
  height: 22px;
  width: 100%;
}

.azm-ad--rect {
  flex: 1;
  width: 100%;
}

.azm-ad--inline {
  height: 18px;
  width: 90%;
  align-self: center;
}

.azm-ad-label {
  font-size: 7px;
  font-weight: 700;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
}

.azm-ad-size {
  font-size: 6px;
  color: var(--accent-primary);
  opacity: 0.8;
  line-height: 1;
}

/* Slide-In Banner mockup — unlike the other 3 (embedded inline in content), this one
   floats absolutely over the page, vertically centered, edge-anchored — matching the
   real .ann-banner[data-slide="right"] behavior in announcement-banner.css. */
.azm-body--slidein {
  position: relative;
}

.azm-ad--slidein {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  width: 34%;
  height: 60%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

/* ── Zone Info ─────────────────────────────────────────────────────────── */
.adv-zone-info {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.adv-zone-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.adv-zone-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.adv-zone-size-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--accent-primary);
  background: rgba(var(--accent-rgb, 99, 102, 241), 0.1);
  border: 1px solid rgba(var(--accent-rgb, 99, 102, 241), 0.25);
  border-radius: 20px;
  padding: 2px 8px;
  white-space: nowrap;
}

.adv-zone-desc {
  font-size: 0.8125rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin: 0;
}

.adv-zone-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.adv-zone-page-tag {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-soft);
  background: var(--bg-section-soft);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 2px 7px;
}

/* ── Zones Note ────────────────────────────────────────────────────────── */
.adv-zones-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-soft);
  line-height: 1.6;
  background: var(--bg-section-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-top: 24px;
}

.adv-zones-note svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 2px;
  stroke: var(--text-soft);
}

/* ── Inquiry Form ──────────────────────────────────────────────────────── */
.adv-label-opt {
  font-weight: var(--fw-normal);
  color: var(--text-soft);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .adv-why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .adv-zones-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .adv-zone-mockup {
    height: 140px;
  }
}

@media (max-width: 640px) {
  .adv-stats-row {
    gap: 16px;
  }

  .adv-stat-divider {
    display: none;
  }

  .adv-stat-number {
    font-size: 1.5rem;
  }

  .adv-stat-label {
    font-size: 0.6875rem;
  }

  .adv-why-grid {
    grid-template-columns: 1fr;
  }

  .adv-format-card {
    flex-direction: column;
    gap: 20px;
    padding: 24px;
  }
}
