/* Advertising Center pages and the ads themselves. Builds on style.css,
   design-system.css and marketplace.css. */

/* ---- The advertisements. Always labelled; never dressed as organic. ---- */
.uc-ad { position: relative; display: block; text-decoration: none; color: inherit; }
.uc-ad-label {
  display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: #64748b; background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 5px; padding: 2px 6px;
}
.uc-ad-banner { border: 1.5px solid var(--border, #dce3ea); border-radius: 14px; overflow: hidden; background: #fff; margin: 0 0 18px; }
.uc-ad-banner .uc-ad-media { display: block; width: 100%; height: auto; max-height: 250px; object-fit: cover; background: var(--light-bg, #f4f6f8); }
.uc-ad-banner .uc-ad-body { display: flex; gap: 12px; align-items: center; padding: 10px 14px; flex-wrap: wrap; }
.uc-ad-banner .uc-ad-text { flex: 1; min-width: 180px; }
.uc-ad-headline { font-weight: 800; font-size: 15px; color: var(--navy, #182b49); line-height: 1.3; }
.uc-ad-desc { font-size: 13px; color: var(--text-muted, #687587); line-height: 1.5; margin-top: 2px; }
.uc-ad-cta { font-weight: 800; font-size: 13.5px; color: var(--cyan, #0ca9c7); white-space: nowrap; }
.uc-ad-card { border: 1.5px dashed #cbd5e1; border-radius: 14px; background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.uc-ad-card .uc-ad-media { width: 100%; height: 128px; object-fit: cover; background: var(--light-bg, #f4f6f8); }
.uc-ad-card .uc-ad-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.uc-ad-card .uc-ad-cta { margin-top: auto; padding-top: 6px; }
.uc-ad-row { display: flex; gap: 12px; align-items: center; }
.uc-ad-logo { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: 0 0 44px; background: var(--light-bg, #f4f6f8); }
.uc-ad-strip { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin: 0 0 18px; }
.uc-ad-strip-title { font-size: 13px; font-weight: 800; color: var(--text-muted, #687587); margin: 18px 0 8px; display: flex; gap: 8px; align-items: center; }
[data-ad-slot]:empty { display: none; }
@media (max-width: 640px) { .uc-ad-banner .uc-ad-media { max-height: 150px; } }
html[data-theme="dark"] .uc-ad-banner, html[data-theme="dark"] .uc-ad-card { background: #121a2b; border-color: #263349; }
html[data-theme="dark"] .uc-ad-label { background: #1a2438; border-color: #263349; color: #97a4ba; }

/* ---- Advertise landing page ---- */
.adv-hero { background: var(--navy, #182b49); color: #fff; border-radius: 20px; padding: 34px 26px; margin-bottom: 22px; }
.adv-hero h1 { color: #fff; font-size: clamp(1.7rem, 4.6vw, 2.5rem); font-weight: 800; margin: 0 0 10px; line-height: 1.15; }
.adv-hero p { font-size: 16px; opacity: .88; line-height: 1.6; margin: 0 0 22px; max-width: 620px; }
.adv-hero .adv-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.adv-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 800; font-size: 15.5px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; }
.adv-btn-light { background: #fff; color: var(--navy, #182b49); }
.adv-btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.45); }
.adv-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.adv-step { background: var(--light-bg, #f4f6f8); border-radius: 12px; padding: 14px 16px; font-size: 14px; line-height: 1.55; color: var(--text-dark, #172033); }
.adv-step b { display: block; color: var(--navy, #182b49); margin-bottom: 3px; }
.adv-rate { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.adv-rate-card { border: 1.5px solid var(--border, #dce3ea); border-radius: 14px; padding: 16px; background: #fff; display: flex; flex-direction: column; gap: 6px; }
.adv-rate-card h3 { font-size: 15.5px; font-weight: 800; color: var(--navy, #182b49); margin: 0; }
.adv-rate-card p { font-size: 13px; color: var(--text-muted, #687587); line-height: 1.5; margin: 0; }
.adv-size { font-size: 12px; color: var(--text-muted, #687587); }
.adv-prices { margin-top: auto; padding-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.adv-price { font-size: 12.5px; font-weight: 700; background: #e3f6f9; color: #0a7d92; border-radius: 8px; padding: 4px 9px; }
.adv-policy { white-space: pre-line; font-size: 14px; line-height: 1.7; color: var(--text-dark, #172033); }
.adv-off { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border, #dce3ea); font-size: 14px; }
.adv-off:first-of-type { border-top: 0; }
.adv-off span:last-child { color: #a06a10; font-weight: 700; white-space: nowrap; }

/* ---- Wizard ---- */
.wz-steps { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 18px; scrollbar-width: none; }
.wz-steps::-webkit-scrollbar { display: none; }
.wz-step { flex: 0 0 auto; font-size: 12.5px; font-weight: 700; padding: 7px 12px; border-radius: 999px; background: var(--light-bg, #f4f6f8); color: var(--text-muted, #687587); white-space: nowrap; border: 0; font-family: inherit; }
.wz-step[aria-current="step"] { background: var(--navy, #182b49); color: #fff; }
.wz-step.done { background: #e6f5ef; color: #0f7a5f; cursor: pointer; }
.wz-choice { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.wz-opt { text-align: left; border: 1.5px solid var(--border, #dce3ea); border-radius: 12px; background: #fff; padding: 12px 14px; cursor: pointer; font-family: inherit; color: inherit; }
.wz-opt b { display: block; font-size: 14px; color: var(--navy, #182b49); }
.wz-opt span { font-size: 12.5px; color: var(--text-muted, #687587); line-height: 1.45; display: block; margin-top: 2px; }
.wz-opt[aria-pressed="true"] { border-color: var(--navy, #182b49); background: #f0f6fb; box-shadow: 0 0 0 2px rgba(24,43,73,.12); }
.wz-opt:disabled { opacity: .5; cursor: not-allowed; }
.wz-nav { display: flex; gap: 10px; justify-content: space-between; margin-top: 22px; flex-wrap: wrap; }
.wz-preview { border: 1.5px dashed #cbd5e1; border-radius: 14px; padding: 14px; background: var(--light-bg, #f4f6f8); }
.wz-summary { display: grid; grid-template-columns: minmax(120px, 180px) 1fr; gap: 8px 16px; font-size: 14px; }
.wz-summary dt { color: var(--text-muted, #687587); }
.wz-summary dd { margin: 0; color: var(--text-dark, #172033); word-break: break-word; }
.wz-total { display: flex; justify-content: space-between; font-size: 17px; font-weight: 800; color: var(--navy, #182b49); border-top: 1.5px solid var(--border, #dce3ea); margin-top: 14px; padding-top: 14px; }
.wz-hint { font-size: 12.5px; color: var(--text-muted, #687587); line-height: 1.55; margin-top: 6px; }
.wz-checks { display: flex; gap: 8px 14px; flex-wrap: wrap; }
.wz-checks label { display: inline-flex; gap: 6px; align-items: center; font-size: 13.5px; font-weight: 500; margin: 0; }
.wz-checks input { width: auto; min-height: 0; }

/* ---- Advertiser dashboard ---- */
.ad-camp { border: 1.5px solid var(--border, #dce3ea); border-radius: 14px; background: #fff; padding: 16px; margin-bottom: 12px; }
.ad-camp-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.ad-camp h3 { font-size: 16px; font-weight: 800; color: var(--navy, #182b49); margin: 0 0 2px; }
.ad-pill { font-size: 11.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.ad-s-active { background: #e6f5ef; color: #0f7a5f; }
.ad-s-draft { background: #f1f5f9; color: #475569; }
.ad-s-pending_review { background: #fdf3e0; color: #8a5a0b; }
.ad-s-paused { background: #e3f6f9; color: #0a7d92; }
.ad-s-rejected { background: #fbe8ed; color: #a8243f; }
.ad-s-exhausted, .ad-s-ended { background: #ede9fe; color: #5b21b6; }
.ad-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin: 12px 0; }
.ad-num { background: var(--light-bg, #f4f6f8); border-radius: 10px; padding: 8px 10px; }
.ad-num b { display: block; font-size: 15px; color: var(--navy, #182b49); }
.ad-num span { font-size: 11px; color: var(--text-muted, #687587); }
.ad-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ad-actions button, .ad-actions a { min-height: 36px; padding: 0 13px; border-radius: 8px; border: 1.5px solid var(--border, #dce3ea); background: #fff; font-weight: 700; font-size: 13px; cursor: pointer; font-family: inherit; color: var(--navy, #182b49); text-decoration: none; display: inline-flex; align-items: center; }
.ad-actions button:hover, .ad-actions a:hover { border-color: var(--navy, #182b49); }
.ad-actions .danger { color: #c22b4d; }
.ad-bar { height: 6px; background: var(--light-bg, #f4f6f8); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.ad-bar i { display: block; height: 100%; background: var(--cyan, #0ca9c7); }
.ad-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ad-table th { text-align: left; color: var(--text-muted, #687587); font-weight: 700; padding: 6px 8px 6px 0; border-bottom: 1.5px solid var(--border, #dce3ea); }
.ad-table td { padding: 6px 8px 6px 0; border-bottom: 1px solid var(--border, #dce3ea); }
.ad-note { background: #fdf3e0; color: #8a5a0b; border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.5; margin-top: 10px; }
.ad-note-bad { background: #fbe8ed; color: #a8243f; }
html[data-theme="dark"] .adv-rate-card, html[data-theme="dark"] .wz-opt, html[data-theme="dark"] .ad-camp,
html[data-theme="dark"] .ad-actions button, html[data-theme="dark"] .ad-actions a { background: #121a2b; border-color: #263349; color: #e8edf6; }
html[data-theme="dark"] .adv-step, html[data-theme="dark"] .ad-num, html[data-theme="dark"] .wz-preview, html[data-theme="dark"] .wz-step { background: #1a2438; color: #e8edf6; }
html[data-theme="dark"] .wz-opt[aria-pressed="true"] { background: #1a2b47; border-color: #8fb4e3; }
