/**
 * SEO Tools Hub - Core Frontend & Template Stylesheet
 * Responsive, accessible, and compatible with any WordPress theme.
 */

:root {
  --sth-primary: #2563eb;
  --sth-primary-hover: #1d4ed8;
  --sth-primary-light: #eff6ff;
  --sth-accent: #f59e0b;
  --sth-text: #1e293b;
  --sth-text-muted: #64748b;
  --sth-border: #e2e8f0;
  --sth-bg: #f8fafc;
  --sth-card-bg: #ffffff;
  --sth-radius: 10px;
  --sth-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --sth-shadow-hover: 0 12px 20px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

/* Reset / Box Sizing within plugin scope */
.sth-site-header,
.sth-site-footer,
.sth-main-content-wrapper,
.sth-homepage-wrap,
.sth-single-tool-layout,
.sth-category-archive-layout {
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: var(--sth-text);
  line-height: 1.6;
}

.sth-site-header *,
.sth-site-footer *,
.sth-main-content-wrapper * {
  box-sizing: border-box;
}

/* ----------------------------------------------------
   HEADER STYLES
---------------------------------------------------- */
.sth-site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--sth-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.sth-header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.sth-brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.sth-brand-icon {
  font-size: 28px;
  background: var(--sth-primary-light);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.sth-brand-title {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.sth-brand-tagline {
  display: block;
  font-size: 12px;
  color: var(--sth-text-muted);
}

.sth-primary-nav .sth-nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
  align-items: center;
}

.sth-nav-item > a {
  padding: 8px 14px;
  text-decoration: none;
  color: var(--sth-text);
  font-weight: 600;
  font-size: 14px;
  border-radius: 6px;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sth-nav-item > a:hover {
  background: var(--sth-primary-light);
  color: var(--sth-primary);
}

/* Category Dropdown */
.sth-nav-item.sth-dropdown {
  position: relative;
}

.sth-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border: 1px solid var(--sth-border);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border-radius: 8px;
  min-width: 280px;
  padding: 8px 0;
  list-style: none;
  margin: 8px 0 0 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.2s ease;
  z-index: 100;
  max-height: 380px;
  overflow-y: auto;
}

.sth-dropdown:hover .sth-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sth-sub-item a {
  display: flex;
  justify-content: space-between;
  padding: 8px 16px;
  text-decoration: none;
  color: var(--sth-text);
  font-size: 13px;
  transition: background 0.15s;
}

.sth-sub-item a:hover {
  background: var(--sth-primary-light);
  color: var(--sth-primary);
}

.sth-sub-count {
  background: #f1f5f9;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 10px;
  color: var(--sth-text-muted);
}

/* Header Search */
.sth-search-field-box {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid var(--sth-border);
  border-radius: 20px;
  padding: 4px 12px;
  width: 240px;
  transition: all 0.2s;
}

.sth-search-field-box:focus-within {
  border-color: var(--sth-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  width: 280px;
}

.sth-tool-search-input {
  border: none !important;
  background: transparent !important;
  padding: 6px 8px !important;
  font-size: 13px !important;
  width: 100%;
  outline: none !important;
  box-shadow: none !important;
}

/* ----------------------------------------------------
   HOMEPAGE STYLES
---------------------------------------------------- */
.sth-homepage-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 64px 24px;
}

/* Hero */
.sth-hero-section {
  text-align: center;
  padding: 48px 20px 40px;
  background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
  border-radius: 16px;
  margin-bottom: 48px;
  border: 1px solid #e0edfd;
}

.sth-hero-pill {
  display: inline-block;
  background: #dbeafe;
  color: #1e40af;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 16px;
}

.sth-hero-title {
  font-size: 40px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 0 0 16px 0;
  line-height: 1.15;
}

.sth-hero-subtitle {
  font-size: 17px;
  color: var(--sth-text-muted);
  max-width: 720px;
  margin: 0 auto 28px auto;
}

.sth-hero-search-box {
  max-width: 680px;
  margin: 0 auto 20px auto;
  position: relative;
}

.sth-search-bar-inner {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: 12px;
  padding: 6px 16px;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.06);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.sth-search-bar-inner:focus-within {
  border-color: var(--sth-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.sth-search-icon {
  font-size: 20px;
  margin-right: 8px;
}

.sth-home-search-field {
  width: 100%;
  border: none !important;
  outline: none !important;
  font-size: 16px !important;
  padding: 10px 4px !important;
  color: #0f172a;
}

.sth-search-dropdown-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--sth-border);
  border-radius: 10px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.12);
  margin-top: 6px;
  max-height: 360px;
  overflow-y: auto;
  z-index: 50;
  text-align: left;
}

.sth-quick-jump-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.sth-jump-label {
  font-size: 13px;
  color: var(--sth-text-muted);
  font-weight: 500;
}

.sth-jump-tag {
  background: #ffffff;
  border: 1px solid var(--sth-border);
  border-radius: 16px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--sth-primary);
  cursor: pointer;
  transition: all 0.15s;
}

.sth-jump-tag:hover {
  background: var(--sth-primary);
  color: #fff;
  border-color: var(--sth-primary);
}

/* Sections */
.sth-section-header {
  margin-bottom: 24px;
}

.sth-badge-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sth-primary);
  margin-bottom: 6px;
}

.sth-home-h2 {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
}

.sth-header-desc {
  font-size: 15px;
  color: var(--sth-text-muted);
  margin: 0;
}

/* Trending Grid */
.sth-trending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.sth-trend-card {
  background: var(--sth-card-bg);
  border: 1px solid var(--sth-border);
  border-radius: var(--sth-radius);
  padding: 18px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.sth-trend-card:hover {
  border-color: #93c5fd;
  box-shadow: var(--sth-shadow-hover);
  transform: translateY(-2px);
}

.sth-trend-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.sth-trend-icon {
  font-size: 22px;
}

.sth-trend-label {
  background: #fef3c7;
  color: #92400e;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

.sth-trend-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px 0;
}

.sth-trend-cat-tag {
  font-size: 12px;
  color: var(--sth-text-muted);
  margin-top: auto;
}

/* Category Grid */
.sth-category-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.sth-cat-card {
  background: var(--sth-card-bg);
  border: 1px solid var(--sth-border);
  border-radius: var(--sth-radius);
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.sth-cat-card:hover {
  border-color: #93c5fd;
  box-shadow: var(--sth-shadow-hover);
  transform: translateY(-2px);
}

.sth-cat-emoji {
  font-size: 28px;
  margin-bottom: 12px;
  display: inline-block;
}

.sth-cat-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: #0f172a;
}

.sth-cat-desc-short {
  font-size: 13px;
  color: var(--sth-text-muted);
  margin: 0 0 16px 0;
  line-height: 1.5;
}

.sth-cat-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.sth-cat-count-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--sth-primary);
  background: var(--sth-primary-light);
  padding: 2px 10px;
  border-radius: 12px;
}

.sth-cat-arrow {
  font-size: 16px;
  color: var(--sth-text-muted);
  transition: transform 0.15s;
}

.sth-cat-card:hover .sth-cat-arrow {
  transform: translateX(4px);
  color: var(--sth-primary);
}

/* Grouped Directory */
.sth-category-group-block {
  background: #ffffff;
  border: 1px solid var(--sth-border);
  border-radius: var(--sth-radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--sth-shadow);
}

.sth-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.sth-group-title-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sth-group-icon {
  font-size: 22px;
}

.sth-group-h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 0;
}

.sth-group-h3 a {
  text-decoration: none;
  color: #0f172a;
}

.sth-group-h3 a:hover {
  color: var(--sth-primary);
}

.sth-group-view-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--sth-primary);
  text-decoration: none;
}

.sth-group-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.sth-directory-tool-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: #334155;
  font-size: 14px;
  transition: all 0.15s;
}

.sth-directory-tool-item:hover {
  background: var(--sth-primary-light);
  color: var(--sth-primary);
}

.sth-dot {
  color: #cbd5e1;
}

/* ----------------------------------------------------
   SINGLE TOOL PAGE LAYOUT & SIDEBAR
---------------------------------------------------- */
.sth-single-tool-layout,
.sth-category-archive-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 64px 24px;
}

.sth-breadcrumbs {
  font-size: 13px;
  color: var(--sth-text-muted);
  margin-bottom: 20px;
}

.sth-breadcrumbs a {
  color: var(--sth-primary);
  text-decoration: none;
}

.sth-crumb-sep {
  margin: 0 6px;
  color: #cbd5e1;
}

.sth-two-column-container {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

.sth-tool-main-article {
  background: #ffffff;
  border: 1px solid var(--sth-border);
  border-radius: var(--sth-radius);
  padding: 32px;
  box-shadow: var(--sth-shadow);
}

.sth-badge-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.sth-category-badge {
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  text-decoration: none;
}

.sth-free-badge {
  background: #dcfce7;
  color: #166534;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.sth-tool-h1 {
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 12px 0;
  line-height: 1.2;
}

.sth-tool-intro-desc {
  font-size: 16px;
  color: var(--sth-text-muted);
  margin: 0 0 28px 0;
  line-height: 1.6;
}

/* Tool Workspace Container Area (where shortcode/embed sits) */
.sth-tool-workspace {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 36px;
}

.sth-workspace-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.sth-status-badge {
  background: #22c55e;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  text-transform: uppercase;
}

.sth-workspace-subtitle {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  margin: 0;
}

.sth-interactive-embed-container {
  background: #ffffff;
  border: 1px solid var(--sth-border);
  border-radius: 8px;
  padding: 20px;
  min-height: 120px;
}

.sth-embed-notice {
  font-size: 13px;
  color: #475569;
  margin: 0;
}

/* How to Use Ordered List */
.sth-section-title {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin: 32px 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sth-steps-ordered-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
}

.sth-step-list-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.sth-step-number-bullet {
  background: var(--sth-primary);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
}

.sth-step-text-content {
  font-size: 15px;
  color: #334155;
}

/* Accordion FAQ */
.sth-accordion-group {
  margin-bottom: 32px;
}

.sth-accordion-item {
  border: 1px solid var(--sth-border);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.sth-accordion-item.is-active {
  border-color: var(--sth-primary);
}

.sth-accordion-header {
  width: 100%;
  padding: 14px 18px;
  background: #ffffff;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  text-align: left;
}

.sth-accordion-header:hover {
  background: #f8fafc;
}

.sth-accordion-arrow {
  font-size: 11px;
  color: var(--sth-text-muted);
  transition: transform 0.2s ease;
}

.sth-accordion-item.is-active .sth-accordion-arrow {
  transform: rotate(180deg);
  color: var(--sth-primary);
}

.sth-accordion-content {
  padding: 0 18px 16px 18px;
  background: #ffffff;
  font-size: 14px;
  color: #475569;
}

.sth-accordion-content p {
  margin: 0;
}

/* Related Keywords Footer */
.sth-tool-footer-tags {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--sth-border);
}

.sth-tags-title {
  font-size: 14px;
  font-weight: 700;
  color: #475569;
  margin: 0 0 10px 0;
}

.sth-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sth-keyword-tag {
  background: #f1f5f9;
  color: var(--sth-primary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.15s;
}

.sth-keyword-tag:hover {
  background: var(--sth-primary);
  color: #ffffff;
}

/* ----------------------------------------------------
   SIDEBAR WIDGETS
---------------------------------------------------- */
.sth-tool-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sth-sidebar-widget {
  background: #ffffff;
  border: 1px solid var(--sth-border);
  border-radius: var(--sth-radius);
  padding: 20px;
  box-shadow: var(--sth-shadow);
}

.sth-widget-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 14px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 10px;
}

.sth-widget-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sth-widget-item {
  margin-bottom: 8px;
}

.sth-widget-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background 0.15s;
}

.sth-widget-link:hover {
  background: var(--sth-primary-light);
}

.sth-item-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}

.sth-item-meta {
  display: block;
  font-size: 11px;
  color: var(--sth-text-muted);
}

.sth-cat-pill-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sth-cat-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--sth-text);
  font-size: 13px;
  transition: background 0.15s;
}

.sth-cat-pill:hover {
  background: var(--sth-primary-light);
  color: var(--sth-primary);
}

.sth-cat-badge {
  background: #f1f5f9;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  color: var(--sth-text-muted);
}

/* ----------------------------------------------------
   FOOTER STYLES
---------------------------------------------------- */
.sth-site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 56px 24px 24px 24px;
  margin-top: 48px;
}

.sth-footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.sth-footer-sitemap-section {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.sth-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.sth-footer-brand-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.sth-footer-about {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.sth-footer-social {
  display: flex;
  gap: 10px;
}

.sth-social-link {
  width: 32px;
  height: 32px;
  background: #1e293b;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.sth-footer-categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.sth-footer-heading {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 14px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sth-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sth-footer-links li {
  margin-bottom: 8px;
}

.sth-footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s;
}

.sth-footer-links a:hover {
  color: #ffffff;
}

.sth-footer-bottom-bar {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.sth-footer-extra-links a {
  color: #94a3b8;
  text-decoration: none;
  margin: 0 8px;
}

.sth-footer-extra-links a:hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 900px) {
  .sth-two-column-container {
    grid-template-columns: 1fr;
  }
  .sth-footer-sitemap-section {
    grid-template-columns: 1fr;
  }
  .sth-footer-categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sth-primary-nav {
    display: none;
  }
}

/* ----------------------------------------------------
   INTERACTIVE TOOL WORKSPACE ENGINE STYLES
---------------------------------------------------- */
.sth-workspace-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.sth-workspace-header {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.sth-workspace-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.sth-status-badge {
  background: #22c55e;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.sth-tool-category-indicator {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.sth-workspace-subtitle {
  font-size: 14px;
  color: #475569;
  margin: 0;
}

.sth-tool-ui-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sth-tool-textarea {
  width: 100%;
  min-height: 140px;
  padding: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  color: #0f172a;
  background: #f8fafc;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.sth-tool-textarea:focus,
.sth-tool-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  background: #ffffff;
}

.sth-tool-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  color: #0f172a;
  background: #f8fafc;
  box-sizing: border-box;
}

.sth-tool-controls-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.sth-btn-primary {
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sth-btn-primary:hover {
  background: #1d4ed8;
}

.sth-btn-primary:active {
  transform: translateY(1px);
}

.sth-btn-secondary {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}

.sth-btn-secondary:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.sth-stats-chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin: 12px 0;
}

.sth-stat-chip {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.sth-stat-val {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: #2563eb;
  line-height: 1.2;
}

.sth-stat-lbl {
  display: block;
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 4px;
}

.sth-output-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  position: relative;
}

.sth-output-label {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sth-output-content {
  font-family: monospace;
  font-size: 13px;
  white-space: pre-wrap;
  word-break: break-all;
  color: #0f172a;
  max-height: 250px;
  overflow-y: auto;
}

.sth-toast-message {
  display: none;
  background: #0f172a;
  color: #ffffff;
  padding: 8px 16px;
  font-size: 12px;
  border-radius: 6px;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.sth-editorial-content-block {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
  font-size: 15px;
  line-height: 1.7;
}

.sth-google-serp-preview {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin-top: 14px;
}

.sth-serp-title {
  color: #1a0dab;
  font-size: 18px;
  line-height: 1.3;
  margin: 0 0 2px 0;
  cursor: pointer;
}

.sth-serp-url {
  color: #202124;
  font-size: 12px;
  margin-bottom: 4px;
}

.sth-serp-desc {
  color: #4d5156;
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
}

