/* =========================================================
   AI TOOLS HUB
   ========================================================= */

/* =========================================================
   1. ROOT VARIABLES
   ========================================================= */

:root {
  --bg: #07111f;
  --bg-soft: #0b1728;
  --surface: #0e1c2f;
  --surface-2: #12243a;

  --border: rgba(255, 255, 255, 0.09);
  --border-light: rgba(255, 255, 255, 0.14);

  --text: #f5f7fb;
  --text-soft: #b8c4d4;
  --text-muted: #8290a4;

  --primary: #6d5dfc;
  --primary-light: #8b7fff;
  --secondary: #25d9b8;

  --success: #35d39a;

  --container: 1180px;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow: 0 20px 60px rgba(0, 0, 0, 0.25);

  --transition: 180ms ease;
}

/* =========================================================
   2. RESET
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  min-width: 320px;

  background:
    radial-gradient(
      circle at 50% -10%,
      rgba(109, 93, 252, 0.12),
      transparent 38%
    ),
    var(--bg);

  color: var(--text);

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  line-height: 1.6;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* =========================================================
   3. ACCESSIBILITY
   ========================================================= */

.skip-link {
  position: fixed;

  top: -100px;
  left: 20px;

  z-index: 9999;

  padding: 12px 18px;

  border-radius: 10px;

  background: var(--primary);
  color: white;

  font-weight: 700;

  transition: top var(--transition);
}

.skip-link:focus {
  top: 20px;
}

/* =========================================================
   4. CONTAINER
   ========================================================= */

.container {
  width: min(calc(100% - 40px), var(--container));

  margin-inline: auto;
}

/* =========================================================
   5. HEADER
   ========================================================= */

.site-header {
  position: sticky;

  top: 0;

  z-index: 1000;

  border-bottom: 1px solid var(--border);

  background: rgba(7, 17, 31, 0.82);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.navbar {
  min-height: 76px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 30px;
}

/* =========================================================
   BRAND
   ========================================================= */

.brand {
  display: inline-flex;

  align-items: center;

  gap: 10px;

  font-size: 18px;

  font-weight: 800;

  letter-spacing: -0.03em;

  white-space: nowrap;
}

.brand-icon {
  width: 36px;
  height: 36px;

  display: grid;

  place-items: center;

  border-radius: 11px;

  background: linear-gradient(135deg, var(--primary), #9c7cff);

  color: #fff;

  font-size: 11px;

  font-weight: 900;

  box-shadow: 0 8px 24px rgba(109, 93, 252, 0.28);
}

/* =========================================================
   NAVIGATION
   ========================================================= */

.nav-links {
  display: flex;

  align-items: center;

  gap: 6px;
}

.nav-links a {
  padding: 9px 12px;

  border-radius: 9px;

  color: var(--text-soft);

  font-size: 14px;

  font-weight: 600;

  transition:
    color var(--transition),
    background var(--transition);
}

.nav-links a:hover {
  color: var(--text);

  background: rgba(255, 255, 255, 0.06);
}

.nav-links .nav-cta {
  margin-left: 7px;

  padding-inline: 16px;

  background: var(--primary);

  color: white;
}

.nav-links .nav-cta:hover {
  background: var(--primary-light);
}

/* =========================================================
   MOBILE MENU
   ========================================================= */

.mobile-menu {
  display: none;

  width: 42px;
  height: 42px;

  border: 1px solid var(--border);

  border-radius: 10px;

  background: var(--surface);

  color: white;

  font-size: 20px;
}

/* =========================================================
   6. RESPONSIVE ADVERTISEMENT AREAS
   Network-neutral: ad code controls its own height/format.
   ========================================================= */

.ad-slot,
.content-ad,
.sidebar-ad,
.side-ad {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  height: auto;
  box-sizing: border-box;
  display: block;
  margin: 24px auto;
  overflow: visible;
}

/* Let ad-network containers use the full available width. */
.ad-slot > *,
.content-ad > *,
.sidebar-ad > *,
.side-ad > * {
  max-width: 100%;
  box-sizing: border-box;
}

/* Keep side-ad classes from creating fixed overlays or forced sizes. */
.side-ad {
  position: static;
  transform: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  letter-spacing: normal;
  text-transform: none;
  z-index: auto;
}

.side-ad-left,
.side-ad-right {
  left: auto;
  right: auto;
}

/* Empty placeholders take no unnecessary space. */
.ad-slot:empty,
.content-ad:empty,
.sidebar-ad:empty,
.side-ad:empty {
  display: none;
}

/* Mobile: keep ads fluid without imposing a fixed height. */
@media (max-width: 600px) {
  .ad-slot,
  .content-ad,
  .sidebar-ad,
  .side-ad {
    width: 100%;
    max-width: 100%;
    margin-block: 20px;
  }
}

/* =========================================================
   7. HERO
   ========================================================= */

.hero {
  position: relative;

  overflow: hidden;

  padding: 82px 0 76px;
}

.hero::before {
  content: "";

  position: absolute;

  width: 520px;
  height: 520px;

  top: -260px;
  left: 50%;

  transform: translateX(-50%);

  border-radius: 50%;

  background: rgba(109, 93, 252, 0.14);

  filter: blur(100px);

  pointer-events: none;
}

.hero-content {
  position: relative;

  max-width: 850px;

  margin-inline: auto;

  text-align: center;
}

/* =========================================================
   EYEBROW
   ========================================================= */

.eyebrow {
  width: fit-content;

  display: inline-flex;

  align-items: center;

  gap: 9px;

  margin-bottom: 22px;

  padding: 7px 12px;

  border: 1px solid rgba(109, 93, 252, 0.25);

  border-radius: 999px;

  background: rgba(109, 93, 252, 0.08);

  color: #c7c1ff;

  font-size: 12px;

  font-weight: 700;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: var(--secondary);

  box-shadow: 0 0 12px rgba(37, 217, 184, 0.8);
}

/* =========================================================
   HERO HEADING
   ========================================================= */

.hero h1 {
  max-width: 850px;

  margin: 0 auto;

  font-size: clamp(44px, 7vw, 76px);

  line-height: 0.99;

  letter-spacing: -0.065em;

  font-weight: 850;
}

.hero h1 span {
  background: linear-gradient(100deg, #8c7cff, #4de5c6);

  -webkit-background-clip: text;
  background-clip: text;

  color: transparent;
}

.hero-description {
  max-width: 670px;

  margin: 26px auto 0;

  color: var(--text-soft);

  font-size: 17px;

  line-height: 1.75;
}

/* =========================================================
   SEARCH
   ========================================================= */

.search-wrapper {
  position: relative;

  max-width: 700px;

  height: 62px;

  display: flex;

  align-items: center;

  margin: 34px auto 0;

  padding: 6px 6px 6px 20px;

  border: 1px solid var(--border-light);

  border-radius: 16px;

  background: rgba(14, 28, 47, 0.85);

  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.search-wrapper:focus-within {
  border-color: rgba(109, 93, 252, 0.6);

  box-shadow:
    0 0 0 4px rgba(109, 93, 252, 0.08),
    0 18px 60px rgba(0, 0, 0, 0.22);
}

.search-icon {
  flex: 0 0 auto;

  width: 20px;
  height: 20px;

  color: var(--text-muted);
}

.search-wrapper input {
  width: 100%;

  min-width: 0;

  height: 100%;

  padding: 0 14px;

  border: 0;

  outline: 0;

  background: transparent;

  color: white;

  font-size: 15px;
}

.search-wrapper input::placeholder {
  color: #718096;
}

.search-btn {
  flex: 0 0 auto;

  height: 50px;

  padding: 0 22px;

  border: 0;

  border-radius: 11px;

  background: linear-gradient(135deg, var(--primary), #806fff);

  color: white;

  font-weight: 700;

  transition:
    transform var(--transition),
    filter var(--transition);
}

.search-btn:hover {
  filter: brightness(1.08);

  transform: translateY(-1px);
}

/* =========================================================
   TRUST POINTS
   ========================================================= */

.trust-points {
  display: flex;

  justify-content: center;

  flex-wrap: wrap;

  gap: 20px;

  margin-top: 20px;
}

.trust-point {
  display: inline-flex;

  align-items: center;

  gap: 7px;

  color: var(--text-muted);

  font-size: 12px;
}

.check {
  color: var(--success);

  font-weight: 800;
}

/* =========================================================
   8. SECTIONS
   ========================================================= */

.section {
  padding: 55px 0;
}

.section-header {
  display: flex;

  align-items: flex-end;

  justify-content: space-between;

  gap: 30px;

  margin-bottom: 28px;
}

.section-title {
  margin: 0;

  font-size: clamp(26px, 4vw, 36px);

  line-height: 1.15;

  letter-spacing: -0.04em;
}

.section-description {
  max-width: 600px;

  margin: 9px 0 0;

  color: var(--text-muted);

  font-size: 14px;
}

.view-all {
  flex: 0 0 auto;

  color: #aaa1ff;

  font-size: 13px;

  font-weight: 700;
}

.view-all:hover {
  color: white;
}

/* =========================================================
   9. CATEGORY GRID
   ========================================================= */

.category-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 14px;
}

.category-card {
  min-height: 100px;

  display: flex;

  align-items: center;

  gap: 16px;

  padding: 20px;

  border: 1px solid var(--border);

  border-radius: var(--radius-md);

  background: linear-gradient(
    145deg,
    rgba(18, 36, 58, 0.7),
    rgba(14, 28, 47, 0.72)
  );

  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition);
}

.category-card:hover {
  transform: translateY(-4px);

  border-color: rgba(109, 93, 252, 0.38);

  background: rgba(20, 39, 63, 0.9);
}

.category-icon {
  width: 50px;
  height: 50px;

  flex: 0 0 auto;

  display: grid;

  place-items: center;

  border-radius: 14px;

  background: rgba(109, 93, 252, 0.12);

  border: 1px solid rgba(109, 93, 252, 0.15);

  color: #aaa1ff;

  font-size: 18px;

  font-weight: 800;
}

.category-card strong {
  display: block;

  margin-bottom: 2px;

  font-size: 15px;
}

.category-card small {
  color: var(--text-muted);

  font-size: 12px;
}

/* =========================================================
   10. TOOLS GRID
   ========================================================= */

.tools-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 18px;
}

.tool-card {
  position: relative;

  overflow: hidden;

  min-height: 330px;

  display: flex;

  flex-direction: column;

  padding: 23px;

  border: 1px solid var(--border);

  border-radius: var(--radius-lg);

  background: linear-gradient(
    155deg,
    rgba(18, 36, 58, 0.9),
    rgba(10, 22, 37, 0.9)
  );

  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.tool-card::before {
  content: "";

  position: absolute;

  top: -100px;
  right: -100px;

  width: 220px;
  height: 220px;

  border-radius: 50%;

  background: rgba(109, 93, 252, 0.07);

  filter: blur(20px);

  pointer-events: none;
}

.tool-card:hover {
  transform: translateY(-6px);

  border-color: rgba(109, 93, 252, 0.35);

  box-shadow: var(--shadow);
}

.tool-top {
  position: relative;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 12px;
}

.tool-logo {
  width: 50px;
  height: 50px;

  display: grid;

  place-items: center;

  border-radius: 14px;

  background: linear-gradient(
    135deg,
    rgba(109, 93, 252, 0.2),
    rgba(37, 217, 184, 0.1)
  );

  border: 1px solid rgba(255, 255, 255, 0.08);

  color: #d5d0ff;

  font-size: 15px;

  font-weight: 900;
}

.badge {
  padding: 5px 9px;

  border-radius: 999px;

  background: rgba(37, 217, 184, 0.08);

  border: 1px solid rgba(37, 217, 184, 0.14);

  color: #6ce8cc;

  font-size: 10px;

  font-weight: 800;
}

.tool-card h3 {
  margin: 22px 0 8px;

  font-size: 20px;

  letter-spacing: -0.025em;
}

.tool-card p {
  margin: 0;

  color: var(--text-muted);

  font-size: 13px;

  line-height: 1.7;
}

.tool-tags {
  display: flex;

  flex-wrap: wrap;

  gap: 7px;

  margin-top: 19px;
}

.tool-tag {
  padding: 5px 9px;

  border-radius: 7px;

  background: rgba(255, 255, 255, 0.045);

  color: #9aa7ba;

  font-size: 10px;

  font-weight: 600;
}

.tool-link {
  margin-top: auto;

  padding-top: 24px;

  color: #aaa1ff;

  font-size: 13px;

  font-weight: 800;
}

.tool-link:hover {
  color: white;
}

/* =========================================================
   11. FEATURE BOX
   ========================================================= */

.feature-box {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 45px;

  align-items: center;

  padding: 45px;

  border: 1px solid var(--border);

  border-radius: 28px;

  background: linear-gradient(
    135deg,
    rgba(109, 93, 252, 0.08),
    rgba(37, 217, 184, 0.035)
  );
}

.feature-content h2 {
  max-width: 550px;

  margin: 0;

  font-size: clamp(30px, 5vw, 46px);

  line-height: 1.08;

  letter-spacing: -0.05em;
}

.feature-content > p {
  max-width: 560px;

  margin: 18px 0 0;

  color: var(--text-soft);

  font-size: 14px;

  line-height: 1.75;
}

.feature-list {
  display: grid;

  gap: 12px;

  margin-top: 25px;
}

.feature-list li {
  display: flex;

  align-items: center;

  gap: 10px;

  color: #b9c4d4;

  font-size: 13px;
}

.feature-list li span {
  width: 22px;
  height: 22px;

  display: grid;

  place-items: center;

  border-radius: 7px;

  background: rgba(53, 211, 154, 0.09);

  color: var(--success);

  font-size: 11px;
}

/* =========================================================
   FEATURE VISUAL
   ========================================================= */

.feature-visual {
  min-height: 350px;

  display: grid;

  place-items: center;
}

.visual-placeholder {
  width: min(100%, 450px);

  aspect-ratio: 4 / 3;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  gap: 10px;

  padding: 30px;

  border: 1px dashed rgba(255, 255, 255, 0.14);

  border-radius: 24px;

  background: radial-gradient(
    circle at center,
    rgba(109, 93, 252, 0.13),
    transparent 65%
  );

  text-align: center;
}

.visual-placeholder strong {
  font-size: 20px;
}

.visual-placeholder span {
  max-width: 280px;

  color: var(--text-muted);

  font-size: 12px;
}

/* =========================================================
   12. CTA
   ========================================================= */

.cta {
  padding: 60px 0;
}

.cta-box {
  position: relative;

  overflow: hidden;

  padding: 65px 30px;

  border: 1px solid rgba(109, 93, 252, 0.18);

  border-radius: 28px;

  background:
    radial-gradient(circle at 50% 0%, rgba(109, 93, 252, 0.2), transparent 60%),
    rgba(14, 28, 47, 0.8);

  text-align: center;
}

.cta-box h2 {
  margin: 0;

  font-size: clamp(28px, 5vw, 46px);

  letter-spacing: -0.05em;
}

.cta-box p {
  max-width: 600px;

  margin: 14px auto 0;

  color: var(--text-muted);

  font-size: 14px;
}

.cta-button {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  min-height: 48px;

  margin-top: 25px;

  padding: 0 22px;

  border-radius: 11px;

  background: linear-gradient(135deg, var(--primary), #8475ff);

  color: white;

  font-size: 13px;

  font-weight: 800;

  box-shadow: 0 12px 30px rgba(109, 93, 252, 0.2);

  transition:
    transform var(--transition),
    filter var(--transition);
}

.cta-button:hover {
  transform: translateY(-2px);

  filter: brightness(1.08);
}

/* =========================================================
   13. FOOTER
   ========================================================= */

footer {
  margin-top: 30px;

  border-top: 1px solid var(--border);

  background: rgba(4, 10, 19, 0.7);
}

.footer-grid {
  display: grid;

  grid-template-columns:
    1.7fr
    1fr
    1fr
    1fr;

  gap: 45px;

  padding: 60px 0 45px;
}

.footer-brand p {
  max-width: 330px;

  margin-top: 16px;

  color: var(--text-muted);

  font-size: 13px;

  line-height: 1.75;
}

.footer-column {
  display: flex;

  flex-direction: column;

  align-items: flex-start;

  gap: 9px;
}

.footer-column h4 {
  margin: 0 0 9px;

  color: white;

  font-size: 13px;
}

.footer-column a {
  color: var(--text-muted);

  font-size: 12px;

  transition: color var(--transition);
}

.footer-column a:hover {
  color: white;
}

.footer-bottom {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

  padding: 20px 0;

  border-top: 1px solid var(--border);

  color: #637187;

  font-size: 11px;
}

/* =========================================================
   14. RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 1050px) {
  .side-ad {
    display: none;
  }

  .nav-links {
    gap: 2px;
  }

  .category-grid,
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-box {
    gap: 30px;
    padding: 35px;
  }
}

/* =========================================================
   15. RESPONSIVE — MOBILE NAV
   ========================================================= */

@media (max-width: 800px) {
  .navbar {
    min-height: 68px;
  }

  .mobile-menu {
    display: grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;

    top: calc(100% + 1px);

    left: 0;
    right: 0;

    display: none;

    flex-direction: column;

    align-items: stretch;

    padding: 14px 20px 20px;

    border-bottom: 1px solid var(--border);

    background: rgba(7, 17, 31, 0.97);

    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.25);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 12px 14px;
  }

  .nav-links .nav-cta {
    margin-left: 0;

    margin-top: 5px;

    text-align: center;
  }

  .hero {
    padding: 60px 0 55px;
  }

  .feature-box {
    grid-template-columns: 1fr;
  }

  .feature-visual {
    min-height: 280px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);

    gap: 35px;
  }
}

/* =========================================================
   16. RESPONSIVE — SMALL MOBILE
   ========================================================= */

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .hero {
    padding: 48px 0;
  }

  .hero h1 {
    font-size: clamp(40px, 13vw, 56px);
  }

  .hero-description {
    font-size: 14px;
  }

  .search-wrapper {
    height: auto;

    flex-wrap: wrap;

    padding: 7px;
  }

  .search-icon {
    margin-left: 10px;
  }

  .search-wrapper input {
    height: 48px;
  }

  .search-btn {
    width: 100%;
  }

  .trust-points {
    align-items: center;

    flex-direction: column;

    gap: 8px;
  }

  .section {
    padding: 40px 0;
  }

  .section-header {
    align-items: flex-start;

    flex-direction: column;

    gap: 14px;
  }

  .category-grid,
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: 88px;
  }

  .tool-card {
    min-height: 300px;
  }

  .feature-box {
    padding: 26px 20px;

    border-radius: 20px;
  }

  .feature-content h2 {
    font-size: 32px;
  }

  .cta {
    padding: 35px 0;
  }

  .cta-box {
    padding: 48px 20px;

    border-radius: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;

    gap: 30px;

    padding: 45px 0 35px;
  }

  .footer-bottom {
    align-items: flex-start;

    flex-direction: column;
  }
}

/* =========================================================
   17. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;

    animation-iteration-count: 1 !important;

    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
   AI TOOLS DIRECTORY PAGE
   Tools page specific styles
   ========================================================= */

/* =========================================================
   18. TOOLS DIRECTORY HERO
   ========================================================= */

.tools-hero {
  padding: 65px 0 45px;
  text-align: center;
}

.tools-hero-content {
  max-width: 780px;
  margin: 0 auto;
}

.tools-hero h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.tools-hero h1 span {
  background: linear-gradient(100deg, #8c7cff, #4de5c6);

  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tools-hero p {
  max-width: 650px;
  margin: 22px auto 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.75;
}

/* =========================================================
   19. TOOLS SEARCH & FILTER
   ========================================================= */

.tool-controls {
  display: grid;
  grid-template-columns:
    minmax(220px, 1fr)
    auto;

  gap: 12px;
  margin-bottom: 30px;
}

.tool-search {
  height: 54px;

  display: flex;
  align-items: center;

  gap: 10px;

  padding: 0 17px;

  border: 1px solid var(--border);

  border-radius: 13px;

  background: rgba(14, 28, 47, 0.8);
}

.tool-search svg {
  width: 19px;
  height: 19px;

  flex: 0 0 auto;

  color: var(--text-muted);
}

.tool-search input {
  width: 100%;
  height: 100%;

  border: 0;
  outline: 0;

  background: transparent;

  color: white;

  font-size: 13px;
}

.tool-search input::placeholder {
  color: var(--text-muted);
}

.tool-search:focus-within {
  border-color: rgba(109, 93, 252, 0.55);

  box-shadow: 0 0 0 3px rgba(109, 93, 252, 0.08);
}

.category-select {
  min-width: 190px;
  height: 54px;

  padding: 0 15px;

  border: 1px solid var(--border);

  border-radius: 13px;

  outline: 0;

  background: var(--surface);

  color: var(--text-soft);

  font-size: 13px;

  cursor: pointer;
}

.category-select:focus {
  border-color: rgba(109, 93, 252, 0.55);
}

/* =========================================================
   20. CATEGORY CHIPS
   ========================================================= */

.category-chips {
  display: flex;

  flex-wrap: wrap;

  gap: 8px;

  margin-bottom: 25px;
}

.category-chip {
  padding: 8px 13px;

  border: 1px solid var(--border);

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.025);

  color: var(--text-muted);

  font-size: 11px;
  font-weight: 700;

  cursor: pointer;

  transition:
    color var(--transition),
    background var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

.category-chip:hover {
  transform: translateY(-1px);

  border-color: rgba(109, 93, 252, 0.35);

  color: var(--text);
}

.category-chip.active {
  border-color: rgba(109, 93, 252, 0.35);

  background: rgba(109, 93, 252, 0.1);

  color: #c4beff;
}

/* =========================================================
   21. PREMIUM TOOLS GRID
   ========================================================= */

.premium-tools-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 18px;
}

/* =========================================================
   22. PREMIUM TOOL CARD
   ========================================================= */

.premium-tool-card {
  position: relative;
  overflow: hidden;

  display: flex;
  flex-direction: column;

  min-height: 390px;

  padding: 20px;

  border: 1px solid var(--border);

  border-radius: 22px;

  background: linear-gradient(
    145deg,
    rgba(18, 36, 58, 0.9),
    rgba(9, 21, 36, 0.95)
  );

  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.premium-tool-card:hover {
  transform: translateY(-6px);

  border-color: rgba(109, 93, 252, 0.38);

  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.28);
}

/* =========================================================
   23. TOOL IMAGE PLACEHOLDER
   ========================================================= */

.tool-image {
  position: relative;
  overflow: hidden;

  width: 100%;
  height: 175px;

  display: flex;

  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255, 255, 255, 0.07);

  border-radius: 15px;

  background:
    radial-gradient(
      circle at 50% 40%,
      rgba(109, 93, 252, 0.16),
      transparent 65%
    ),
    #0b1728;
}

/*
Future image example:

<img
    src="images/tools/chatgpt.webp"
    alt="ChatGPT AI tool interface"
    width="600"
    height="338"
    loading="lazy"
>
*/

.tool-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.tool-image-placeholder {
  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 7px;

  text-align: center;

  color: var(--text-muted);
}

.tool-image-placeholder strong {
  color: #c6c1ff;

  font-size: 13px;
}

.tool-image-placeholder span {
  font-size: 10px;
}

/* =========================================================
   24. TOOL CONTENT
   ========================================================= */

.premium-tool-content {
  display: flex;

  flex-direction: column;

  flex: 1;

  padding-top: 18px;
}

.premium-tool-meta {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 10px;
}

.premium-tool-category {
  color: #9d94ff;

  font-size: 10px;

  font-weight: 800;

  text-transform: uppercase;

  letter-spacing: 0.08em;
}

.premium-tool-status {
  padding: 4px 8px;

  border-radius: 999px;

  background: rgba(53, 211, 154, 0.08);

  border: 1px solid rgba(53, 211, 154, 0.14);

  color: #6ce8cc;

  font-size: 9px;

  font-weight: 800;
}

.premium-tool-card h2 {
  margin: 12px 0 7px;

  font-size: 20px;

  line-height: 1.2;

  letter-spacing: -0.03em;
}

.premium-tool-card p {
  margin: 0;

  color: var(--text-muted);

  font-size: 12px;

  line-height: 1.7;
}

/* =========================================================
   25. TOOL TAGS
   ========================================================= */

.premium-tool-tags {
  display: flex;

  flex-wrap: wrap;

  gap: 6px;

  margin-top: 15px;
}

.premium-tool-tags span {
  padding: 5px 8px;

  border-radius: 6px;

  background: rgba(255, 255, 255, 0.045);

  color: #8f9caf;

  font-size: 9px;
}

/* =========================================================
   26. TOOL CARD FOOTER
   ========================================================= */

.premium-tool-footer {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 10px;

  margin-top: auto;

  padding-top: 19px;
}

.tool-rating {
  color: #a9b4c5;

  font-size: 11px;
}

.tool-rating strong {
  color: #e7eaf0;
}

.tool-view {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-height: 37px;

  padding: 0 13px;

  border-radius: 9px;

  background: rgba(109, 93, 252, 0.12);

  color: #b2aaff;

  font-size: 11px;

  font-weight: 800;

  transition:
    background var(--transition),
    color var(--transition),
    transform var(--transition);
}

.tool-view:hover {
  transform: translateY(-1px);

  background: var(--primary);

  color: white;
}

/* =========================================================
   27. FEATURED / TRENDING LABEL
   ========================================================= */

.featured-label {
  position: absolute;

  top: 13px;
  left: 13px;

  z-index: 2;

  padding: 5px 9px;

  border-radius: 7px;

  background: rgba(7, 17, 31, 0.82);

  border: 1px solid rgba(255, 255, 255, 0.1);

  color: #d6d1ff;

  font-size: 9px;

  font-weight: 800;

  backdrop-filter: blur(8px);
}

/* =========================================================
   28. NO RESULTS
   ========================================================= */

.no-results {
  display: none;

  padding: 50px 20px;

  border: 1px dashed var(--border);

  border-radius: 18px;

  text-align: center;

  color: var(--text-muted);
}

.no-results strong {
  display: inline-block;

  margin-bottom: 5px;

  color: var(--text-soft);

  font-size: 16px;
}

/* =========================================================
   29. TOOLS PAGE RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {
  .premium-tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .tools-hero {
    padding: 50px 0 35px;
  }

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

  .category-select {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .tools-hero h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .tools-hero p {
    font-size: 14px;
  }

  .premium-tools-grid {
    grid-template-columns: 1fr;
  }

  .premium-tool-card {
    min-height: 380px;
  }

  .tool-image {
    height: 190px;
  }

  .category-chips {
    gap: 6px;
  }

  .category-chip {
    padding: 7px 10px;
  }
}

/* =========================================================
   30. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .premium-tool-card,
  .tool-view,
  .category-chip {
    transition: none;
  }
}
/* =========================================================
   CONTACT PAGE
   ========================================================= */

/* Contact layout */

.categories-intro {
  align-items: flex-start;
}

/* Contact information */

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.contact-info-item:hover {
  transform: translateY(-3px);
  border-color: rgba(120, 100, 255, 0.35);
  background: rgba(255, 255, 255, 0.04);
}

.contact-info-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #765cff, #9b7cff);
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(118, 92, 255, 0.22);
}

.contact-info-item strong {
  display: block;
  margin-bottom: 5px;
  color: #ffffff;
  font-size: 15px;
}

.contact-info-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.6;
}

/* =========================================================
   CONTACT FORM WRAPPER
   ========================================================= */

.contact-form-wrapper {
  width: 100%;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.055),
    rgba(255, 255, 255, 0.018)
  );
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.22);
}

.form-header {
  margin-bottom: 28px;
}

.form-header h2 {
  margin: 8px 0 8px;
}

.form-header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
}

/* =========================================================
   FORM
   ========================================================= */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.form-group label {
  display: block;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
}

.form-group input,
.form-group textarea,
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  outline: none;
  background: rgba(255, 255, 255, 0.045);
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  padding: 14px 16px;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.form-group input {
  min-height: 50px;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* Placeholder */

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

/* Focus */

.form-group input:focus,
.form-group textarea:focus {
  border-color: #8066ff;
  background: rgba(128, 102, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(128, 102, 255, 0.12);
}

/* =========================================================
   CHECKBOX
   ========================================================= */

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 2px;
}

.form-checkbox input {
  width: 17px;
  height: 17px;
  min-width: 17px;
  margin-top: 2px;
  accent-color: #8066ff;
  cursor: pointer;
}

.form-checkbox label {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.55;
  cursor: pointer;
}

/* =========================================================
   SUBMIT BUTTON
   ========================================================= */

.contact-form .cta-button {
  width: 100%;
  min-height: 52px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.contact-form .cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(118, 92, 255, 0.28);
}

.contact-form .cta-button:active {
  transform: translateY(0);
}

/* =========================================================
   CONTACT PAGE CARDS
   ========================================================= */

.contact-page-card {
  height: 100%;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {
  .contact-form-wrapper {
    padding: 24px;
    border-radius: 20px;
  }
}

@media (max-width: 600px) {
  .contact-form-wrapper {
    padding: 20px;
    border-radius: 18px;
  }

  .contact-info-item {
    padding: 15px;
    gap: 12px;
  }

  .contact-info-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px;
  }

  .form-group input,
  .form-group textarea {
    font-size: 16px;
  }

  .form-checkbox {
    align-items: flex-start;
  }

  .form-checkbox label {
    font-size: 12px;
  }
}
/* =========================================================
   LEGAL PAGES
   Privacy / Terms / Disclaimer / Cookies
   ========================================================= */

/* ---------------------------------------------------------
   LEGAL HERO
   --------------------------------------------------------- */

.categories-hero {
  position: relative;
  overflow: hidden;
}

.categories-hero-content {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
}

.categories-hero-content h1 {
  margin-bottom: 18px;
}

.categories-hero-content h1 span {
  display: inline;
}

.categories-hero-content p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.legal-updated {
  margin-top: 22px !important;
  font-size: 14px !important;
  opacity: 0.72;
}

/* ---------------------------------------------------------
   LEGAL PAGE WRAPPER
   --------------------------------------------------------- */

.legal-page {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

/* ---------------------------------------------------------
   LEGAL SECTION
   --------------------------------------------------------- */

.legal-section {
  position: relative;
  margin-bottom: 24px;
  padding: 32px 34px;

  background: rgba(255, 255, 255, 0.035);

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 18px;

  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

/* subtle hover */

.legal-section:hover {
  transform: translateY(-2px);

  border-color: rgba(99, 102, 241, 0.22);

  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}

/* ---------------------------------------------------------
   LEGAL HEADINGS
   --------------------------------------------------------- */

.legal-section h2 {
  margin: 0 0 18px;

  font-size: 24px;

  line-height: 1.35;

  letter-spacing: -0.02em;
}

.legal-section h3 {
  margin: 28px 0 10px;

  font-size: 18px;

  line-height: 1.4;
}

/* ---------------------------------------------------------
   LEGAL TEXT
   --------------------------------------------------------- */

.legal-section p {
  margin: 0 0 16px;

  font-size: 16px;

  line-height: 1.85;

  color: inherit;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

/* ---------------------------------------------------------
   LEGAL LINKS
   --------------------------------------------------------- */

.legal-section a:not(.cta-button) {
  color: #7c9cff;

  text-decoration: none;

  font-weight: 600;

  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.legal-section a:not(.cta-button):hover {
  color: #9aaeff;

  text-decoration: underline;
}

/* ---------------------------------------------------------
   LEGAL LISTS
   --------------------------------------------------------- */

.legal-section ul,
.legal-section ol {
  margin: 16px 0 8px;

  padding-left: 24px;
}

.legal-section li {
  margin-bottom: 12px;

  padding-left: 5px;

  line-height: 1.75;

  font-size: 15.5px;
}

.legal-section li::marker {
  color: #7c9cff;
}

/* ---------------------------------------------------------
   LEGAL CTA
   --------------------------------------------------------- */

.legal-section .cta-button {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  margin-top: 8px;

  text-decoration: none;
}

/* ---------------------------------------------------------
   LEGAL PAGE ADJUSTMENTS
   --------------------------------------------------------- */

.legal-page + * {
  margin-top: 0;
}

/* ---------------------------------------------------------
   SKIP LINK
   --------------------------------------------------------- */

.skip-link {
  position: absolute;

  left: 12px;

  top: -100px;

  z-index: 9999;

  padding: 10px 16px;

  border-radius: 8px;

  background: #ffffff;

  color: #111827;

  text-decoration: none;

  font-weight: 700;

  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

/* ---------------------------------------------------------
   MOBILE LEGAL PAGES
   --------------------------------------------------------- */

@media (max-width: 900px) {
  .side-ad {
    display: none;
  }

  .legal-page {
    max-width: 100%;
  }

  .legal-section {
    padding: 26px 24px;

    border-radius: 16px;
  }

  .legal-section h2 {
    font-size: 22px;
  }

  .legal-section h3 {
    font-size: 17px;
  }

  .legal-section p {
    font-size: 15px;

    line-height: 1.8;
  }

  .legal-section li {
    font-size: 15px;
  }
}

/* ---------------------------------------------------------
   SMALL MOBILE
   --------------------------------------------------------- */

@media (max-width: 600px) {
  .categories-hero-content {
    text-align: left;
  }

  .categories-hero-content p {
    margin-left: 0;
    margin-right: 0;
  }

  .legal-updated {
    font-size: 13px !important;
  }

  .legal-section {
    padding: 22px 18px;

    margin-bottom: 18px;

    border-radius: 14px;
  }

  .legal-section h2 {
    font-size: 20px;

    line-height: 1.4;

    margin-bottom: 14px;
  }

  .legal-section h3 {
    font-size: 16px;

    margin-top: 22px;
  }

  .legal-section p {
    font-size: 14.5px;

    line-height: 1.75;
  }

  .legal-section ul,
  .legal-section ol {
    padding-left: 20px;
  }

  .legal-section li {
    font-size: 14px;

    line-height: 1.7;

    margin-bottom: 10px;
  }

  .ad-slot {
    min-height: 70px;
  }
}

/* =========================================
   DESKTOP SIDE ADS
   ========================================= */

.side-ad {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);

  width: 160px;
  min-height: 300px;

  display: flex;
  align-items: center;
  justify-content: center;

  box-sizing: border-box;
  z-index: 1000;
}

/* LEFT AD */
.side-ad-left {
  left: 15px;
  right: auto;
}

/* RIGHT AD */
.side-ad-right {
  right: 15px;
  left: auto;
}

/* =========================================
   TABLET / MOBILE
   ========================================= */

@media (max-width: 1200px) {
  .side-ad {
    display: none;
  }
}

/* ---------------------------------------------------------
   REDUCED MOTION
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .legal-section {
    transition: none;
  }

  .legal-section:hover {
    transform: none;
  }

  .skip-link {
    transition: none;
  }
}
/* =========================================================
   AI WRITING TOOL PAGE
   Add this block at the END of css/style.css
   ========================================================= */

/* ---------------------------------------------------------
   BREADCRUMB
   --------------------------------------------------------- */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;

  padding-top: 22px;

  font-size: 13px;
  line-height: 1.5;

  opacity: 0.62;
}

.breadcrumb a {
  color: inherit;
  text-decoration: none;

  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.breadcrumb a:hover {
  color: #8da7ff;
  opacity: 1;
}

.breadcrumb span:last-child {
  opacity: 0.65;
}

/* ---------------------------------------------------------
   TOOL DETAIL HERO
   --------------------------------------------------------- */

.tool-detail-hero {
  display: grid;

  grid-template-columns:
    minmax(280px, 0.9fr)
    minmax(0, 1.1fr);

  gap: 55px;

  align-items: center;

  padding: 35px 0 25px;
}

/* ---------------------------------------------------------
   TOOL DETAIL IMAGE
   --------------------------------------------------------- */

.tool-detail-image {
  width: 100%;

  min-width: 0;
}

.tool-image-placeholder {
  position: relative;

  width: 100%;

  aspect-ratio: 1 / 1;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  gap: 9px;

  overflow: hidden;

  border-radius: 25px;

  background:
    radial-gradient(
      circle at 25% 20%,
      rgba(124, 156, 255, 0.18),
      transparent 35%
    ),
    radial-gradient(
      circle at 80% 75%,
      rgba(167, 139, 250, 0.14),
      transparent 35%
    ),
    rgba(255, 255, 255, 0.035);

  border: 1px solid rgba(255, 255, 255, 0.09);

  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);

  color: rgba(255, 255, 255, 0.55);

  font-size: 20px;

  font-weight: 800;
}

.tool-image-placeholder::before {
  content: "";

  position: absolute;

  width: 180px;
  height: 180px;

  border-radius: 50%;

  background: rgba(124, 156, 255, 0.08);

  filter: blur(3px);

  pointer-events: none;
}

.tool-image-placeholder span,
.tool-image-placeholder small {
  position: relative;

  z-index: 1;
}

.tool-image-placeholder small {
  font-size: 12px;

  font-weight: 400;

  opacity: 0.55;
}

.tool-detail-image img {
  display: block;

  width: 100%;
  height: auto;

  aspect-ratio: 1 / 1;

  object-fit: cover;

  border-radius: 25px;

  border: 1px solid rgba(255, 255, 255, 0.09);

  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}

/* ---------------------------------------------------------
   TOOL DETAIL CONTENT
   --------------------------------------------------------- */

.tool-detail-content {
  min-width: 0;
}

.tool-detail-content .eyebrow {
  margin-bottom: 18px;
}

.tool-detail-content h1 {
  margin: 0 0 20px;

  font-size: clamp(40px, 5vw, 66px);

  line-height: 1.06;

  letter-spacing: -0.045em;

  font-weight: 800;
}

.tool-detail-intro {
  max-width: 680px;

  margin: 0 0 25px;

  font-size: 18px;

  line-height: 1.8;

  opacity: 0.7;
}

/* ---------------------------------------------------------
   TOOL META
   --------------------------------------------------------- */

.tool-detail-meta {
  display: flex;

  flex-wrap: wrap;

  gap: 9px;
}

.tool-detail-meta span {
  display: inline-flex;

  align-items: center;

  min-height: 31px;

  padding: 5px 11px;

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.035);

  border: 1px solid rgba(255, 255, 255, 0.08);

  font-size: 11px;

  line-height: 1.3;

  opacity: 0.72;
}

/* ---------------------------------------------------------
   TOOL CONTENT LAYOUT
   --------------------------------------------------------- */

.tool-content-layout {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    280px;

  gap: 55px;

  align-items: start;

  max-width: 1120px;
}

.tool-main-content {
  min-width: 0;

  max-width: 780px;

  font-size: 17px;

  line-height: 1.9;
}

.tool-main-content p {
  margin: 0 0 22px;
}

/* ---------------------------------------------------------
   TOOL CONTENT HEADINGS
   --------------------------------------------------------- */

.tool-main-content h2 {
  position: relative;

  margin: 52px 0 18px;

  font-size: 30px;

  line-height: 1.3;

  letter-spacing: -0.025em;
}

.tool-main-content h2:first-child {
  margin-top: 0;
}

.tool-main-content h2::before {
  content: "";

  display: inline-block;

  width: 5px;

  height: 24px;

  margin-right: 11px;

  vertical-align: -2px;

  border-radius: 999px;

  background: #7c9cff;
}

.tool-main-content h3 {
  margin: 34px 0 12px;

  font-size: 21px;

  line-height: 1.4;
}

/* ---------------------------------------------------------
   TOOL CONTENT LIST
   --------------------------------------------------------- */

.tool-main-content ul,
.tool-main-content ol {
  margin: 20px 0 28px;

  padding-left: 27px;
}

.tool-main-content li {
  margin-bottom: 11px;

  padding-left: 6px;

  line-height: 1.75;
}

.tool-main-content li::marker {
  color: #8da7ff;

  font-weight: 700;
}

/* ---------------------------------------------------------
   TOOL BENEFITS GRID
   --------------------------------------------------------- */

.tool-benefits-grid {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 15px;

  margin: 25px 0 35px;
}

.tool-benefit-card {
  min-width: 0;

  padding: 22px;

  border-radius: 17px;

  background: rgba(255, 255, 255, 0.035);

  border: 1px solid rgba(255, 255, 255, 0.08);

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.tool-benefit-card:hover {
  transform: translateY(-3px);

  border-color: rgba(124, 156, 255, 0.24);

  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.tool-benefit-card > span {
  display: block;

  margin-bottom: 11px;

  color: #8da7ff;

  font-size: 11px;

  font-weight: 800;

  letter-spacing: 0.1em;
}

.tool-benefit-card h3 {
  margin: 0 0 8px;

  font-size: 18px;
}

.tool-benefit-card p {
  margin: 0;

  font-size: 13px;

  line-height: 1.7;

  opacity: 0.62;
}

/* ---------------------------------------------------------
   TOOL LIST CARD
   --------------------------------------------------------- */

.tool-list-card {
  display: grid;

  grid-template-columns:
    190px
    minmax(0, 1fr);

  gap: 25px;

  align-items: center;

  margin: 24px 0;

  padding: 20px;

  border-radius: 19px;

  background: rgba(255, 255, 255, 0.035);

  border: 1px solid rgba(255, 255, 255, 0.08);

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.tool-list-card:hover {
  transform: translateY(-3px);

  border-color: rgba(124, 156, 255, 0.25);

  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.15);
}

/* ---------------------------------------------------------
   TOOL LIST IMAGE
   --------------------------------------------------------- */

.tool-list-image {
  width: 100%;

  aspect-ratio: 16 / 10;

  display: flex;

  align-items: center;

  justify-content: center;

  overflow: hidden;

  border-radius: 14px;

  background:
    radial-gradient(
      circle at 30% 25%,
      rgba(124, 156, 255, 0.11),
      transparent 45%
    ),
    rgba(255, 255, 255, 0.04);

  border: 1px solid rgba(255, 255, 255, 0.07);

  color: rgba(255, 255, 255, 0.35);

  font-size: 12px;
}

.tool-list-image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}

/* ---------------------------------------------------------
   TOOL LIST INFO
   --------------------------------------------------------- */

.tool-list-info {
  min-width: 0;
}

.tool-list-category {
  display: inline-block;

  margin-bottom: 8px;

  color: #8da7ff;

  font-size: 10px;

  font-weight: 800;

  text-transform: uppercase;

  letter-spacing: 0.09em;
}

.tool-list-info h3 {
  margin: 0 0 9px;

  font-size: 21px;

  line-height: 1.35;
}

.tool-list-info p {
  margin: 0 0 14px;

  font-size: 14px;

  line-height: 1.7;

  opacity: 0.65;
}

/* ---------------------------------------------------------
   TOOL TAGS
   --------------------------------------------------------- */

.tool-list-tags {
  display: flex;

  flex-wrap: wrap;

  gap: 7px;

  margin-bottom: 16px;
}

.tool-list-tags span {
  display: inline-flex;

  align-items: center;

  min-height: 25px;

  padding: 4px 8px;

  border-radius: 6px;

  background: rgba(255, 255, 255, 0.045);

  border: 1px solid rgba(255, 255, 255, 0.07);

  font-size: 10px;

  line-height: 1.2;

  opacity: 0.62;
}

/* ---------------------------------------------------------
   TOOL BUTTON
   --------------------------------------------------------- */

.tool-list-button {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  min-height: 39px;

  padding: 0 14px;

  border-radius: 9px;

  background: rgba(124, 156, 255, 0.1);

  border: 1px solid rgba(124, 156, 255, 0.18);

  color: #9bb0ff;

  text-decoration: none;

  font-size: 12px;

  font-weight: 700;

  transition:
    background 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
}

.tool-list-button:hover {
  background: rgba(124, 156, 255, 0.17);

  border-color: rgba(124, 156, 255, 0.3);

  transform: translateY(-1px);
}

/* ---------------------------------------------------------
   TOOL SIDEBAR
   --------------------------------------------------------- */

.tool-detail-sidebar {
  position: sticky;

  top: 95px;

  min-width: 0;
}

/* ---------------------------------------------------------
   SIDEBAR CARD
   --------------------------------------------------------- */

.tool-sidebar-card {
  margin-bottom: 20px;

  padding: 21px;

  border-radius: 17px;

  background: rgba(255, 255, 255, 0.035);

  border: 1px solid rgba(255, 255, 255, 0.08);

  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

.tool-sidebar-card h3 {
  margin: 0 0 14px;

  font-size: 17px;

  line-height: 1.4;
}

.tool-sidebar-card p {
  margin: 0 0 16px;

  font-size: 13px;

  line-height: 1.7;

  opacity: 0.62;
}

.tool-sidebar-card > a:not(.sidebar-button) {
  display: block;

  padding: 9px 10px;

  border-radius: 8px;

  color: inherit;

  text-decoration: none;

  font-size: 13px;

  opacity: 0.62;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease;
}

.tool-sidebar-card > a:not(.sidebar-button):hover {
  background: rgba(124, 156, 255, 0.07);

  color: #8da7ff;

  opacity: 1;
}

/* ---------------------------------------------------------
   SIDEBAR LABEL
   --------------------------------------------------------- */

.tool-sidebar-card .sidebar-label {
  display: inline-block;

  margin-bottom: 8px;

  color: #8da7ff;

  font-size: 10px;

  font-weight: 800;

  text-transform: uppercase;

  letter-spacing: 0.09em;
}

/* ---------------------------------------------------------
   SIDEBAR BUTTON
   --------------------------------------------------------- */

.tool-sidebar-card .sidebar-button {
  display: flex;

  align-items: center;

  justify-content: center;

  min-height: 42px;

  padding: 0 14px;

  border-radius: 10px;

  background: rgba(124, 156, 255, 0.09);

  border: 1px solid rgba(124, 156, 255, 0.15);

  color: #8da7ff;

  text-decoration: none;

  font-size: 12px;

  font-weight: 700;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.tool-sidebar-card .sidebar-button:hover {
  background: rgba(124, 156, 255, 0.15);

  transform: translateY(-1px);
}

/* ---------------------------------------------------------
   RELATED ARTICLES
   --------------------------------------------------------- */

.tool-main-content + .tool-detail-sidebar {
  min-height: 1px;
}

/* ---------------------------------------------------------
   MOBILE / TABLET
   --------------------------------------------------------- */

@media (max-width: 1050px) {
  .tool-detail-hero {
    grid-template-columns:
      minmax(240px, 0.85fr)
      minmax(0, 1.15fr);

    gap: 38px;
  }

  .tool-detail-content h1 {
    font-size: clamp(38px, 5vw, 58px);
  }

  .tool-content-layout {
    grid-template-columns:
      minmax(0, 1fr)
      240px;

    gap: 35px;
  }
}

/* ---------------------------------------------------------
   SMALL TABLET
   --------------------------------------------------------- */

@media (max-width: 850px) {
  .tool-detail-hero {
    grid-template-columns: 1fr;

    gap: 30px;

    padding-top: 25px;
  }

  .tool-detail-image {
    max-width: 500px;

    margin: 0 auto;
  }

  .tool-detail-content {
    text-align: center;
  }

  .tool-detail-content .eyebrow {
    justify-content: center;
  }

  .tool-detail-intro {
    margin-left: auto;

    margin-right: auto;
  }

  .tool-detail-meta {
    justify-content: center;
  }

  .tool-content-layout {
    grid-template-columns: 1fr;

    gap: 40px;
  }

  .tool-main-content {
    max-width: 100%;
  }

  .tool-detail-sidebar {
    position: static;

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 18px;
  }

  .tool-detail-sidebar .sidebar-ad,
  .tool-sidebar-card {
    margin-bottom: 0;
  }
}

/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 600px) {
  .breadcrumb {
    padding-top: 16px;

    font-size: 12px;
  }

  .tool-detail-hero {
    padding-top: 20px;

    gap: 25px;
  }

  .tool-detail-image {
    max-width: 100%;
  }

  .tool-image-placeholder,
  .tool-detail-image img {
    border-radius: 18px;
  }

  .tool-detail-content {
    text-align: left;
  }

  .tool-detail-content .eyebrow {
    justify-content: flex-start;
  }

  .tool-detail-content h1 {
    font-size: 36px;

    line-height: 1.1;

    margin-bottom: 15px;
  }

  .tool-detail-intro {
    font-size: 16px;

    line-height: 1.7;
  }

  .tool-detail-meta {
    justify-content: flex-start;
  }

  .tool-main-content {
    font-size: 16px;

    line-height: 1.8;
  }

  .tool-main-content h2 {
    margin-top: 42px;

    font-size: 25px;
  }

  .tool-main-content h2::before {
    width: 4px;

    height: 20px;

    margin-right: 8px;
  }

  .tool-main-content h3 {
    font-size: 19px;
  }

  .tool-benefits-grid {
    grid-template-columns: 1fr;

    gap: 12px;
  }

  .tool-benefit-card {
    padding: 18px;
  }

  .tool-list-card {
    grid-template-columns: 1fr;

    gap: 18px;

    padding: 16px;
  }

  .tool-list-image {
    aspect-ratio: 16 / 9;
  }

  .tool-list-info h3 {
    font-size: 20px;
  }

  .tool-detail-sidebar {
    display: block;
  }

  .tool-detail-sidebar .sidebar-ad {
    margin-bottom: 18px;
  }

  .tool-sidebar-card {
    margin-bottom: 18px;
  }
}

/* ---------------------------------------------------------
   VERY SMALL MOBILE
   --------------------------------------------------------- */

@media (max-width: 380px) {
  .tool-detail-content h1 {
    font-size: 31px;
  }

  .tool-main-content {
    font-size: 15px;
  }

  .tool-main-content h2 {
    font-size: 23px;
  }

  .tool-detail-meta span {
    font-size: 10px;
  }
}

/* ---------------------------------------------------------
   REDUCED MOTION
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .tool-benefit-card,
  .tool-list-card,
  .tool-list-button,
  .tool-sidebar-card .sidebar-button {
    transition: none;
  }

  .tool-benefit-card:hover,
  .tool-list-card:hover,
  .tool-list-button:hover,
  .tool-sidebar-card .sidebar-button:hover {
    transform: none;
  }
}
.blog-featured-image {
  margin: 32px 0 40px;
}

.blog-featured-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.blog-featured-image figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 14px;
  opacity: 0.7;
}
.affiliate-btn {
  display: inline-block;
  padding: 12px 22px;
  background: #1a3b1c;
  color: #ffffff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s;
}

.affiliate-btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

/* Visible success message block - minimal and complementary to existing styles */
.form-success {
  background: #f3fbf6; /* very light green tint to indicate success */
  border-left: 4px solid #1e9b5a; /* subtle accent */
  padding: 1.125rem 1rem;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(7, 17, 31, 0.04);
  color: #053927;
  margin-top: 1rem;
}

.form-success h2 {
  margin: 0 0 0.25rem 0;
  font-size: 1.25rem;
  line-height: 1.2;
}

.form-success p {
  margin: 0;
  color: rgba(5, 57, 39, 0.9);
}

/* Small helper for accessible hidden text */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Ensure success message occupies full width on small screens */
@media (max-width: 640px) {
  .form-success {
    padding: 0.9rem;
    border-radius: 8px;
  }
  .form-success h2 {
    font-size: 1.125rem;
  }
}
