/* ==========================================================================
   AI Tool Finder - Multi-Colour Editorial Design System
   Inspired by Dubai Future Week: Vibrant Palette & High-Contrast Section Rhythm
   ========================================================================== */

:root {
  /* Dubai Future Week Distinct Palette Tokens */
  --c-electric-blue: #5267FF;
  --c-electric-blue-dark: #3b4ecc;
  --c-vibrant-orange: #FF784F;
  --c-coral-pink: #FF6B8A;
  --c-lime-green: #C8F169;
  --c-lavender: #C5A6FF;
  --c-bright-yellow: #F9DC5C;
  --c-deep-burgundy: #651B43;
  --c-warm-cream: #FFF4E8;
  --c-soft-sky-blue: #A8D9FF;
  --c-deep-navy: #17172F;
  --c-charcoal: #0F0F1E;

  /* Typography Stacks */
  --font-heading: 'Syne', -apple-system, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  /* Sizing & Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-xl: 36px;
  --radius-full: 9999px;
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--c-deep-navy);
  color: #ffffff;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

button, input, select {
  font-family: inherit;
}

.hidden {
  display: none !important;
}

/* Content Container Utility */
.content-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 5.5rem 2rem;
}

/* ==========================================================================
   Editorial Typography & Accents
   ========================================================================== */
.editorial-serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--c-bright-yellow);
  padding: 0 0.15em 0 0.05em;
  letter-spacing: -0.01em;
}

.editorial-serif-italic-dark {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--c-electric-blue);
  padding: 0 0.15em 0 0.05em;
}

.editorial-serif-italic-burgundy {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--c-deep-burgundy);
  padding: 0 0.15em 0 0.05em;
}

.editorial-serif-italic-yellow {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--c-bright-yellow);
  padding: 0 0.15em 0 0.05em;
}

/* Section Meta Tag */
.section-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.section-meta-tag .index-num {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--c-bright-yellow);
}

.section-meta-tag.dark-meta .index-num {
  color: var(--c-electric-blue);
}

.section-meta-tag.dark-meta .meta-label {
  color: var(--c-deep-navy);
}

.section-meta-tag.dark-meta .meta-separator {
  color: rgba(23, 23, 47, 0.4);
}

.section-meta-tag.light-meta .index-yellow {
  color: var(--c-bright-yellow);
}

.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-transform: lowercase;
  margin-top: 0.35rem;
}

.section-heading.dark-heading {
  color: var(--c-deep-navy);
}

.section-header-row {
  margin-bottom: 3.25rem;
}

.section-subheading {
  font-size: 1.15rem;
  margin-top: 0.65rem;
}

/* Text Color Utilities */
.text-white { color: #ffffff; }
.text-cream { color: var(--c-warm-cream); }
.text-cream-light { color: rgba(255, 244, 232, 0.85); }
.text-yellow { color: var(--c-bright-yellow); }
.text-lime { color: var(--c-lime-green); }
.text-lavender { color: var(--c-lavender); }
.text-lavender-light { color: #E8DDFF; }
.text-navy { color: var(--c-deep-navy); }
.text-navy-muted { color: rgba(23, 23, 47, 0.75); }

/* Live Status Dot */
.live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.85rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--c-warm-cream);
  margin-left: 0.75rem;
}

.status-indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background: var(--c-lime-green);
  box-shadow: 0 0 10px var(--c-lime-green);
}

/* ==========================================================================
   SECTION 01: HERO & HEADER (Background: Deep Navy #17172F)
   ========================================================================== */
.section-hero-block {
  background-color: var(--c-deep-navy);
  color: #ffffff;
  position: relative;
  overflow: visible;
  z-index: 50;
  border-bottom: 4px solid var(--c-electric-blue);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(23, 23, 47, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-fast);
}

.header-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 1.15rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--c-bright-yellow);
  color: var(--c-deep-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(249, 220, 92, 0.4);
  transition: transform var(--transition-fast);
}

.brand:hover .brand-badge {
  transform: rotate(8deg) scale(1.05);
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--c-lavender);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 2px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.nav-btn:hover {
  background-color: var(--c-lime-green);
  color: var(--c-deep-navy);
  border-color: var(--c-lime-green);
}

.fav-nav-btn.active-filter {
  background-color: var(--c-lime-green);
  color: var(--c-deep-navy);
  border-color: var(--c-lime-green);
}

.badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--radius-full);
  background: var(--c-coral-pink);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
}

/* Hero Content */
.hero-section {
  padding: 5rem 2rem 5.5rem;
  max-width: 1320px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6.8vw, 5.5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-transform: lowercase;
  color: var(--c-warm-cream);
  max-width: 1100px;
  margin-bottom: 1.75rem;
}

.hero-description {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: rgba(255, 244, 232, 0.82);
  line-height: 1.6;
  max-width: 780px;
  margin-bottom: 3.25rem;
}

/* Search Box on Deep Navy */
.search-box-wrapper {
  width: 100%;
  max-width: 820px;
}

.search-box {
  display: flex;
  align-items: center;
  background-color: var(--c-warm-cream);
  border: 3px solid #ffffff;
  border-radius: var(--radius-xl);
  padding: 0.75rem 1.25rem 0.75rem 1.6rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  transition: var(--transition-fast);
}

.search-box:focus-within {
  border-color: var(--c-bright-yellow);
  box-shadow: 0 0 0 5px rgba(249, 220, 92, 0.4), 0 20px 45px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.search-icon {
  color: var(--c-deep-navy);
  margin-right: 1rem;
  flex-shrink: 0;
}

.search-input {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--c-deep-navy);
  font-size: 1.15rem;
  font-weight: 600;
  outline: none;
}

.search-input::placeholder {
  color: rgba(23, 23, 47, 0.55);
  font-weight: 500;
}

.clear-search-btn {
  background: rgba(23, 23, 47, 0.1);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  color: var(--c-deep-navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.5rem;
  flex-shrink: 0;
}

.clear-search-btn:hover {
  background: var(--c-vibrant-orange);
  color: #ffffff;
}

.search-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--c-deep-navy);
  background-color: rgba(23, 23, 47, 0.1);
  border: 1px solid rgba(23, 23, 47, 0.2);
  border-radius: var(--radius-sm);
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  margin-left: 0.65rem;
  user-select: none;
  pointer-events: none;
}

/* ==========================================================================
   SECTION 02: BENTO METRICS PILLARS (Background: Warm Cream #FFF4E8)
   ========================================================================== */
.section-metrics-block {
  background-color: var(--c-warm-cream);
  color: var(--c-deep-navy);
  border-bottom: 4px solid var(--c-soft-sky-blue);
}

.bento-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.bento-metric-card {
  border-radius: var(--radius-xl);
  padding: 2.75rem 2.2rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 15px 35px rgba(23, 23, 47, 0.08);
  transition: var(--transition-smooth);
}

.bento-metric-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(23, 23, 47, 0.16);
}

/* Card 1: Electric Blue */
.card-electric-blue {
  background-color: var(--c-electric-blue);
  color: #ffffff;
}

.card-electric-blue .bento-metric-number {
  color: var(--c-bright-yellow);
}

.card-electric-blue .bento-metric-desc {
  color: rgba(255, 255, 255, 0.85);
}

/* Card 2: Coral Pink */
.card-coral-pink {
  background-color: var(--c-coral-pink);
  color: #ffffff;
}

.card-coral-pink .bento-metric-number {
  color: var(--c-lime-green);
}

.card-coral-pink .bento-metric-desc {
  color: rgba(255, 255, 255, 0.88);
}

/* Card 3: Bright Yellow */
.card-bright-yellow {
  background-color: var(--c-bright-yellow);
  color: var(--c-deep-navy);
}

.card-bright-yellow .bento-metric-number {
  color: var(--c-deep-burgundy);
}

.card-bright-yellow .bento-metric-desc {
  color: rgba(23, 23, 47, 0.85);
}

.bento-metric-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

.bento-index {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.bento-metric-number {
  font-family: var(--font-heading);
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 0.65rem;
}

.bento-metric-label {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.bento-metric-desc {
  font-size: 0.95rem;
  line-height: 1.55;
  font-weight: 500;
}

/* ==========================================================================
   SECTION 03: SPOTLIGHT (Background: Soft Sky Blue #A8D9FF)
   ========================================================================== */
.section-spotlight-block {
  background-color: var(--c-soft-sky-blue);
  color: var(--c-deep-navy);
  border-bottom: 4px solid var(--c-electric-blue);
}

.spotlight-bento-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 2rem;
}

.spotlight-hero-card {
  grid-row: span 2;
  border-radius: var(--radius-xl);
  padding: 3.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 20px 45px rgba(23, 23, 47, 0.15);
  transition: var(--transition-smooth);
}

.spotlight-hero-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(101, 27, 67, 0.25);
}

.spotlight-sub-card {
  border-radius: var(--radius-xl);
  padding: 2.5rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 15px 35px rgba(23, 23, 47, 0.1);
  transition: var(--transition-smooth);
}

.spotlight-sub-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(23, 23, 47, 0.2);
}

/* Card 1: Deep Burgundy */
.card-deep-burgundy {
  background-color: var(--c-deep-burgundy);
  color: var(--c-warm-cream);
}

/* Card 2: Vibrant Orange */
.card-vibrant-orange {
  background-color: var(--c-vibrant-orange);
  color: #ffffff;
}

/* Card 3: Soft Lavender */
.card-soft-lavender {
  background-color: var(--c-lavender);
  color: var(--c-deep-navy);
}

.spotlight-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
}

.badge-lime { background: var(--c-lime-green); color: var(--c-deep-navy); }
.badge-navy { background: var(--c-deep-navy); color: #ffffff; }
.badge-burgundy { background: var(--c-deep-burgundy); color: #ffffff; }

.spotlight-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.spotlight-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.spotlight-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid;
}

.border-burgundy-light { border-color: rgba(255, 244, 232, 0.2); }
.border-orange-light { border-color: rgba(255, 255, 255, 0.25); }
.border-lavender-dark { border-color: rgba(23, 23, 47, 0.18); }

.spotlight-stat {
  font-size: 0.85rem;
  font-weight: 700;
}

.spotlight-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 800;
  transition: transform var(--transition-fast);
}

.spotlight-link:hover {
  transform: translateX(6px);
}

.link-yellow { color: var(--c-bright-yellow); }
.link-navy { color: var(--c-deep-navy); }
.link-burgundy { color: var(--c-deep-burgundy); }

/* ==========================================================================
   SECTION 04: DISCOVERY CONTROLS (Background: Electric Blue #5267FF)
   ========================================================================== */
.section-controls-block {
  background-color: var(--c-electric-blue);
  color: #ffffff;
  border-bottom: 4px solid var(--c-warm-cream);
}

.controls-header {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

/* Individual Pill Colorful Backgrounds */
.pill-yellow { background-color: var(--c-bright-yellow); color: var(--c-deep-navy); }
.pill-lavender { background-color: var(--c-lavender); color: var(--c-deep-navy); }
.pill-lime { background-color: var(--c-lime-green); color: var(--c-deep-navy); }
.pill-cream { background-color: var(--c-warm-cream); color: var(--c-deep-navy); }
.pill-sky { background-color: var(--c-soft-sky-blue); color: var(--c-deep-navy); }
.pill-coral { background-color: var(--c-coral-pink); color: #ffffff; }
.pill-orange { background-color: var(--c-vibrant-orange); color: #ffffff; }
.pill-mint { background-color: #A3F7BF; color: var(--c-deep-navy); }

.pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  border-color: #ffffff;
}

.pill.active {
  border-color: #ffffff;
  box-shadow: 0 0 0 3px #ffffff, 0 12px 30px rgba(0, 0, 0, 0.35);
  transform: translateY(-3px) scale(1.03);
}

.pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-full);
  background: rgba(23, 23, 47, 0.15);
  color: inherit;
}

.pill-coral .pill-count, .pill-orange .pill-count {
  background: rgba(255, 255, 255, 0.25);
}

.secondary-filters-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.pricing-filter-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.select-on-blue {
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  border: 2px solid #ffffff;
  background-color: var(--c-warm-cream);
  color: var(--c-deep-navy);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
}

.chip-on-blue {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  border: 2px solid #ffffff;
  background-color: transparent;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.chip-on-blue:hover {
  background-color: var(--c-bright-yellow);
  color: var(--c-deep-navy);
  border-color: var(--c-bright-yellow);
}

.chip-on-blue.active {
  background-color: var(--c-bright-yellow);
  color: var(--c-deep-navy);
  border-color: var(--c-bright-yellow);
}

.chip-on-blue.active svg {
  fill: var(--c-deep-navy);
}

/* ==========================================================================
   SECTION 05: DIRECTORY ARCHIVE (Background: Warm Neutral Cream #F7F4EE)
   ========================================================================== */
.section-directory-block {
  background-color: #F7F4EE;
  color: var(--c-deep-navy);
}

.results-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 2rem;
}

.results-count-container {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.meta-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--c-vibrant-orange);
}

.results-count-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-deep-navy);
}

.reset-link {
  background: none;
  border: none;
  color: var(--c-electric-blue);
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.reset-link:hover {
  color: var(--c-coral-pink);
}

/* ==========================================================================
   Colourful Editorial Cards Grid (No Dark Purple Glassmorphism)
   ========================================================================== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
}

.tool-card {
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(23, 23, 47, 0.06);
  border: 2px solid;
  transition: var(--transition-smooth);
}

.tool-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(23, 23, 47, 0.15);
}

/* Colorful Card Background Themes Based on Category */
.card-theme-chatbots {
  background-color: #F3EEFF;
  border-color: #C5A6FF;
}

.card-theme-coding {
  background-color: #F2FCE2;
  border-color: #98DB26;
}

.card-theme-image {
  background-color: #FFF0F3;
  border-color: #FF85A0;
}

.card-theme-video {
  background-color: #FFF2EC;
  border-color: #FFA585;
}

.card-theme-research {
  background-color: #EBF5FF;
  border-color: #7DD3FC;
}

.card-theme-writing {
  background-color: #FEFBE8;
  border-color: #FACC15;
}

.card-theme-productivity {
  background-color: #EDFAF3;
  border-color: #86EFAC;
}

.card-theme-default {
  background-color: #FFFFFF;
  border-color: #E5E0D8;
}

/* Card Header */
.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.card-title-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Bold Monogram Badge */
.tool-monogram {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.05em;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

/* Monogram Palette by Category */
.mono-chatbots { background-color: var(--c-deep-burgundy); }
.mono-coding { background-color: var(--c-electric-blue); }
.mono-image { background-color: var(--c-coral-pink); }
.mono-video { background-color: var(--c-vibrant-orange); }
.mono-research { background-color: #0284C7; }
.mono-writing { background-color: #D97706; }
.mono-productivity { background-color: #059669; }
.mono-default { background-color: var(--c-deep-navy); }

.tool-name-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tool-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--c-deep-navy);
  line-height: 1.15;
}

.featured-indicator {
  color: var(--c-vibrant-orange);
}

/* Bookmark Favorite Button */
.fav-btn {
  background: rgba(23, 23, 47, 0.08);
  border: 1px solid rgba(23, 23, 47, 0.15);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--c-deep-navy);
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.fav-btn:hover {
  transform: scale(1.12);
  background: var(--c-coral-pink);
  color: #ffffff;
  border-color: var(--c-coral-pink);
}

.fav-btn.favorited {
  background: var(--c-coral-pink);
  border-color: var(--c-coral-pink);
  color: #ffffff;
}

.fav-btn.favorited svg {
  fill: #ffffff;
  stroke: #ffffff;
}

/* Badges (Category & Pricing) */
.card-badges {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.15rem;
}

.category-tag {
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background-color: var(--c-deep-navy);
  color: #ffffff;
}

.pricing-badge {
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
}

.pricing-free {
  background: var(--c-lime-green);
  color: var(--c-deep-navy);
}

.pricing-paid {
  background: var(--c-coral-pink);
  color: #ffffff;
}

/* Card Body & Description */
.card-description {
  font-size: 0.96rem;
  color: rgba(23, 23, 47, 0.85);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

/* Keyword Match Highlight */
.search-highlight {
  background-color: var(--c-bright-yellow);
  color: var(--c-deep-navy);
  font-weight: 800;
  padding: 0.05rem 0.25rem;
  border-radius: 4px;
}

/* Subtags */
.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.tool-subtag {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(23, 23, 47, 0.75);
  background: rgba(23, 23, 47, 0.06);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
  display: inline-block;
  line-height: 1.2;
}

.tool-subtag:hover {
  background: var(--c-deep-navy);
  color: #ffffff;
  border-color: var(--c-deep-navy);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* Card Footer Action Button */
.card-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(23, 23, 47, 0.1);
}

.visit-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-md);
  background-color: var(--c-deep-navy);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 800;
  transition: var(--transition-smooth);
}

.visit-btn:hover {
  background-color: var(--c-electric-blue);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(82, 103, 255, 0.35);
}

.visit-btn svg {
  transition: transform var(--transition-fast);
}

.visit-btn:hover svg {
  transform: translateX(5px);
}

/* ==========================================================================
   SECTION 06: EDITORIAL FOOTER (Background: Deep Burgundy #651B43)
   ========================================================================== */
.section-footer-block {
  background-color: var(--c-deep-burgundy);
  color: #ffffff;
}

.app-footer {
  padding: 5rem 2rem 3.5rem;
}

.footer-container {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.footer-top-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3.5rem;
}

.footer-brand-header {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  margin-bottom: 1.25rem;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--c-bright-yellow);
  color: var(--c-deep-navy);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.92rem;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
}

.footer-tagline {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.65;
  max-width: 520px;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
}

.footer-nav-col a {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  transition: var(--transition-fast);
}

.footer-nav-col a:hover {
  color: var(--c-bright-yellow);
  transform: translateX(4px);
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-live-indicator {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--c-lime-green);
  font-weight: 700;
}

/* ==========================================================================
   Toast Notification Component
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 2.25rem;
  right: 2.25rem;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.6rem;
  background-color: var(--c-deep-navy);
  color: var(--c-bright-yellow);
  border: 2px solid var(--c-bright-yellow);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  font-size: 0.92rem;
  font-weight: 700;
  animation: slideUpToast 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity var(--transition-fast);
}

@keyframes slideUpToast {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Empty State Component
   ========================================================================== */
.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  background-color: #ffffff;
  border: 3px dashed rgba(23, 23, 47, 0.2);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 620px;
  margin: 2rem auto;
}

.empty-icon-bubble {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background: var(--c-coral-pink);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.empty-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--c-deep-navy);
}

.empty-message {
  color: rgba(23, 23, 47, 0.75);
  font-size: 1.05rem;
  max-width: 460px;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.btn-primary {
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-full);
  background: var(--c-electric-blue);
  color: #ffffff;
  border: none;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  background: var(--c-vibrant-orange);
  transform: translateY(-2px);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .bento-metrics-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .spotlight-bento-grid {
    grid-template-columns: 1fr;
  }

  .spotlight-hero-card {
    grid-row: span 1;
  }

  .footer-top-row {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0.85rem 1.25rem;
  }

  .header-nav {
    display: none;
  }

  .content-container {
    padding: 3.5rem 1.25rem;
  }

  .hero-section {
    padding: 3.5rem 1.25rem 3.5rem;
  }

  .hero-title {
    font-size: 2.75rem;
  }

  .search-kbd {
    display: none;
  }

  .tools-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .secondary-filters-row {
    flex-direction: column;
    align-items: stretch;
  }

  .toast {
    bottom: 1.25rem;
    left: 1.25rem;
    right: 1.25rem;
    justify-content: center;
  }
}

/* ==========================================================================
   Instant Search Dropdown & Quick Search (Brings Matches to the Front)
   ========================================================================== */
.search-box-wrapper {
  position: relative;
  width: 100%;
  max-width: 820px;
}

.search-jump-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: var(--c-electric-blue);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.42rem 0.85rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.76rem;
  cursor: pointer;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.search-jump-btn:hover {
  background-color: var(--c-deep-navy);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .search-jump-btn {
    display: none;
  }
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background-color: #ffffff;
  border: 3px solid var(--c-deep-navy);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  z-index: 150;
  overflow: hidden;
  text-align: left;
  animation: dropdownFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background-color: var(--c-warm-cream);
  border-bottom: 2px solid rgba(23, 23, 47, 0.1);
}

.dropdown-header-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-deep-navy);
}

.dropdown-count-badge {
  font-size: 0.72rem;
  font-weight: 700;
  background-color: var(--c-electric-blue);
  color: #ffffff;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
}

.search-dropdown-list {
  max-height: 380px;
  overflow-y: auto;
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid rgba(23, 23, 47, 0.08);
  cursor: pointer;
  transition: background-color var(--transition-fast);
  text-decoration: none;
  color: var(--c-deep-navy);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background-color: var(--c-warm-cream);
}

.dropdown-item-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.dropdown-item-mono {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.dropdown-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.dropdown-item-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--c-deep-navy);
}

.dropdown-item-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
}

.dropdown-item-category {
  font-weight: 700;
  color: rgba(23, 23, 47, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dropdown-item-pricing {
  font-weight: 800;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-sm);
  font-size: 0.68rem;
}

.dropdown-item-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dropdown-visit-btn {
  font-size: 0.74rem;
  font-weight: 700;
  background-color: var(--c-deep-navy);
  color: #ffffff;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.dropdown-visit-btn:hover {
  background-color: var(--c-electric-blue);
  color: #ffffff;
}

.dropdown-empty-msg {
  padding: 2.2rem 1.5rem;
  text-align: center;
  color: rgba(23, 23, 47, 0.65);
  font-weight: 600;
  font-size: 0.92rem;
}

.search-dropdown-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background-color: var(--c-warm-cream);
  border-top: 2px solid rgba(23, 23, 47, 0.1);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--c-deep-navy);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.search-dropdown-footer:hover {
  background-color: #ffffff;
  color: var(--c-electric-blue);
}

.search-dropdown-footer kbd {
  background-color: rgba(23, 23, 47, 0.12);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-family: inherit;
}

/* Directory In-Line Quick Search */
.directory-quick-search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #ffffff;
  border: 2px solid rgba(23, 23, 47, 0.15);
  border-radius: var(--radius-full);
  padding: 0.4rem 0.95rem;
  transition: all var(--transition-fast);
}

.directory-quick-search-box:focus-within {
  border-color: var(--c-electric-blue);
  box-shadow: 0 0 0 3px rgba(82, 103, 255, 0.2);
}

.directory-quick-search-box svg {
  color: rgba(23, 23, 47, 0.5);
}

.directory-search-input {
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--c-deep-navy);
  outline: none;
  width: 170px;
}

.directory-search-input::placeholder {
  color: rgba(23, 23, 47, 0.45);
}

@media (max-width: 768px) {
  .results-meta-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .directory-quick-search-box {
    width: 100%;
  }
  .directory-search-input {
    width: 100%;
  }
}

/* Card Flash Animation for Quick Jump */
@keyframes cardFlash {
  0% { transform: scale(1); outline: 4px solid var(--c-electric-blue); box-shadow: 0 0 30px rgba(82, 103, 255, 0.5); }
  50% { transform: scale(1.02); outline: 4px solid var(--c-bright-yellow); box-shadow: 0 0 35px rgba(249, 220, 92, 0.6); }
  100% { transform: scale(1); outline: 2px solid transparent; }
}

.card-flash-highlight {
  animation: cardFlash 1.6s ease-out;
}
