/* TryATool — AI Prompts module */

.tat-prompts-directory,
.tat-prompt-single {
  --tat-prompt-grad: linear-gradient(135deg, #7c3aed 0%, #db2777 55%, #f59e0b 100%);
  color: var(--tat-ink, #0f172a);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.tat-prompts-directory {
  max-width: min(100%, 1280px);
  margin: 0 auto;
  padding: 8px 16px 48px;
}

.tat-prompts-hero {
  padding: 28px 0 20px;
  margin-bottom: 8px;
}

.tat-prompts-eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--tat-purple, #7c3aed);
  margin: 0 0 8px;
}

.tat-prompts-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  line-height: 1.15;
}

.tat-prompts-lead {
  color: var(--tat-muted, #64748b);
  max-width: 520px;
  margin: 0 0 16px;
  font-size: 1.02rem;
}

.tat-prompts-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tat-prompt-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .tat-prompt-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .tat-prompt-grid { grid-template-columns: repeat(3, 1fr); }
}

.tat-prompt-card {
  position: relative;
  background: var(--tat-card, #fff);
  border: 1px solid var(--tat-line, #e2e8f0);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--tat-shadow, 0 8px 24px rgba(15,23,42,.05));
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.tat-prompt-card:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: var(--tat-shadow-hover, 0 16px 40px rgba(124,58,237,.12));
}
.tat-prompt-card.is-featured {
  border-color: rgba(124, 58, 237, 0.4);
  background:
    linear-gradient(var(--tat-card, #fff), var(--tat-card, #fff)) padding-box,
    var(--tat-prompt-grad) border-box;
  border: 1px solid transparent;
}

.tat-prompt-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--tat-purple-soft, #f5f3ff);
  color: var(--tat-purple, #7c3aed);
  padding: 3px 8px;
  border-radius: 999px;
}

.tat-prompt-card-tags,
.tat-prompt-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tat-prompt-tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--tat-soft, #f8fafc);
  color: var(--tat-muted, #64748b);
  text-decoration: none;
  border: 1px solid var(--tat-line, #e2e8f0);
}
.tat-prompt-tag.is-model {
  background: #ede9fe;
  color: #5b21b6;
  border-color: #ddd6fe;
}
html[data-tat-theme="dark"] .tat-prompt-tag.is-model {
  background: rgba(124, 58, 237, 0.25);
  color: #ddd6fe;
  border-color: rgba(167, 139, 250, 0.3);
}

.tat-prompt-card-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.tat-prompt-card-title a {
  color: inherit;
  text-decoration: none;
}
.tat-prompt-card-title a:hover {
  color: var(--tat-purple, #7c3aed);
}

.tat-prompt-card-excerpt {
  font-size: 13px;
  color: var(--tat-muted, #64748b);
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tat-prompt-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.tat-prompt-card-actions .tat-button {
  flex: 1;
  justify-content: center;
  font-size: 13px;
  padding: 8px 10px;
}

/* Single */
.tat-prompt-single {
  max-width: min(100%, 860px);
  margin: 0 auto;
  padding: 8px 16px 56px;
}

.tat-prompt-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: var(--tat-muted, #64748b);
  margin-bottom: 16px;
}
.tat-prompt-breadcrumb a {
  color: inherit;
  text-decoration: none;
}
.tat-prompt-breadcrumb a:hover {
  color: var(--tat-purple, #7c3aed);
}

.tat-prompt-title {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 12px 0 10px;
}

.tat-prompt-lead {
  color: var(--tat-muted, #64748b);
  font-size: 1.05rem;
  margin: 0 0 8px;
}

.tat-prompt-box {
  margin: 24px 0;
  border-radius: 16px;
  border: 1px solid var(--tat-line, #e2e8f0);
  overflow: hidden;
  background: var(--tat-card, #fff);
  box-shadow: var(--tat-shadow, 0 8px 24px rgba(15,23,42,.05));
}

.tat-prompt-box-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--tat-soft, #f8fafc);
  border-bottom: 1px solid var(--tat-line, #e2e8f0);
  font-size: 13px;
  font-weight: 700;
}

.tat-prompt-text {
  margin: 0;
  padding: 16px 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--tat-ink2, #1e293b);
  background: transparent;
  max-height: 420px;
  overflow: auto;
}

.tat-prompt-vars {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px 14px 14px;
  font-size: 12px;
  color: var(--tat-muted, #64748b);
  border-top: 1px solid var(--tat-line, #e2e8f0);
}
.tat-prompt-vars code {
  background: #f5f3ff;
  color: #5b21b6;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
}
html[data-tat-theme="dark"] .tat-prompt-vars code {
  background: rgba(124, 58, 237, 0.25);
  color: #ddd6fe;
}

.tat-prompt-section {
  margin: 32px 0;
}
.tat-prompt-section h2 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.tat-prompt-steps {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  color: var(--tat-ink2, #1e293b);
  font-size: 14px;
}

.tat-prompt-example {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--tat-soft, #f8fafc);
  border: 1px solid var(--tat-line, #e2e8f0);
  font-size: 14px;
  color: var(--tat-ink2, #1e293b);
}

.tat-prompt-tool-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--tat-line, #e2e8f0);
  background: var(--tat-card, #fff);
  text-decoration: none;
  color: inherit;
  transition: .15s;
}
.tat-prompt-tool-card:hover {
  border-color: var(--tat-purple, #7c3aed);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.1);
}
.tat-prompt-tool-card img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}
.tat-prompt-tool-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tat-prompt-tool-meta strong { font-size: 14px; }
.tat-prompt-tool-meta span { font-size: 12px; color: #d97706; font-weight: 600; }
.tat-prompt-tool-meta em {
  font-style: normal;
  font-size: 12px;
  color: var(--tat-muted, #64748b);
}
.tat-prompt-tool-cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--tat-purple, #7c3aed);
  white-space: nowrap;
}

.tat-copy-prompt.is-copied {
  background: #059669 !important;
  border-color: #059669 !important;
  color: #fff !important;
}

.tat-tool-related-prompts {
  margin-top: 40px;
  padding-top: 8px;
}

html[data-tat-theme="dark"] .tat-prompt-card,
html[data-tat-theme="dark"] .tat-prompt-box,
html[data-tat-theme="dark"] .tat-prompt-tool-card {
  background: var(--tat-card, #0f172a);
  border-color: var(--tat-line, #334155);
}
html[data-tat-theme="dark"] .tat-prompt-box-bar {
  background: var(--tat-soft, #1e293b);
}

/* Hide theme duplicate titles on prompt singles */
body.single-tryatool_prompt .entry-header,
body.single-tryatool_prompt h1.entry-title,
body.single-tryatool_prompt .page-title,
body.tat-prompt-view .entry-header,
body.tat-prompt-view h1.entry-title,
body.single-tryatool_prompt .wp-block-post-title {
  display: none !important;
}
.tat-prompt-missing {
  padding: 16px 18px;
  margin: 0;
  color: #b45309;
  font-size: 14px;
}


/* Two-column prompt single */
.tat-prompt-layout {
  max-width: min(100%, 1280px) !important;
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  align-items: start;
  padding-bottom: 64px;
}
@media (min-width: 960px) {
  .tat-prompt-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
}
.tat-prompt-main { min-width: 0; }
.tat-prompt-aside { min-width: 0; }
.tat-prompt-aside-sticky {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 16px;
}
.tat-prompt-submit-card {
  background: var(--tat-card, #fff);
  border: 1px solid var(--tat-line, #e2e8f0);
  border-radius: 18px;
  padding: 20px 18px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
  background-image:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(124, 58, 237, 0.08), transparent);
}
.tat-prompt-submit-eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tat-purple, #7c3aed);
  margin: 0 0 6px;
}
.tat-prompt-submit-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.tat-prompt-submit-lead {
  font-size: 13px;
  color: var(--tat-muted, #64748b);
  margin: 0 0 16px;
}
.tat-submit-prompt-form .tat-sub-field {
  margin: 0 0 12px;
}
.tat-submit-prompt-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 5px;
}
.tat-submit-prompt-form input,
.tat-submit-prompt-form textarea {
  width: 100%;
  padding: 10px 11px;
  border-radius: 10px;
  border: 1px solid var(--tat-line, #e2e8f0);
  font: inherit;
  font-size: 13px;
  background: var(--tat-input-bg, #fff);
  color: var(--tat-ink, #0f172a);
}
.tat-submit-prompt-form input:focus,
.tat-submit-prompt-form textarea:focus {
  outline: none;
  border-color: var(--tat-purple, #7c3aed);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}
.tat-button-block { width: 100%; justify-content: center; }
.tat-prompt-submit-perks {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--tat-muted, #64748b);
}
.tat-prompt-submit-perks li::before {
  content: "✓ ";
  color: #059669;
  font-weight: 700;
}
.tat-prompt-grid-2 {
  grid-template-columns: 1fr !important;
}
@media (min-width: 640px) {
  .tat-prompt-grid-2 { grid-template-columns: repeat(2, 1fr) !important; }
}
.tat-prompt-trust {
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--tat-soft, #f8fafc);
  border: 1px solid var(--tat-line, #e2e8f0);
}
.tat-prompt-trust p { margin: 0; font-size: 14px; color: var(--tat-muted, #64748b); }

html[data-tat-theme="dark"] .tat-prompt-submit-card,
html[data-tat-theme="dark"] .tat-prompt-trust {
  background: var(--tat-card, #0f172a);
  border-color: var(--tat-line, #334155);
}


/* Example result image */
.tat-prompt-result-figure {
  margin: 0 0 16px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--tat-line, #e2e8f0);
  background: var(--tat-soft, #f8fafc);
}
.tat-prompt-result-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  background: #0f172a08;
}
.tat-prompt-result-figure figcaption {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--tat-muted, #64748b);
  border-top: 1px solid var(--tat-line, #e2e8f0);
}
.tat-prompt-mobile-submit {
  display: none;
  margin: 0 0 16px;
}
@media (max-width: 959px) {
  .tat-prompt-mobile-submit { display: block; }
  .tat-prompt-mobile-submit .tat-button { width: 100%; justify-content: center; }
}
.tat-sub-hint {
  display: block;
  font-size: 11px;
  color: var(--tat-muted, #64748b);
  margin-top: 4px;
}

/* AdSense-friendly spacing on prompt pages */
.tat-prompt-single .tat-ad {
  margin: 24px 0;
  padding: 12px 0;
  text-align: center;
  clear: both;
  min-height: 90px;
}
.tat-prompt-single .tat-ad--in_content {
  margin: 32px 0;
  padding: 16px 0;
  border-top: 1px solid var(--tat-line, #e2e8f0);
  border-bottom: 1px solid var(--tat-line, #e2e8f0);
}
.tat-prompt-aside .tat-ad--sidebar {
  margin-top: 8px;
}

/* ========== Archive / Taxonomy polished UI (mobile-first) ========== */
.tat-prompts-archive-main {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.tat-prompts-archive {
  padding-top: 12px;
  padding-bottom: 64px;
}

.tat-prompts-archive .tat-prompts-hero {
  padding: 20px 0 24px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--tat-line, #e2e8f0);
}

.tat-prompts-archive .tat-prompts-title {
  font-size: clamp(1.75rem, 4.5vw, 2.35rem);
}

.tat-prompts-archive .tat-prompts-lead {
  max-width: 640px;
  font-size: 1.05rem;
  line-height: 1.55;
  margin-bottom: 20px;
}

.tat-prompts-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tat-prompts-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tat-filter-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--tat-muted, #64748b);
  margin-right: 4px;
  flex-shrink: 0;
}

.tat-prompt-tag {
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
  cursor: pointer;
}

.tat-prompt-tag:hover {
  border-color: rgba(124, 58, 237, 0.45);
  color: var(--tat-purple, #7c3aed);
  background: var(--tat-purple-soft, #f5f3ff);
  transform: translateY(-1px);
}

.tat-prompt-tag.is-active {
  background: var(--tat-purple, #7c3aed);
  color: #fff;
  border-color: var(--tat-purple, #7c3aed);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

.tat-prompt-tag.is-active:hover {
  background: #6d28d9;
  color: #fff;
  border-color: #6d28d9;
}

html[data-tat-theme="dark"] .tat-prompt-tag.is-active {
  background: #8b5cf6;
  border-color: #8b5cf6;
  color: #fff;
}

/* Card polish */
.tat-prompt-card {
  min-height: 160px;
}

.tat-prompt-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tat-prompt-card-actions .tat-button {
  min-height: 36px;
}

/* Empty state */
.tat-prompts-empty {
  text-align: center;
  padding: 48px 20px;
  background: var(--tat-soft, #f8fafc);
  border-radius: 16px;
  border: 1px dashed var(--tat-line, #e2e8f0);
}

.tat-prompts-empty .tat-muted {
  margin: 0 0 16px;
  font-size: 1.05rem;
}

/* Pagination */
.tat-prompts-pagination,
.tat-prompts-archive .navigation.pagination {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}

.tat-prompts-archive .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.tat-prompts-archive .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--tat-ink, #0f172a);
  background: var(--tat-card, #fff);
  border: 1px solid var(--tat-line, #e2e8f0);
  transition: all .15s ease;
}

.tat-prompts-archive .page-numbers:hover {
  border-color: var(--tat-purple, #7c3aed);
  color: var(--tat-purple, #7c3aed);
  background: var(--tat-purple-soft, #f5f3ff);
}

.tat-prompts-archive .page-numbers.current {
  background: var(--tat-purple, #7c3aed);
  color: #fff;
  border-color: var(--tat-purple, #7c3aed);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

.tat-prompts-archive .page-numbers.dots {
  border: none;
  background: transparent;
  min-width: auto;
}

/* Mobile refinements */
@media (max-width: 559px) {
  .tat-prompts-directory {
    padding-left: 12px;
    padding-right: 12px;
  }

  .tat-prompts-archive .tat-prompts-hero {
    padding-top: 12px;
  }

  .tat-prompts-filter-bar {
    gap: 12px;
  }

  .tat-filter-label {
    width: 100%;
    margin-bottom: 2px;
  }

  .tat-prompt-card {
    padding: 14px;
    border-radius: 14px;
  }

  .tat-prompt-card-actions {
    flex-direction: column;
  }

  .tat-prompt-card-actions .tat-button {
    width: 100%;
  }
}

@media (min-width: 560px) and (max-width: 899px) {
  .tat-prompt-grid {
    gap: 16px;
  }
}

/* Dark mode archive extras */
html[data-tat-theme="dark"] .tat-prompts-archive .tat-prompts-hero {
  border-bottom-color: var(--tat-line, #334155);
}

html[data-tat-theme="dark"] .tat-prompts-empty {
  background: var(--tat-card, #0f172a);
  border-color: var(--tat-line, #334155);
}

html[data-tat-theme="dark"] .tat-prompts-archive .page-numbers {
  background: var(--tat-card, #0f172a);
  border-color: var(--tat-line, #334155);
  color: var(--tat-ink, #f1f5f9);
}

html[data-tat-theme="dark"] .tat-prompts-archive .page-numbers:hover {
  background: rgba(124, 58, 237, 0.2);
  border-color: #a78bfa;
  color: #c4b5fd;
}

html[data-tat-theme="dark"] .tat-prompts-archive .page-numbers.current {
  background: #8b5cf6;
  border-color: #8b5cf6;
  color: #fff;
}

/* Smooth focus for accessibility */
.tat-prompt-tag:focus-visible,
.tat-prompt-card a:focus-visible,
.tat-prompts-archive .page-numbers:focus-visible {
  outline: 2px solid var(--tat-purple, #7c3aed);
  outline-offset: 2px;
}

/* Thin category note */
.tat-prompts-thin-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  font-size: 14px;
  color: #5b21b6;
}
.tat-prompts-thin-note p { margin: 0; }
.tat-prompts-thin-note a {
  font-weight: 600;
  color: #7c3aed;
  text-decoration: none;
}
html[data-tat-theme="dark"] .tat-prompts-thin-note {
  background: rgba(124, 58, 237, 0.15);
  border-color: rgba(167, 139, 250, 0.35);
  color: #ddd6fe;
}

/* Mobile sticky Copy bar */
.tat-sticky-copy {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9990;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 -8px 30px rgba(15, 23, 42, 0.2);
  transform: translateY(110%);
  transition: transform 0.22s ease;
}
.tat-sticky-copy.is-visible {
  transform: translateY(0);
}
.tat-sticky-copy-inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.tat-sticky-copy-label {
  flex: 1;
  min-width: 0;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tat-sticky-copy .tat-button {
  flex-shrink: 0;
  min-height: 42px;
  padding: 10px 16px;
  font-weight: 700;
}
@media (max-width: 900px) {
  .tat-sticky-copy {
    display: block;
  }
  body.tat-sticky-copy-active {
    padding-bottom: 72px;
  }
}

/* ===== Single prompt UX upgrades ===== */
.tat-prompt-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.tat-prompt-hero-actions .tat-button {
  min-height: 42px;
  padding: 10px 16px;
  font-weight: 700;
}

.tat-prompt-box-featured {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--tat-card, #fff), var(--tat-card, #fff)) padding-box,
    linear-gradient(135deg, #7c3aed 0%, #db2777 55%, #f59e0b 100%) border-box;
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.12);
}
.tat-prompt-box-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.tat-prompt-box-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
}
.tat-prompt-box-featured .tat-prompt-box-bar {
  background: linear-gradient(180deg, #faf5ff 0%, #f8fafc 100%);
}
html[data-tat-theme="dark"] .tat-prompt-box-featured .tat-prompt-box-bar {
  background: rgba(124, 58, 237, 0.12);
}
.tat-prompt-box-featured .tat-prompt-text {
  max-height: 480px;
  font-size: 13.75px;
  line-height: 1.6;
}

/* Inline newsletter strip (after how-to) */
.tat-prompt-newsletter-inline {
  margin: 36px 0;
  padding: 22px 22px 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f5f3ff 0%, #fdf4ff 50%, #fff7ed 100%);
  border: 1px solid #e9d5ff;
  display: grid;
  gap: 16px;
}
html[data-tat-theme="dark"] .tat-prompt-newsletter-inline {
  background: linear-gradient(135deg, rgba(124,58,237,.2), rgba(15,23,42,.6));
  border-color: rgba(167, 139, 250, 0.35);
}
.tat-nl-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7c3aed;
  margin-bottom: 6px;
}
.tat-prompt-newsletter-inline h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.tat-prompt-newsletter-inline p {
  margin: 0;
  color: var(--tat-muted, #64748b);
  font-size: 14px;
  line-height: 1.5;
}
.tat-nl-inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}
.tat-nl-inline-form input[type=email] {
  flex: 1;
  min-width: 180px;
  border: 1px solid var(--tat-line, #e2e8f0);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  background: #fff;
  color: var(--tat-ink, #0f172a);
}
.tat-nl-inline-form input[type=email]:focus {
  outline: none;
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}
.tat-nl-inline-form .tat-button {
  min-height: 44px;
  padding: 10px 18px;
  font-weight: 700;
}
.tat-nl-inline-form .tat-form-message {
  width: 100%;
  font-size: 13px;
  margin-top: 4px;
}
.tat-nl-inline-form .tat-form-message.is-success { color: #059669; }
.tat-nl-inline-form .tat-form-message.is-error { color: #dc2626; }

/* Sidebar newsletter card */
.tat-prompt-nl-card {
  background: linear-gradient(160deg, #4c1d95 0%, #7c3aed 55%, #a855f7 100%);
  color: #fff;
  border-radius: 16px;
  padding: 18px 18px 16px;
  margin-bottom: 14px;
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.35);
}
.tat-prompt-nl-card .tat-prompt-submit-eyebrow {
  color: #e9d5ff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 6px;
}
.tat-prompt-nl-card .tat-prompt-submit-title {
  color: #fff;
  font-size: 1.15rem;
  margin: 0 0 6px;
}
.tat-prompt-nl-card .tat-prompt-submit-lead {
  color: #ede9fe;
  font-size: 13px;
  margin: 0 0 12px;
  line-height: 1.45;
}
.tat-nl-sidebar-form {
  display: grid;
  gap: 8px;
}
.tat-nl-sidebar-form input[type=email] {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 14px;
  background: #fff;
  color: #0f172a;
}
.tat-nl-sidebar-form input[type=email]:focus {
  outline: 2px solid #fbbf24;
  outline-offset: 1px;
}
.tat-nl-sidebar-form .tat-button {
  background: #fff;
  color: #6d28d9;
  border: none;
  font-weight: 800;
}
.tat-nl-sidebar-form .tat-button:hover {
  background: #f5f3ff;
  color: #5b21b6;
}
.tat-nl-privacy {
  margin: 10px 0 0;
  font-size: 11px;
  color: #ddd6fe;
  opacity: 0.9;
}
.tat-nl-sidebar-form .tat-form-message {
  font-size: 12px;
}
.tat-nl-sidebar-form .tat-form-message.is-success { color: #bbf7d0; }
.tat-nl-sidebar-form .tat-form-message.is-error { color: #fecaca; }

/* How-to steps polish */
.tat-prompt-steps {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: tat-step;
  display: grid;
  gap: 10px;
}
.tat-prompt-steps li {
  counter-increment: tat-step;
  position: relative;
  padding: 12px 14px 12px 48px;
  background: var(--tat-soft, #f8fafc);
  border: 1px solid var(--tat-line, #e2e8f0);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--tat-ink, #0f172a);
}
.tat-prompt-steps li::before {
  content: counter(tat-step);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #7c3aed;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
html[data-tat-theme="dark"] .tat-prompt-steps li {
  background: var(--tat-card, #0f172a);
  border-color: var(--tat-line, #334155);
}

@media (max-width: 900px) {
  .tat-prompt-hero-actions .tat-button {
    flex: 1;
    justify-content: center;
  }
  .tat-prompt-newsletter-inline {
    padding: 18px 16px;
  }
}

/* ===== Unified newsletter box (sidebar + WP widget + shortcode) ===== */
.tat-nl-box {
  border-radius: 16px;
  padding: 18px 18px 16px;
  margin: 0 0 14px;
}
.tat-nl-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.tat-nl-title {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.tat-nl-text {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.45;
}
.tat-nl-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tat-nl-input {
  width: 100%;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 14px;
  border: 1px solid var(--tat-line, #e2e8f0);
  background: #fff;
  color: var(--tat-ink, #0f172a);
  box-sizing: border-box;
}
.tat-nl-input:focus {
  outline: none;
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18);
}
.tat-nl-btn {
  width: 100%;
  justify-content: center;
  min-height: 44px;
  font-weight: 800;
}
.tat-nl-perks {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
  font-size: 12px;
}
.tat-nl-perks li::before {
  content: "✓ ";
  font-weight: 700;
}
.tat-nl-form .tat-form-message {
  margin-top: 8px;
  font-size: 12.5px;
}
.tat-nl-form .tat-form-message.is-success { color: #059669; }
.tat-nl-form .tat-form-message.is-error { color: #dc2626; }

/* Sidebar context — purple gradient card */
.tat-nl-box--sidebar,
.tat-prompt-nl-card.tat-nl-box {
  background: linear-gradient(160deg, #4c1d95 0%, #7c3aed 55%, #a855f7 100%);
  color: #fff;
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.35);
  border: none;
}
.tat-nl-box--sidebar .tat-nl-kicker,
.tat-prompt-nl-card .tat-nl-kicker {
  color: #e9d5ff;
}
.tat-nl-box--sidebar .tat-nl-title,
.tat-prompt-nl-card .tat-nl-title {
  color: #fff;
}
.tat-nl-box--sidebar .tat-nl-text,
.tat-prompt-nl-card .tat-nl-text {
  color: #ede9fe;
}
.tat-nl-box--sidebar .tat-nl-input,
.tat-prompt-nl-card .tat-nl-input {
  border: none;
}
.tat-nl-box--sidebar .tat-nl-input:focus,
.tat-prompt-nl-card .tat-nl-input:focus {
  outline: 2px solid #fbbf24;
  outline-offset: 1px;
  box-shadow: none;
}
.tat-nl-box--sidebar .tat-nl-btn,
.tat-prompt-nl-card .tat-nl-btn {
  background: #fff;
  color: #6d28d9;
  border: none;
}
.tat-nl-box--sidebar .tat-nl-btn:hover,
.tat-prompt-nl-card .tat-nl-btn:hover {
  background: #f5f3ff;
  color: #5b21b6;
}
.tat-nl-box--sidebar .tat-nl-perks,
.tat-prompt-nl-card .tat-nl-perks {
  color: #ddd6fe;
}
.tat-nl-box--sidebar .tat-nl-perks li::before,
.tat-prompt-nl-card .tat-nl-perks li::before {
  color: #bbf7d0;
}
.tat-nl-box--sidebar .tat-form-message.is-success,
.tat-prompt-nl-card .tat-form-message.is-success { color: #bbf7d0; }
.tat-nl-box--sidebar .tat-form-message.is-error,
.tat-prompt-nl-card .tat-form-message.is-error { color: #fecaca; }

/* WP widget / shortcode context — light card */
.tat-nl-box--widget {
  background: var(--tat-card, #fff);
  border: 1px solid var(--tat-line, #e2e8f0);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  color: var(--tat-ink, #0f172a);
}
.tat-nl-box--widget .tat-nl-kicker {
  color: #7c3aed;
}
.tat-nl-box--widget .tat-nl-text {
  color: var(--tat-muted, #64748b);
}
.tat-nl-box--widget .tat-nl-perks {
  color: var(--tat-muted, #64748b);
}
.tat-nl-box--widget .tat-nl-perks li::before {
  color: #059669;
}
html[data-tat-theme="dark"] .tat-nl-box--widget {
  background: var(--tat-card, #0f172a);
  border-color: var(--tat-line, #334155);
}

/* Hide old inline strip if any cached HTML */
.tat-prompt-newsletter-inline { display: none !important; }

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* Works best with — app shelf (logo above name) */
.tat-prompt-use-on {
  margin: 24px 0 10px;
}
.tat-use-on-shelf {
  border: 1px solid #eee7ff;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(124, 58, 237, 0.07), transparent 55%),
    linear-gradient(180deg, #fcfbff 0%, #f8fafc 100%);
  border-radius: 16px;
  padding: 16px 16px 14px;
}
html[data-tat-theme="dark"] .tat-use-on-shelf {
  border-color: rgba(167, 139, 250, 0.28);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(124, 58, 237, 0.18), transparent 55%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.7));
}
.tat-use-on-shelf-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7c3aed;
}
.tat-use-on-shelf-icon {
  font-size: 11px;
  opacity: 0.9;
}
.tat-use-on-shelf-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 8px;
}
.tat-use-on-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 88px;
  padding: 10px 6px 8px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--tat-ink, #0f172a);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.tat-use-on-app:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.12);
  transform: translateY(-2px);
  color: #5b21b6;
}
.tat-use-on-app-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #eef2f7;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.tat-use-on-app-icon img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.tat-use-on-app-letter {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #7c3aed, #a855f7);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}
.tat-use-on-app-name {
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  max-width: 84px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
html[data-tat-theme="dark"] .tat-use-on-shelf-label {
  color: #c4b5fd;
}
html[data-tat-theme="dark"] .tat-use-on-app {
  color: #e2e8f0;
}
html[data-tat-theme="dark"] .tat-use-on-app:hover {
  background: rgba(124, 58, 237, 0.18);
  color: #ddd6fe;
}
html[data-tat-theme="dark"] .tat-use-on-app-icon {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 480px) {
  .tat-use-on-app {
    width: 76px;
  }
  .tat-use-on-app-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }
  .tat-use-on-app-icon img {
    width: 38px;
    height: 38px;
  }
}
