/*
Theme Name: PlacementDock
Theme URI: https://placementdock.com/
Author: Vladimir Rekowski
Description: A lightweight block theme for the PlacementDock publisher placement marketplace.
Version: 0.2.0
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: placementdock
*/

:root {
  --pd-ink: #111827;
  --pd-muted: #64748b;
  --pd-line: #e5e7eb;
  --pd-panel: #f8fafc;
  --pd-accent: #2563eb;
  --pd-accent-dark: #1d4ed8;
  --pd-green: #0f766e;
  --pd-radius: 18px;
  --pd-shadow: 0 18px 50px rgba(15, 23, 42, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
a { text-underline-offset: .18em; }

.pd-site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(229,231,235,.85);
}
.admin-bar .pd-site-header { top: 32px; }

.pd-header-inner,
.pd-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px;
}

.pd-brand a {
  color: var(--pd-ink);
  text-decoration: none;
  letter-spacing: -.035em;
}

.pd-nav .wp-block-navigation-item__content {
  color: #334155;
  text-decoration: none;
  font-size: 15px;
}
.pd-nav .wp-block-navigation-item__content:hover { color: var(--pd-ink); }

.pd-header-cta .wp-block-button__link,
.pd-primary-button .wp-block-button__link {
  border-radius: 999px;
  background: var(--pd-ink);
  color: white;
  padding: 12px 19px;
  font-weight: 650;
  box-shadow: none;
}
.pd-header-cta .wp-block-button__link:hover,
.pd-primary-button .wp-block-button__link:hover { background: #000; }

.pd-secondary-button .wp-block-button__link {
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: white;
  color: var(--pd-ink);
  padding: 11px 18px;
  font-weight: 650;
}

.pd-hero {
  padding-top: clamp(70px, 10vw, 128px) !important;
  padding-bottom: clamp(68px, 9vw, 112px) !important;
}
.pd-eyebrow {
  display: inline-block;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 650;
  color: #475569;
  background: white;
}
.pd-hero h1 {
  max-width: 900px;
  letter-spacing: -.055em;
  line-height: .98;
  margin-top: 22px;
}
.pd-hero-copy {
  max-width: 700px;
  color: var(--pd-muted);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.6;
}

.pd-badge-row {
  margin-top: 40px;
  gap: 10px;
}
.pd-mini-badge {
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
}

.pd-section {
  padding-top: 86px !important;
  padding-bottom: 86px !important;
}
.pd-section-head { margin-bottom: 32px; }
.pd-section-kicker {
  color: var(--pd-accent);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 750;
}
.pd-section-title { letter-spacing: -.035em; }
.pd-section-copy { color: var(--pd-muted); max-width: 720px; }

.pd-card {
  border: 1px solid var(--pd-line);
  border-radius: var(--pd-radius);
  background: white;
  padding: 28px !important;
  height: 100%;
}
.pd-card h3 { margin-top: 12px; margin-bottom: 10px; }
.pd-card p { color: var(--pd-muted); }
.pd-card-number {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #eff6ff;
  color: var(--pd-accent-dark);
  font-weight: 750;
}

.pd-market-shell {
  border: 1px solid var(--pd-line);
  border-radius: 24px;
  background: white;
  box-shadow: var(--pd-shadow);
  overflow: hidden;
}
.pd-market-toolbar {
  padding: 18px 20px !important;
  background: #fbfdff;
  border-bottom: 1px solid var(--pd-line);
  gap: 8px;
}
.pd-filter-chip {
  border: 1px solid #dbe3ee;
  border-radius: 999px;
  padding: 7px 10px;
  background: white;
  color: #475569;
  font-size: 12px;
  font-weight: 650;
}
.pd-demo-table { margin: 0 !important; }
.pd-demo-table table { margin: 0; border-collapse: collapse; }
.pd-demo-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #64748b;
  background: #f8fafc;
  padding: 14px 18px;
  border-color: var(--pd-line);
}
.pd-demo-table td {
  padding: 17px 18px;
  border-color: var(--pd-line);
  font-size: 14px;
}
.pd-demo-table tr:last-child td { border-bottom: 0; }
.pd-table-note {
  color: #94a3b8;
  font-size: 12px;
  padding: 13px 18px !important;
  border-top: 1px solid var(--pd-line);
  margin: 0 !important;
}

.pd-soft-section {
  background: var(--pd-panel);
}
.pd-agency-box {
  border-radius: 26px;
  background: #0f172a;
  color: white;
  padding: clamp(34px, 5vw, 62px) !important;
}
.pd-agency-box p { color: #cbd5e1; }
.pd-agency-box .pd-secondary-button .wp-block-button__link {
  background: white;
  border-color: white;
}

.pd-site-footer {
  border-top: 1px solid var(--pd-line);
  background: #fff;
}
.pd-footer-inner { padding-top: 44px; padding-bottom: 44px; }
.pd-footer-copy { color: var(--pd-muted); font-size: 14px; max-width: 460px; }
.pd-footer-links a { color: #475569; text-decoration: none; }
.pd-footer-links a:hover { color: var(--pd-ink); }
.pd-footer-meta { color: #94a3b8; font-size: 13px; }

.pd-content-wrap { padding-top: 64px !important; padding-bottom: 80px !important; }
.pd-prose { max-width: 780px; }

@media (max-width: 782px) {
  .admin-bar .pd-site-header { top: 46px; }
  .pd-header-inner { padding: 14px 18px; }
  .pd-nav { display: none !important; }
  .pd-header-cta .wp-block-button__link { padding: 10px 14px; font-size: 13px; }
  .pd-hero { padding-left: 18px !important; padding-right: 18px !important; }
  .pd-section { padding: 64px 18px !important; }
  .pd-demo-table { overflow-x: auto; display: block; }
  .pd-demo-table table { min-width: 720px; }
  .pd-footer-inner { padding-left: 18px; padding-right: 18px; }
}


/* PlacementDock 0.2.0 — product-led hero */
.pd-brand-lockup { gap: 10px; }
.pd-logo-mark {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  padding: 5px;
  border-radius: 9px;
  background: var(--pd-ink);
  text-decoration: none;
  flex: 0 0 auto;
}
.pd-logo-mark span {
  display: block;
  width: 4px;
  border-radius: 3px 3px 1px 1px;
  background: #fff;
}
.pd-logo-mark span:nth-child(1) { height: 8px; opacity: .72; }
.pd-logo-mark span:nth-child(2) { height: 14px; }
.pd-logo-mark span:nth-child(3) { height: 11px; opacity: .86; }

.pd-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 18%, rgba(37,99,235,.08), transparent 29%),
    radial-gradient(circle at 93% 70%, rgba(15,118,110,.055), transparent 28%),
    #fff;
}
.pd-hero:before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  border: 1px solid rgba(37,99,235,.075);
  right: -190px;
  top: -225px;
  pointer-events: none;
}
.pd-hero-grid { gap: clamp(34px, 5vw, 72px); }
.pd-hero-content h1 { max-width: 690px; }
.pd-hero-content .pd-hero-copy { max-width: 650px; }

.pd-product-preview {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-left: auto;
  padding: 0 !important;
  border: 1px solid #dbe3ee;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255,255,255,.97);
  box-shadow: 0 34px 90px rgba(15,23,42,.14), 0 8px 24px rgba(15,23,42,.06);
  transform: perspective(1200px) rotateY(-1.5deg) rotateX(.7deg);
}
.pd-product-preview:after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
  pointer-events: none;
}
.pd-preview-topbar {
  padding: 15px 17px !important;
  border-bottom: 1px solid #edf1f6;
  background: #fbfdff;
}
.pd-preview-brand { gap: 8px; }
.pd-preview-brand p { margin: 0; font-size: 13px; }
.pd-preview-logo {
  width: 23px;
  height: 23px;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  padding: 4px;
  border-radius: 7px;
  background: var(--pd-ink);
}
.pd-preview-logo i { display:block; width:3px; border-radius:2px; background:#fff; }
.pd-preview-logo i:nth-child(1){height:6px;opacity:.7}.pd-preview-logo i:nth-child(2){height:11px}.pd-preview-logo i:nth-child(3){height:8px;opacity:.86}
.pd-live-pill {
  margin: 0 !important;
  padding: 5px 8px;
  border: 1px solid #dfe7ef;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  background: #fff;
}
.pd-live-pill span { display:inline-block; width:6px; height:6px; border-radius:50%; background:#22c55e; margin-right:5px; }
.pd-preview-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 15px 17px 11px;
  padding: 10px 12px;
  border: 1px solid #dbe3ee;
  border-radius: 11px;
  color: #94a3b8;
  background: #fff;
  font-size: 11px;
  box-shadow: 0 1px 2px rgba(15,23,42,.02);
}
.pd-preview-search span:nth-child(2) { flex:1; }
.pd-search-icon { font-size:17px; line-height:1; color:#64748b; transform: rotate(-20deg); }
.pd-preview-search kbd {
  border: 1px solid #e2e8f0;
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 2px 5px;
  background: #f8fafc;
  color: #94a3b8;
  font-family: inherit;
  font-size: 9px;
}
.pd-preview-filters {
  padding: 0 17px 12px !important;
  gap: 6px;
}
.pd-preview-filters p {
  margin: 0 !important;
  padding: 5px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  color: #64748b;
  background: #f8fafc;
  font-size: 9px;
  font-weight: 650;
}
.pd-preview-table-wrap { overflow-x:auto; border-top:1px solid #edf1f6; }
.pd-preview-table { width:100%; min-width: 460px; border-collapse: collapse; font-size: 10px; }
.pd-preview-table th {
  padding: 8px 10px;
  background:#f8fafc;
  color:#94a3b8;
  text-align:left;
  text-transform:uppercase;
  letter-spacing:.045em;
  font-size:8px;
  border-bottom:1px solid #edf1f6;
}
.pd-preview-table td { padding: 10px; border-bottom:1px solid #f0f3f7; color:#475569; vertical-align:middle; white-space:nowrap; }
.pd-preview-table td:first-child { min-width: 138px; }
.pd-preview-table td strong { color:#172033; font-size:10px; }
.pd-preview-table td:first-child strong { display:block; margin-left:25px; margin-top:-19px; }
.pd-preview-table td:first-child small { display:block; color:#94a3b8; margin-left:25px; margin-top:1px; font-size:8px; }
.pd-site-dot {
  width:19px; height:19px; display:inline-flex; align-items:center; justify-content:center;
  border-radius:6px; background:#dcfce7; color:#15803d; font-size:8px; font-weight:800;
}
.pd-site-dot-blue{background:#dbeafe;color:#1d4ed8}.pd-site-dot-purple{background:#ede9fe;color:#6d28d9}.pd-site-dot-amber{background:#fef3c7;color:#b45309}
.pd-type-pill { display:inline-block; padding:3px 5px; border-radius:999px; background:#eff6ff; color:#1d4ed8; font-size:8px; font-weight:700; }
.pd-type-pill-alt { background:#ecfdf5; color:#047857; }
.pd-preview-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 13px; background:#fbfdff; color:#94a3b8; font-size:9px; }
.pd-preview-footer strong { color:#2563eb; }

.pd-trust-strip { border-top:1px solid #edf1f6; border-bottom:1px solid #edf1f6; background:#fbfdff; }
.pd-trust-inner { padding: 22px 24px !important; gap: 24px; }
.pd-trust-inner p { margin:0 !important; min-width: 170px; }
.pd-trust-inner strong { display:block; color:#172033; font-size:13px; }
.pd-trust-inner span { display:block; color:#94a3b8; font-size:11px; margin-top:2px; }

.pd-market-search-row { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 20px 0; }
.pd-market-search { flex:1; border:1px solid #dbe3ee; border-radius:11px; padding:10px 12px; color:#94a3b8; font-size:13px; background:#fff; }
.pd-market-search span { margin-right:6px; color:#64748b; }
.pd-market-result-count { color:#94a3b8; font-size:12px; white-space:nowrap; }
.pd-filter-chip-active { background:#111827; border-color:#111827; color:#fff; }

@media (max-width: 960px) {
  .pd-hero-grid { flex-wrap: wrap !important; }
  .pd-hero-content, .pd-hero-product-column { flex-basis: 100% !important; }
  .pd-product-preview { margin: 20px auto 0; max-width: 680px; transform:none; }
  .pd-trust-inner { justify-content:flex-start !important; }
}

@media (max-width: 600px) {
  .pd-hero-grid { gap: 32px; }
  .pd-product-preview { border-radius:18px; }
  .pd-preview-table { min-width: 430px; }
  .pd-market-search-row { flex-direction:column; align-items:stretch; }
  .pd-market-result-count { text-align:right; }
  .pd-trust-inner { gap: 18px; }
  .pd-trust-inner p { flex-basis: calc(50% - 12px); min-width: 0; }
  .pd-brand-lockup { gap: 7px; }
  .pd-logo-mark { width:25px; height:25px; border-radius:8px; }
}
