/* =========================================================
   DRAQEE GLOBAL FEATURED/TOOL CARD UI
   BACKWARD-COMPATIBLE VERSION
   IMPORTANT:
   - Keeps the existing working class names unchanged.
   - Uses the already-defined global Draqee cyan variables.
   - Safe to include on other pages without breaking existing markup.
   ========================================================= */

/* =========================================================
     FEATURED TOOLS — FINAL FUTURETOOLS-STYLE TEST TEMPLATE
     Scoped only to this section. No global dependency.
     Fixed card proportions, crisp glass, responsive/no overflow.
     ========================================================= */

  .featured-tools-section {
    --card-cyan: var(--draqee-cyan, #00E6FF);
    --card-cyan-rgb: var(--draqee-cyan-rgb, 0, 230, 255);
    /* LIGHT THEME TOKENS — darker, clearer and consistent */
    --card-ink: #0F172A;
    --card-ink-rgb: 15, 23, 42;
    --card-text: var(--card-ink);
    --card-muted: rgba(var(--card-ink-rgb), .66);
    --card-border: rgba(var(--card-ink-rgb), .20);
    --card-soft-border: rgba(var(--card-ink-rgb), .14);
    --card-soft-bg: rgba(var(--card-ink-rgb), .055);
    --card-surface: rgba(255, 255, 255, .68);
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow-x: clip;
  }

  .featured-tools-section,
  .featured-tools-section * {
    box-sizing: border-box;
  }

  /* Everything inside Featured Tools uses Inter by default.
     Only the main Featured AI Tools heading uses Sora below. */
  .featured-tools-section,
  .featured-tools-section .tool-card,
  .featured-tools-section .tool-name,
  .featured-tools-section .tool-desc,
  .featured-tools-section .tool-tag,
  .featured-tools-section .upvote-pill,
  .featured-tools-section .view-all-btn,
  .featured-tools-section p,
  .featured-tools-section span,
  .featured-tools-section a,
  .featured-tools-section button {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  }

  /* ===== Card ===== */
  .featured-tools-section .tool-card {
    position: relative;
    display: block;
    width: 100%;
    height: 129px;
    min-width: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    background:
      linear-gradient(145deg,
        rgba(255,255,255,.86) 0%,
        rgba(255,255,255,.76) 58%,
        rgba(248,250,252,.82) 100%);
    -webkit-backdrop-filter: blur(11px) saturate(132%);
    backdrop-filter: blur(11px) saturate(132%);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.92),
      inset 0 0 24px rgba(255,255,255,.10),
      0 1px 2px rgba(15,23,42,.04);
    transition: transform .20s ease, border-color .20s ease, box-shadow .20s ease, background .20s ease;
    cursor: pointer;
    isolation: isolate;
  }

  html.dark .featured-tools-section .tool-card {
    --card-ink: #F0EEF5;
    --card-ink-rgb: 240, 238, 245;
    --card-text: var(--card-ink);
    --card-muted: #AAA7B6;
    --card-border: rgba(255,255,255,.075);
    --card-soft-border: rgba(255,255,255,.07);
    --card-soft-bg: rgba(255,255,255,.055);
    background:
      linear-gradient(145deg, rgba(18,18,30,.76) 0%, rgba(15,15,26,.66) 52%, rgba(11,11,20,.74) 100%);
    -webkit-backdrop-filter: blur(11px) saturate(132%);
    backdrop-filter: blur(11px) saturate(132%);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.055),
      inset 0 0 24px rgba(255,255,255,.018),
      0 1px 2px rgba(0,0,0,.12);
  }

  /* FutureTools-like hover: gradient + border + soft glow/shadow. */
  .featured-tools-section .tool-card:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--card-cyan-rgb), .52);
    background:
      radial-gradient(
        ellipse at top left,
        rgba(var(--card-cyan-rgb), .12) 0%,
        rgba(var(--card-cyan-rgb), .055) 38%,
        transparent 72%
      ),
      linear-gradient(
        145deg,
        rgba(255,255,255,.99) 0%,
        rgba(248,253,255,.96) 56%,
        rgba(244,251,252,.98) 100%
      );
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.98),
      0 10px 30px -16px rgba(var(--card-cyan-rgb), .30),
      0 0 0 1px rgba(var(--card-cyan-rgb), .035);
  }

  html.dark .featured-tools-section .tool-card:hover {
    border-color: rgba(var(--card-cyan-rgb), .28);
    background:
      radial-gradient(ellipse at top left, rgba(var(--card-cyan-rgb), .11) 0%, transparent 60%),
      linear-gradient(145deg, rgba(20,20,33,.93) 0%, rgba(16,16,28,.87) 56%, rgba(12,12,22,.92) 100%);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.045),
      0 8px 32px -12px rgba(var(--card-cyan-rgb), .18);
  }

  .featured-tools-section .tool-card-glow {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .075;
    background: radial-gradient(ellipse at top left, rgba(var(--card-cyan-rgb), .11) 0%, transparent 65%);
    transition: opacity .30s ease;
  }

  .featured-tools-section .tool-card:hover .tool-card-glow {
    opacity: .48;
  }

  .featured-tools-section .tool-card-link {
    position: absolute;
    inset: 0;
    z-index: 10;
  }

  .featured-tools-section .tool-card-inner {
    position: relative;
    z-index: 1;
    height: 100%;
    padding: 16px;
    display: flex;
    flex-direction: column;
  }

  .featured-tools-section .tool-card-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 48px;
    min-width: 0;
  }

  /* ===== Logo ===== */
  .featured-tools-section .tool-logo-wrap {
    position: relative;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--card-soft-border);
    background: linear-gradient(145deg, rgba(var(--card-cyan-rgb),.12), rgba(var(--card-cyan-rgb),.025));
    transition: transform .20s ease, border-color .20s ease;
  }

  html.dark .featured-tools-section .tool-logo-wrap {
    border-color: rgba(255,255,255,.075);
  }

  .featured-tools-section .tool-card:hover .tool-logo-wrap {
    border-color: rgba(var(--card-cyan-rgb), .16);
  }

  .featured-tools-section .tool-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .featured-tools-section .tool-logo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(145deg, #0EA5B7, #0891B2);
    font-size: 14px;
    font-weight: 700;
  }

  /* ===== Main text ===== */
  .featured-tools-section .tool-card-body {
    flex: 1;
    min-width: 0;
  }

  .featured-tools-section .tool-name-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
  }

  .featured-tools-section .tool-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--card-text);
    font-size: 13px;
    line-height: 1.28;
    font-weight: 700;
    letter-spacing: -.012em;
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
    transition: none;
  }

  /* Hover title: use Draqee's GLOBAL cyan.
     Light theme uses a darker mix of the same global cyan for readability;
     dark theme uses the exact global cyan. */
  .featured-tools-section .tool-card:hover .tool-name {
    color: color-mix(in srgb, var(--draqee-cyan, #00E6FF) 68%, #005B66 32%);
    opacity: 1;
    text-shadow: none;
  }

  html.dark .featured-tools-section .tool-card:hover .tool-name {
    color: var(--draqee-cyan, #00E6FF);
  }

  @supports not (color: color-mix(in srgb, red 50%, blue 50%)) {
    .featured-tools-section .tool-card:hover .tool-name {
      color: #008A99;
    }

    html.dark .featured-tools-section .tool-card:hover .tool-name {
      color: var(--draqee-cyan, #00E6FF);
    }
  }

  .featured-tools-section .tool-arrow {
    position: relative;
    z-index: 20;
    display: inline-flex;
    flex: 0 0 auto;
    padding: 2px;
    border-radius: 4px;
    color: rgba(71,85,105,.42);
    opacity: 0;
    transition: opacity .20s ease, color .20s ease, background .20s ease;
  }

  html.dark .featured-tools-section .tool-arrow {
    color: rgba(255,255,255,.28);
  }

  .featured-tools-section .tool-card:hover .tool-arrow {
    opacity: 1;
    color: var(--card-cyan);
  }

  .featured-tools-section .tool-arrow svg {
    width: 14px;
    height: 14px;
    stroke-width: 2;
  }

  .featured-tools-section .tool-desc {
    margin-top: 4px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: var(--card-muted);
    font-size: 12px;
    line-height: 1.45;
    font-weight: 400;
  }

  /* ===== Footer ===== */
  .featured-tools-section .tool-card-footer {
    margin-top: auto;
    padding-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
  }

  .featured-tools-section .tool-tags {
    min-width: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    overflow: hidden;
  }

  .featured-tools-section .tool-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 18px;
    max-width: 118px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-radius: 5px;
    border: 1px solid var(--card-soft-border);
    padding: 0 7px;
    background: rgba(var(--card-ink-rgb), .035);
    color: rgba(var(--card-ink-rgb), .72);
    font-size: 10px;
    line-height: 17px;
    font-weight: 500;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
  }

  html.dark .featured-tools-section .tool-tag {
    border-color: rgba(255,255,255,.07);
    background: rgba(255,255,255,.018);
    color: #B0ACBA;
  }

  .featured-tools-section .tool-tag svg {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    stroke-width: 2;
  }

  /* ===== Pricing labels =====
     Free keeps its current green treatment.
     Freemium / Paid / Open Source use the same neutral Paid-style label.
     Featured uses the cyan treatment requested. */
  .featured-tools-section .tool-tag-price {
    font-weight: 600;
  }

  /* Free */
  .featured-tools-section .tool-tag-price-free {
    border-color: rgba(16,185,129,.28);
    background: rgba(16,185,129,.09);
    color: #059669;
  }

  html.dark .featured-tools-section .tool-tag-price-free {
    border-color: rgba(52,211,153,.25);
    background: rgba(52,211,153,.075);
    color: #6EE7B7;
  }

  /* Freemium / Paid / Open Source — same neutral treatment */
  .featured-tools-section .tool-tag-price-freemium,
  .featured-tools-section .tool-tag-price-paid,
  .featured-tools-section .tool-tag-price-open-source {
    border-color: var(--card-soft-border);
    background: var(--card-soft-bg);
    color: var(--card-text);
  }

  html.dark .featured-tools-section .tool-tag-price-freemium,
  html.dark .featured-tools-section .tool-tag-price-paid,
  html.dark .featured-tools-section .tool-tag-price-open-source {
    border-color: rgba(255,255,255,.07);
    background: rgba(255,255,255,.055);
    color: #E2E8F0;
  }

  /* Featured — same cyan family as the reference Open Source label */
  .featured-tools-section .tool-tag-featured {
    border-color: rgba(6,182,212,.30);
    background: rgba(6,182,212,.09);
    color: #0891B2;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
  }

  html.dark .featured-tools-section .tool-tag-featured {
    border-color: rgba(34,211,238,.26);
    background: rgba(34,211,238,.08);
    color: #67E8F9;
  }

  /* ===== Nabeel Pick — GLOBAL scheme =====
     Light theme: dark-blue family.
     Dark theme: black surface at 40% opacity with clear light text. */
  .featured-tools-section .tool-tag-nabeel {
    border-color: rgba(var(--card-ink-rgb), .18);
    background: rgba(var(--card-ink-rgb), .075);
    color: var(--card-text);
    font-weight: 700;
  }

  html.dark .featured-tools-section .tool-tag-nabeel {
    border-color: rgba(255,255,255,.10);
    background: rgba(0,0,0,.40);
    color: #E5E7EB;
  }

  /* ===== Upvote =====
     Neutral in every state — no cyan/accent color on hover or after voting. */
  .featured-tools-section .upvote-pill {
    position: relative;
    z-index: 20;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 2px;
    border-radius: 6px;
    padding: 4px 5px;
    color: rgba(var(--card-ink-rgb), .68);
    background: transparent;
    font-size: 12px;
    line-height: 1;
    transition: opacity .20s ease;
    cursor: pointer;
  }

  html.dark .featured-tools-section .upvote-pill {
    color: #AAA7B6;
    background: transparent;
  }

  .featured-tools-section .upvote-pill:hover,
  .featured-tools-section .upvote-pill.voted {
    color: rgba(var(--card-ink-rgb), .78);
    background: transparent;
  }

  html.dark .featured-tools-section .upvote-pill:hover,
  html.dark .featured-tools-section .upvote-pill.voted {
    color: #AAA7B6;
    background: transparent;
  }

  .featured-tools-section .upvote-pill:hover {
    opacity: .82;
  }

  .featured-tools-section .upvote-pill svg {
    width: 14px;
    height: 14px;
    stroke-width: 2;
  }

  /* ===== Section heading ===== */
  .featured-tools-section .featured-tools-heading {
    font-family: 'Sora', ui-sans-serif, system-ui, sans-serif !important;
    font-size: clamp(24px, 2.2vw, 32px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.025em;
  }

  /* ===== View all ===== */
  .featured-tools-section .view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 22px;
    border-radius: 12px;
    border: 1px solid var(--card-soft-border);
    background: rgba(255,255,255,.40);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: var(--card-text);
    transition: transform .20s ease, border-color .20s ease, background .20s ease, box-shadow .20s ease;
  }

  html.dark .featured-tools-section .view-all-btn {
    border-color: rgba(255,255,255,.08);
    background: rgba(255,255,255,.025);
    color: #E2E8F0;
  }

  .featured-tools-section .view-all-btn:hover {
    border-color: rgba(var(--card-cyan-rgb), .24);
    background: rgba(var(--card-cyan-rgb), .055);
    box-shadow: 0 8px 24px -14px rgba(var(--card-cyan-rgb), .25);
    transform: translateY(-2px);
  }

  .featured-tools-section .view-all-btn svg {
    width: 15px;
    height: 15px;
    stroke-width: 2.2;
    transition: transform .20s ease;
  }

  .featured-tools-section .view-all-btn:hover svg {
    transform: translateX(3px);
  }

  /* ===== Responsive: no page-level horizontal scroll ===== */
  @media (max-width: 639px) {
    .featured-tools-section {
      overflow-x: clip;
    }

    .featured-tools-section .tool-card {
      height: 129px;
      max-width: 100%;
    }

    .featured-tools-section .tool-card-inner {
      padding: 14px;
    }

    .featured-tools-section .tool-logo-wrap {
      width: 44px;
      height: 44px;
      flex-basis: 44px;
    }

    .featured-tools-section .tool-card-top {
      min-height: 44px;
      gap: 10px;
    }

    .featured-tools-section .tool-name {
      font-size: 13px;
    }

    .featured-tools-section .tool-tag {
      max-width: 96px;
      padding-inline: 6px;
    }
  }

  @media (max-width: 380px) {
    .featured-tools-section .tool-card-inner {
      padding: 12px;
    }

    .featured-tools-section .tool-card-top {
      gap: 9px;
    }

    .featured-tools-section .tool-logo-wrap {
      width: 42px;
      height: 42px;
      flex-basis: 42px;
    }

    .featured-tools-section .tool-tags {
      gap: 4px;
    }

    .featured-tools-section .tool-tag {
      max-width: 82px;
      padding-inline: 5px;
      font-size: 9.5px;
    }
  }

/* =========================================================
   REUSABLE GLOBAL COLOR TOKENS FOR FUTURE TOOL SECTIONS
   Use these classes/tokens when the same tool-card system is
   applied to Nabeel Pick, Community Pick, New Tools, etc.
   ========================================================= */

:root {
  --draqee-light-ink: #0F172A;
  --draqee-light-ink-rgb: 15, 23, 42;
  --draqee-light-border: rgba(15, 23, 42, .16);
  --draqee-light-soft-bg: rgba(15, 23, 42, .055);
  --draqee-black-40: rgba(0, 0, 0, .40);
}

