/**
 * Tools Platform Global Layout & Component Styles — Web Techiq Official
 * Seamlessly integrates with Web Techiq Theme Design System & Tokens.
 */

/* ── Hero Sections (Hub & Single) ───────────────────────── */
.wt-tools-hub-hero,
.wt-tool-hero-section {
  background: radial-gradient(circle at 50% 10%, rgba(254, 241, 225, 0.95) 0%, rgba(255, 255, 255, 0.98) 75%), var(--wt-bg-color, #ffffff);
  padding: 65px 0 50px 0;
  text-align: center;
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.wt-single-tool-main .wt-tool-hero-section {
  text-align: left;
  padding: 45px 0 35px 0;
}

.wt-tool-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 18px;
}

.wt-tool-breadcrumbs a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s ease;
}

.wt-tool-breadcrumbs a:hover {
  color: var(--wt-primary-color, #ff6b00);
}

.wt-tool-breadcrumbs .wt-sep {
  color: #cbd5e1;
}

.wt-tool-breadcrumbs .wt-current {
  color: var(--wt-heading-color, #0d1b2a);
  font-weight: 600;
}

.wt-tool-meta-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.wt-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.05);
  color: var(--wt-heading-color, #0d1b2a);
}

.wt-badge-pill.wt-badge-primary {
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.15) 0%, rgba(255, 107, 0, 0.06) 100%);
  border: 1px solid rgba(255, 107, 0, 0.25);
  color: var(--wt-primary-color, #ff6b00);
}

.wt-badge-pill.wt-badge-cat a {
  color: var(--wt-secondary-color, #0b1120);
  text-decoration: none;
}

.wt-badge-pill.wt-badge-metric {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #475569;
}

.wt-hub-h1,
.wt-tool-page-title {
  font-family: var(--wt-heading-font-family, inherit);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  color: var(--wt-heading-color, #0d1b2a);
  line-height: 1.25;
  margin: 10px 0 12px 0;
  letter-spacing: -0.5px;
}

.wt-hub-lead,
.wt-tool-page-subtitle {
  font-size: clamp(15px, 1.5vw, 17px);
  color: var(--wt-body-color, #4a5568);
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.6;
}

.wt-single-tool-main .wt-tool-page-subtitle {
  margin: 0;
}

/* ── Hub Search & Category Tabs ─────────────────────────── */
.wt-hub-search-box {
  position: relative;
  max-width: 620px;
  margin: 30px auto 22px auto;
}

.wt-hub-search-box .wt-search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 16px;
}

.wt-tools-search-input {
  width: 100%;
  padding: 15px 22px 15px 50px;
  border-radius: 35px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  background: #ffffff;
  font-size: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  outline: none;
  box-sizing: border-box;
}

.wt-tools-search-input:focus {
  border-color: var(--wt-primary-color, #ff6b00);
  box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.12), 0 6px 24px rgba(0, 0, 0, 0.06);
}

.wt-hub-category-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.wt-cat-tab {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wt-cat-tab:hover {
  background: #ffffff;
  color: var(--wt-primary-color, #ff6b00);
  border-color: var(--wt-primary-color, #ff6b00);
}

.wt-cat-tab.active {
  background: var(--wt-secondary-color, #0b1120);
  color: #ffffff;
  border-color: var(--wt-secondary-color, #0b1120);
  box-shadow: 0 4px 14px rgba(11, 17, 32, 0.25);
}

.wt-cat-count {
  opacity: 0.75;
  font-size: 11px;
  margin-left: 2px;
}

/* ── Tools Hub Grid ─────────────────────────────────────── */
.wt-tools-grid-section {
  padding: 50px 0 55px 0;
}

.wt-tools-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.wt-tool-hub-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.wt-tool-hub-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(11, 17, 32, 0.08);
  border-color: rgba(255, 107, 0, 0.4);
}

.wt-tool-hub-card.is-featured {
  border: 2px solid rgba(255, 107, 0, 0.5);
  background: linear-gradient(180deg, #fffcf9 0%, #ffffff 100%);
}

.wt-featured-ribbon {
  position: absolute;
  top: -12px;
  right: 24px;
  background: linear-gradient(135deg, #ff8c38 0%, var(--wt-primary-color, #ff6b00) 100%);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 12px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(255, 107, 0, 0.35);
}

.wt-hub-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.wt-hub-tool-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.15) 0%, rgba(255, 107, 0, 0.04) 100%);
  border: 1px solid rgba(255, 107, 0, 0.2);
  border-radius: 12px;
  color: var(--wt-primary-color, #ff6b00);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 3px 10px rgba(255, 107, 0, 0.1);
}

.wt-hub-cat-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--wt-primary-color, #ff6b00);
  letter-spacing: 0.6px;
  display: block;
  margin-bottom: 6px;
}

.wt-hub-tool-title {
  font-family: var(--wt-heading-font-family, inherit);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px 0;
  line-height: 1.35;
}

.wt-hub-tool-title a {
  color: var(--wt-heading-color, #0d1b2a);
  text-decoration: none;
  transition: color 0.15s ease;
}

.wt-hub-tool-title a:hover {
  color: var(--wt-primary-color, #ff6b00);
}

.wt-hub-tool-desc {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.55;
  margin: 0 0 20px 0;
}

.wt-hub-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
  font-size: 13px;
}

.wt-hub-time {
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

.wt-hub-launch-link {
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, var(--wt-primary-color, #ff6b00) 0%, #e05d00 100%);
  padding: 7px 18px;
  border-radius: 20px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  box-shadow: 0 3px 10px rgba(255, 107, 0, 0.25);
  transition: all 0.2s ease;
}

.wt-hub-launch-link:hover {
  background: linear-gradient(135deg, #e05d00 0%, #c44f00 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 107, 0, 0.35);
  color: #ffffff;
}

/* ── Service CTA Banner ─────────────────────────────────── */
.wt-tool-service-cta-banner {
  margin: 35px 0 45px 0;
}

.wt-cta-banner-inner {
  background: linear-gradient(135deg, var(--wt-secondary-color, #0b1120) 0%, #1e293b 100%);
  border-radius: 16px;
  padding: 36px 40px;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 25px;
  box-shadow: 0 15px 35px -5px rgba(11, 17, 32, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.wt-cta-text-side {
  flex: 1;
  min-width: 280px;
}

.wt-cta-tag {
  display: inline-block;
  background: rgba(255, 107, 0, 0.2);
  color: #ff8c38;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.wt-cta-title {
  font-family: var(--wt-heading-font-family, inherit);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px 0;
}

.wt-cta-desc {
  font-size: 14px;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.5;
  max-width: 620px;
}

.wt-cta-btn-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.wt-cta-launch-btn {
  font-size: 15px;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 8px;
}

.wt-cta-note {
  font-size: 11px;
  color: #94a3b8;
}

/* ── SEO Authority Article Card ─────────────────────────── */
.wt-hub-seo-section {
  padding: 10px 0 50px 0;
}

.wt-tool-seo-guide-section {
  margin: 40px 0;
}

.wt-seo-guide-card,
.wt-seo-authority-card {
  background: linear-gradient(180deg, #ffffff 0%, #fffdfa 100%);
  border-radius: 14px;
  border: 1px solid rgba(255, 107, 0, 0.15);
  border-left: 4px solid var(--wt-primary-color, #ff6b00);
  padding: 36px 40px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.03);
  max-width: 1200px;
  margin: 0 auto;
}

.wt-seo-guide-card .entry-content > *:first-child {
  margin-top: 0;
}

.wt-seo-guide-card h2,
.wt-seo-authority-card h2 {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  color: var(--wt-heading-color, #0d1b2a);
  margin-top: 28px;
  margin-bottom: 14px;
  line-height: 1.35;
}

.wt-seo-guide-card h3 {
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 700;
  color: var(--wt-heading-color, #0d1b2a);
  margin-top: 24px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.wt-seo-guide-card p,
.wt-seo-authority-card p {
  color: var(--wt-body-color, #4a5568);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 16px;
}

.wt-seo-guide-card ul,
.wt-seo-guide-card ol {
  color: var(--wt-body-color, #4a5568);
  font-size: 15px;
  line-height: 1.75;
  padding-left: 24px;
  margin-bottom: 20px;
}

.wt-seo-guide-card li {
  margin-bottom: 8px;
}

.wt-seo-guide-card strong {
  color: var(--wt-heading-color, #0d1b2a);
}

.wt-seo-guide-card a {
  color: var(--wt-primary-color, #ff6b00);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.wt-seo-guide-card a:hover {
  color: #e05d00;
}

.wt-seo-guide-card blockquote {
  border-left: 4px solid var(--wt-primary-color, #ff6b00);
  background: linear-gradient(135deg, rgba(254, 241, 225, 0.5) 0%, rgba(255, 255, 255, 0.8) 100%);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin: 22px 0;
  font-style: normal;
  color: var(--wt-heading-color, #0d1b2a);
}

/* ── "How It Works" 3-Step Section ──────────────────────── */
.wt-tool-steps-section {
  margin: 45px 0;
}

.wt-section-title-wrap {
  text-align: center;
  margin-bottom: 30px;
}

.wt-sub-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--wt-primary-color, #ff6b00);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.wt-section-h2 {
  font-family: var(--wt-heading-font-family, inherit);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  color: var(--wt-heading-color, #0d1b2a);
  margin: 0;
}

.wt-tool-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.wt-tool-step-item {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wt-tool-step-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
  border-color: rgba(255, 107, 0, 0.3);
}

.wt-step-badge {
  font-family: var(--wt-heading-font-family, inherit);
  font-size: 28px;
  font-weight: 800;
  color: rgba(255, 107, 0, 0.35);
  display: block;
  margin-bottom: 8px;
  line-height: 1;
}

.wt-step-item-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--wt-heading-color, #0d1b2a);
  margin: 0 0 8px 0;
}

.wt-step-item-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

/* ── Interactive FAQ Accordion ──────────────────────────── */
.wt-tool-faq-section {
  margin: 45px 0;
}

.wt-tool-faq-accordion {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wt-faq-item {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wt-faq-item.active {
  border-color: var(--wt-primary-color, #ff6b00);
  box-shadow: 0 4px 14px rgba(255, 107, 0, 0.08);
}

.wt-faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: none;
  border: none;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  color: var(--wt-heading-color, #0d1b2a);
  cursor: pointer;
}

.wt-faq-icon {
  font-size: 13px;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.wt-faq-item.active .wt-faq-icon {
  transform: rotate(180deg);
  color: var(--wt-primary-color, #ff6b00);
}

.wt-faq-answer {
  padding: 0 20px 18px 20px;
  font-size: 14px;
  color: var(--wt-body-color, #4a5568);
  line-height: 1.6;
}

.wt-faq-answer p {
  margin: 0;
}

/* ── Related Tools Grid ─────────────────────────────────── */
.wt-related-tools-section {
  margin: 50px 0 30px 0;
}

/* ── Responsive Ad Slots ────────────────────────────────── */
.wt-tool-ad-container {
  margin: 25px 0;
  text-align: center;
}

.wt-tool-ad-inner {
  display: inline-block;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 10px 15px;
  max-width: 100%;
}

.wt-ad-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
  display: block;
  margin-bottom: 4px;
}

/* ── Mobile Responsive Layout ───────────────────────────── */
@media (max-width: 991px) {
  .wt-tools-hub-hero,
  .wt-tool-hero-section {
    padding: 45px 0 35px 0;
  }

  .wt-seo-guide-card,
  .wt-seo-authority-card {
    padding: 26px 22px;
  }

  .wt-tools-cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .wt-single-tool-main .wt-tool-hero-section {
    padding: 35px 0 25px 0;
  }

  .wt-tool-meta-badges {
    gap: 6px;
  }

  .wt-badge-pill {
    font-size: 11px;
    padding: 4px 10px;
  }

  .wt-tool-steps-grid {
    grid-template-columns: 1fr;
  }

  .wt-cta-banner-inner {
    padding: 24px 20px;
    flex-direction: column;
    text-align: center;
  }

  .wt-cta-text-side {
    min-width: 100%;
  }

  .wt-cta-btn-side {
    width: 100%;
    align-items: center;
  }

  .wt-cta-launch-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .wt-hub-h1,
  .wt-tool-page-title {
    font-size: 24px;
  }

  .wt-hub-lead,
  .wt-tool-page-subtitle {
    font-size: 14px;
  }

  .wt-tools-search-input {
    padding: 12px 18px 12px 44px;
    font-size: 13.5px;
  }

  .wt-cat-tab {
    font-size: 12px;
    padding: 6px 14px;
  }

  .wt-tool-hub-card {
    padding: 20px 16px;
  }

  .wt-faq-question {
    padding: 14px 16px;
    font-size: 14px;
  }

  .wt-faq-answer {
    padding: 0 16px 16px 16px;
    font-size: 13.5px;
  }
}

/* ── Single Tool Page Layout ─────────────────────────────── */
.wt-single-tool-main {
  background: var(--wt-bg-color-2, #ffffff);
}

.wt-tool-hero-content {
  max-width: 900px;
}

.wt-tool-page-container {
  padding-top: 0;
  padding-bottom: 50px;
}

.wt-tool-interactive-wrap {
  margin-bottom: 10px;
}

/* Rank Math breadcrumbs integration */
.wt-tool-breadcrumbs .rank-math-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: #64748b;
}

.wt-tool-breadcrumbs .rank-math-breadcrumb p {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.wt-tool-breadcrumbs .rank-math-breadcrumb a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s;
}

.wt-tool-breadcrumbs .rank-math-breadcrumb a:hover {
  color: var(--wt-primary-color, #ff6b00);
}

.wt-tool-breadcrumbs .rank-math-breadcrumb span.separator {
  color: #cbd5e1;
  margin: 0 2px;
}

/* ── Entry content inside SEO card: reset WP defaults ───── */
.wt-seo-guide-card .entry-content {
  max-width: none;
}

.wt-seo-guide-card .entry-content > p:first-child,
.wt-seo-guide-card .entry-content > h2:first-child,
.wt-seo-guide-card .entry-content > h3:first-child {
  margin-top: 0;
}

/* ── Section Dividers ───────────────────────────────────── */
.wt-tool-steps-section,
.wt-tool-faq-section,
.wt-related-tools-section {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 40px;
}

/* ── No-Tools-Found message ─────────────────────────────── */
#wtNoToolsFound {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #64748b;
  font-size: 16px;
}

#wtNoToolsFound i {
  font-size: 36px;
  display: block;
  margin-bottom: 12px;
  color: #cbd5e1;
}

