/* custom.css - Site-wide Custom Styles

   IMPORTANT: Multi-path Loading Strategy
   This file is loaded at multiple directory levels in index.html:
     <link rel="stylesheet" href="custom.css">         (root level)
     <link rel="stylesheet" href="../custom.css">      (one level deep)
     <link rel="stylesheet" href="../../../custom.css"> (three levels deep)

   This is necessary because pages exist at different depths (categories, series, models).
   Maintain ONE master file at the root and copy to subdirectories as needed.

   Known Conflicts:
   - index.html contains large inline <style> blocks that may override rules here
   - Inline styles for: font-face, cards, progress bars, badges, swipers
   - Custom.css rules use !important selectively to win specificity battles

   Structure:
   - Theme variables and base styles
   - Category grids and cards
   - Discussions and reviews
   - Form/modal hiding (Request Analysis removal)
   - Series/Model page filters removal
   - Mobile responsive adjustments
*/

/* =========================
   THEME
   ========================= */
:root{
  --bg:#ffffff;
  --surface:#ffffff;
  --surface2:#f8fafc;
  --text:#0f172a;
  --muted:rgba(15,23,42,0.70);
  --stroke:rgba(15,23,42,0.12);
  --shadow:0 10px 24px rgba(2,6,23,0.08);
  --shadow2:0 16px 34px rgba(2,6,23,0.12);
  --max:1120px;
  --radius:16px;

  /* Reviews */
  --review-text:#0f172a;
  --good-bg:rgba(34,197,94,0.14);
  --good-border:rgba(34,197,94,0.40);
  --neutral-bg:rgba(245,158,11,0.16);
  --neutral-border:rgba(245,158,11,0.45);
  --bad-bg:rgba(239,68,68,0.14);
  --bad-border:rgba(239,68,68,0.40);
}

/* Slightly smaller scale */
html{ font-size: 15px; }

*{ box-sizing: border-box; }

body{
  margin:0;
  min-height:100%;
  color:var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height:1.55;
  font-size:0.95rem;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(2,6,23,0.05), transparent 60%),
    var(--bg);
}

/* Center page content */
main,
#__nuxt > div,
#__layout > div{
  max-width: var(--max);
  margin-left:auto;
  margin-right:auto;
  padding: 14px 22px 44px;
}

/* =========================
   HEADINGS + TEXT
   ========================= */
h1{
  font-size: clamp(34px, 4.2vw, 54px);
  font-weight: 800;
  letter-spacing:-0.02em;
  line-height:1.06;
  margin: 6px 0 10px;
  color: var(--text);
}

h2{
  font-size: 1.15rem;
  color: var(--text);
  font-weight: 600;
  margin: 20px 0 16px;
  letter-spacing: -0.01em;
}

/* Keep subtitles muted */
.subtitle, .text-muted.fs-6 {
  color: var(--muted) !important;
}

h3{
  font-size: 1.02rem;
  margin: 18px 0 10px;
  color: var(--text);
}

p{
  color: var(--muted);
  margin: 10px 0;
  font-weight: 400;
}

/* Links */
a{
  color: var(--text);
  text-decoration: none;
}
a:hover{
  text-decoration: underline;
  text-decoration-color: rgba(15,23,42,0.35);
}

/* =========================
   HIDE EMOJIS IN TEXT
   ========================= */
h1, h2, h3, p, a, span, div{
  font-variant-emoji: text;
}
h1::before, h2::before, h3::before, p::before{
  content: none !important;
}
h1, h2, h3, p{
  letter-spacing: normal;
  font-feature-settings: "liga" 1;
}
img[alt*="emoji" i],
img.emoji{
  display: none !important;
}

/* =========================
   INPUTS + BUTTONS
   ========================= */
input{
  background: var(--surface);
  border: 1px solid rgba(15,23,42,0.16);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.95rem;
}
input::placeholder{
  color: rgba(15,23,42,0.45);
}

button, .btn{
  font-size: 0.92rem;
  border-radius: 12px;
  cursor: pointer;
}

/* =========================
   CATEGORY GRID
   Converts Bootstrap flex layout to CSS Grid for better card control.

   NOTE: These selectors are brittle and depend on specific Bootstrap class combinations.
   If you can edit the HTML generator, add a semantic class like "category-grid-container"
   or data-component="category-grid" for more stable targeting.

   Current approach: Target the specific combination used on category pages.
   ========================= */
.d-flex.flex-wrap.justify-content-center.mb-4{
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap: 18px !important;
  width: 100% !important;
  max-width: var(--max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  justify-items: stretch !important;
  align-items: stretch !important;
}

.d-flex.flex-wrap.justify-content-center.mb-4 > .mb-2.mx-1.text-center{
  margin: 0 !important;
  width: 100% !important;
}

.d-flex.flex-wrap.justify-content-center.mb-4 > .mb-2.mx-1.text-center > a{
  display: block !important;
  width: 100% !important;
}

/* Swiper safety, but non destructive */
.swiper,
.swiper-container{ overflow: visible !important; }
.swiper-wrapper{ transform: none !important; }
.swiper-slide{
  width: auto !important;
  margin: 0 !important;
  height: auto !important;
}
.swiper-button-prev,
.swiper-button-next,
.swiper-pagination{ display: none !important; }

/* =========================
   CARDS
   ========================= */
.card,
.swiper-slide .card,
.card.category-card{
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 14px;
  height: 100%;
  box-shadow: 0 2px 8px rgba(2,6,23,0.06), 0 8px 20px rgba(2,6,23,0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.card:hover{
  transform: translateY(-3px);
  background: var(--surface2);
  box-shadow: 0 4px 12px rgba(2,6,23,0.10), 0 12px 28px rgba(2,6,23,0.08);
  border-color: rgba(15,23,42,0.16);
}

.card.category-card{
  min-height: 220px;
}

.card.category-card .card-title,
.card h3,
.card h4{
  font-size: 0.98rem;
  margin: 10px 0 8px;
  color: var(--text) !important;
  font-weight: 650;
}

/* Images */
.card img,
img.category-image,
.category-image[data-v-eeed5d50]{
  width: 100%;
  height: 180px;
  max-height: 170px;
  object-fit: contain !important;
  background: #ffffff !important;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,0.08);
}

/* =========================
   REQUEST ANALYSIS
   Safe version only
   ========================= */
#requestCategoryModal,
.modal#requestCategoryModal,
#requestCategoryModalLabel,
[aria-labelledby="requestCategoryModalLabel"],
.modal-backdrop{
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

a[data-bs-toggle="modal"][data-bs-target="#requestCategoryModal"],
button[data-bs-toggle="modal"][data-bs-target="#requestCategoryModal"],
*[data-bs-target="#requestCategoryModal"]{
  display: none !important;
}

/* If there is a top corner wrapper for this UI */
.search-wrapper,
.search-container,
.search-container .input-group{
  display: none !important;
}

/* Pull content up slightly */
main{ padding-top: 10px !important; }

/* =========================
   CATEGORY AND LIST PAGES POLISH
   ========================= */
ul, ol{
  padding-left: 0;
  margin: 14px 0;
  list-style: none;
}

li{
  margin: 10px 0;
  color: var(--muted);
  font-size: 0.95rem;
}

li, .discussion, .discussion-item{
  background: var(--surface);
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 12px;
  padding: 10px 12px;
}

li a{
  color: var(--text);
  text-decoration: none;
}
li a:hover{
  text-decoration: underline;
  text-decoration-color: rgba(15,23,42,0.35);
}

hr{
  border: 0;
  height: 1px;
  background: rgba(15,23,42,0.10);
  margin: 22px 0;
}

strong, b{ font-weight: 650; }
p strong, p b{ font-weight: 600; }

small, .small, .text-muted{
  color: rgba(15,23,42,0.62) !important;
}

/* Tables */
table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(2,6,23,0.08);
}

th, td{
  padding: 10px 12px;
  border-bottom: 1px solid rgba(15,23,42,0.08);
  vertical-align: top;
}

th{
  background: var(--surface2);
  font-weight: 700;
  color: var(--text);
}

tr:last-child td{ border-bottom: 0; }

/* =========================
   REMOVE BROKEN UI
   ========================= */
input.form-control[placeholder^="e.g."],
input.form-control[placeholder="e.g. air fryer"],
input.form-control[aria-label="Search..."]{
  display: none !important;
}

button.btn.btn-outline-dark.fs-7.fw-medium,
.card-body.d-flex.align-items-center.justify-content-center > .btn.btn-outline-dark.fs-7.fw-medium[data-v-4fcee272]{
  display: none !important;
}

/* Hide the request modal trigger area if it is the old wrapper name */
.request-analysis,
#request-analysis,
.sidebar-request,
.requestBox,
aside.request{
  display: none !important;
}

/* =========================
   PROGRESS BARS
   ========================= */
.progress,
.progress-stacked,
.progress-bar,
.progress-bar-striped,
.progress-bar-animated{
  display: none !important;
}

div[style*="height: 6px"],
div[style*="height:6px"],
div[style*="height: 8px"],
div[style*="height:8px"],
div[style*="height: 10px"],
div[style*="height:10px"]{
  display: none !important;
}

/* Stats rows */
.card .d-flex.align-items-center{
  width: 100% !important;
  justify-content: center !important;
  gap: 8px !important;
  margin: 2px 0 !important;
  font-size: 0.95rem !important;
  line-height: 1.2 !important;
  font-weight: 600 !important;
}

.card .d-flex.flex-column,
.card .flex-column{
  align-items: center !important;
}

/* =========================
   CARD CTAS
   ========================= */
.card{
  display: flex;
  flex-direction: column;
}

.card .card-body{
  flex: 1 1 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.card .card-body > :last-child{
  margin-top: auto;
}

.card a.btn,
.card button.btn,
.card .btn{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: min(220px, 90%) !important;
  margin: 8px auto 0 !important;
  padding: 12px 14px !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

/* If CTAs are plain links, buttonize them */
.card a[href*="amazon"],
.card a[href*="amzn"],
.card a[href*="view-analysis"],
.card a[href*="analysis"]{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: min(220px, 90%) !important;
  margin: 8px auto 0 !important;
  padding: 12px 14px !important;
  border-radius: 12px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  background: #111 !important;
  color: #fff !important;
  border: 1px solid #111 !important;
  box-shadow: 0 10px 22px rgba(0,0,0,0.12) !important;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.card a[href*="amazon"]{
  background: #151515 !important;
  border-color: #151515 !important;
  opacity: 0.96;
}

.card a[href*="amazon"]:hover,
.card a[href*="amzn"]:hover,
.card a[href*="view-analysis"]:hover,
.card a[href*="analysis"]:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(0,0,0,0.16) !important;
  filter: brightness(1.05);
}

/* =========================
   DISCUSSIONS
   ========================= */

/* All discussions modal */
.modal-body{
  max-height: 70vh !important;
  overflow: auto !important;
  padding-right: 12px !important;
}

a.subm-list{
  display: block !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(15,23,42,0.12) !important;
  border-radius: 12px !important;
  background: #fff !important;
  text-decoration: none !important;
  transition: all 0.12s ease !important;
}

.modal-body .mb-2{
  margin-bottom: 10px !important;
}

a.subm-list p{
  margin: 0 !important;
  color: rgba(15,23,42,0.90) !important;
  font-size: 0.96rem !important;
  line-height: 1.45 !important;
  font-weight: 450 !important;
}

a.subm-list:hover{
  background: var(--surface2) !important;
  border-color: rgba(15,23,42,0.22) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(2,6,23,0.06) !important;
}

/* Make reddit link lists scrollable when :has is supported */
@supports(selector(:has(*))){
  ul:has(a[href*="reddit.com/r/"]),
  ol:has(a[href*="reddit.com/r/"]){
    max-height: 340px !important;
    overflow: auto !important;
    padding: 10px 12px !important;
    margin: 12px 0 18px !important;
    border: 1px solid rgba(15,23,42,0.12) !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    box-shadow: 0 10px 24px rgba(2,6,23,0.06) !important;
  }

  ul:has(a[href*="reddit.com/r/"]) li,
  ol:has(a[href*="reddit.com/r/"]) li{
    margin: 0 !important;
    padding: 10px 8px !important;
    border-bottom: 1px solid rgba(15,23,42,0.08) !important;
  }

  ul:has(a[href*="reddit.com/r/"]) li:last-child,
  ol:has(a[href*="reddit.com/r/"]) li:last-child{
    border-bottom: 0 !important;
  }

  ul:has(a[href*="reddit.com/r/"]) a,
  ol:has(a[href*="reddit.com/r/"]) a{
    display: inline-block !important;
    color: rgba(15,23,42,0.92) !important;
    text-decoration: none !important;
    line-height: 1.35 !important;
  }

  ul:has(a[href*="reddit.com/r/"]) a:hover,
  ol:has(a[href*="reddit.com/r/"]) a:hover{
    text-decoration: underline !important;
    text-decoration-color: rgba(0,0,0,0.25) !important;
  }

  ul:has(a[href*="reddit.com/r/"]) + a,
  ol:has(a[href*="reddit.com/r/"]) + a{
    display: none !important;
  }

  /* Only scroll the specific container that directly holds the rows */
  main :is(div, section):has(> .mb-2 > a.subm-list){
    max-height: 260px !important;
    overflow: auto !important;
    padding-right: 10px !important;
  }
}

/* Remove preview block */
.subm-list-container{
  display: none !important;
}

/* Optional: keep the all discussions container unconstrained */
.all-discussions,
#allDiscussions,
.discussions,
.discussion-list{
  max-height: none !important;
  overflow: visible !important;
}

/* =========================
   SERIES PAGES: REMOVE TOPICS FILTER COLUMN
   Keep one set of rules
   ========================= */
@supports(selector(:has(*))){
  main .row:has(input[data-attr="use-case-filter-checkbox"]) > div.col-md-3{
    display: none !important;
  }

  main .row:has(input[data-attr="use-case-filter-checkbox"]) > div.col-md-9{
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  main h2:has(+ div:has(input[data-attr="use-case-filter-checkbox"])){
    display: none !important;
  }
}

/* Fallback */
input[data-attr="use-case-filter-checkbox"],
label[for^="useCase-"]{
  display: none !important;
}

/* =========================
   REVIEWS
   One consolidated block
   ========================= */

/* Stop the sentiment pill from overlapping content */
.overall-good,
.overall-neutral,
.overall-bad{
  position: static !important;
  top: auto !important;
  margin: 0 0 12px 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  padding: 5px 11px !important;
  border-radius: 999px !important;
  font-weight: 750 !important;
  font-size: 0.90rem !important;
  letter-spacing: 0.01em !important;
  text-transform: capitalize !important;
}

/* Ensure View Analysis copy is not inheriting grey */
.opinion-card,
.opinion-card *{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
}

.opinion-card{
  background: #ffffff !important;
  border: 1px solid rgba(15,23,42,0.12) !important;
  border-radius: 14px !important;
  padding: 14px 14px 12px !important;
  box-shadow: 0 8px 20px rgba(2,6,23,0.06) !important;
  margin: 14px 0 !important;
}

h2.fs-5.fw-bold{
  color: var(--review-text) !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em;
  margin-top: 18px !important;
  margin-bottom: 10px !important;
}

hr.mt-1.mb-3{
  border: 0 !important;
  height: 1px !important;
  background: rgba(15,23,42,0.14) !important;
}

.opinion-card .opinion-content,
.opinion-card .opinion-content p,
.opinion-card .opinion-content div{
  color: var(--review-text) !important;
  font-size: 1.05rem !important;
  line-height: 1.65 !important;
}

.opinion-card .opinion-content > div,
.opinion-card .opinion-content > p{
  position: relative !important;
  padding-left: 18px !important;
  margin: 12px 0 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

.opinion-card .opinion-content > div::before,
.opinion-card .opinion-content > p::before{
  content: "•" !important;
  position: absolute !important;
  left: 0 !important;
  top: 0.05em !important;
  color: rgba(15,23,42,0.70) !important;
  font-weight: 900 !important;
  font-size: 1.1em !important;
}

/* Pills with no :has dependency */
.opinion-card .overall-good{
  background: var(--good-bg) !important;
  border: 1px solid var(--good-border) !important;
  color: #166534 !important;
}
.opinion-card .overall-neutral{
  background: var(--neutral-bg) !important;
  border: 1px solid var(--neutral-border) !important;
  color: #92400e !important;
}
.opinion-card .overall-bad{
  background: var(--bad-bg) !important;
  border: 1px solid var(--bad-border) !important;
  color: #991b1b !important;
}

/* Replace long separators inside review blocks */
.opinion-card hr,
.opinion-card .hr,
.opinion-card .border-top{
  border: 0 !important;
  height: 1px !important;
  background: rgba(15,23,42,0.10) !important;
  margin: 12px 0 !important;
}

/* Likes accordion */
#likesAccordion,
.accordion#likesAccordion{
  margin-top: 10px !important;
}

#likesAccordion .accordion-item{
  border: 1px solid rgba(15,23,42,0.12) !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 8px 20px rgba(2,6,23,0.06) !important;
  margin: 12px 0 !important;
}

#likesAccordion .accordion-button{
  background: #ffffff !important;
  color: var(--review-text) !important;
  font-weight: 800 !important;
  font-size: 1.10rem !important;
  letter-spacing: -0.01em !important;
  padding: 14px 16px !important;
  transition: background 0.15s ease, color 0.15s ease !important;
}

#likesAccordion .accordion-button:not(.collapsed){
  background: rgba(15,23,42,0.05) !important;
  color: rgba(15,23,42,0.95) !important;
}

#likesAccordion .accordion-button:hover{
  background: rgba(15,23,42,0.03) !important;
}

#likesAccordion .accordion-body,
#likesAccordion .accordion-body p,
#likesAccordion .accordion-body div{
  background: #ffffff !important;
  color: var(--review-text) !important;
  font-size: 1.05rem !important;
  line-height: 1.75 !important;
  padding: 12px 14px !important;
}

#likesAccordion .accordion-body > div,
#likesAccordion .accordion-body > p{
  position: relative !important;
  padding-left: 18px !important;
  margin: 12px 0 !important;
}

#likesAccordion .accordion-body > div::before,
#likesAccordion .accordion-body > p::before{
  content: "•" !important;
  position: absolute !important;
  left: 0 !important;
  top: 0.05em !important;
  color: rgba(15,23,42,0.70) !important;
  font-weight: 900 !important;
  font-size: 1.1em !important;
}

/* =========================
   MOBILE
   ========================= */
@media (max-width: 520px){
  main,
  #__nuxt > div,
  #__layout > div{
    padding: 12px 16px 30px;
  }

  .d-flex.flex-wrap.justify-content-center.mb-4{
    grid-template-columns: 1fr !important;
  }

  .card img,
  img.category-image{
    height: 160px;
  }

  h1{
    font-size: clamp(28px, 7vw, 40px);
  }
}

/* =========================
   PATCH: ACCESSIBLE FOCUS
   ========================= */

:where(a, button, input, textarea, select):focus-visible{
  outline: 2px solid rgba(59,130,246,0.85);
  outline-offset: 2px;
  border-radius: 10px;
}

/* =========================
   INLINE STYLE CONFLICTS & NOTES
   ========================= */

/* The following elements have inline styles in index.html that may conflict with this CSS:

   1. CARDS (index.html inline <style> block):
      - .card { border, border-radius, box-shadow, cursor, display, flex-direction, height }
      - .card:hover { opacity }
      - .card-body { display, flex-direction, flex-grow }
      - .card-img { height, object-fit, padding }

      RESOLUTION: Our custom.css uses !important selectively and higher specificity.
      Most card styling here will override inline styles successfully.

   2. CATEGORY CARDS (data-v-eeed5d50 scoped styles):
      - .category-card { border, cursor, height, width }
      - .category-image { max-height, object-fit }

      RESOLUTION: Our .card.category-card and img.category-image rules are more specific
      and include !important where needed.

   3. PROGRESS BARS (inline styles):
      - .aspect-bars-sect .progress { height: 6px, margin-bottom }
      - .bar-positive, .bar-neutral, .bar-negative { background-color }

      RESOLUTION: We hide ALL progress bars with display: none !important.
      This prevents any rendering regardless of inline styles.

   4. BADGES (inline styles):
      - .badge-good, .badge-mixed, .badge-poor { background-color, color, font-size, padding, position, top }

      RESOLUTION: We restyle .overall-good, .overall-neutral, .overall-bad with position: static
      and different padding/margins. Our specificity wins.

   5. SWIPERS (inline styles):
      - .swiper-button-next, .swiper-button-prev { background, border, border-radius, box-shadow, height, width, top }

      RESOLUTION: We set overflow: visible and display: none !important on controls.
      Inline styles are effectively neutralized.

   6. FONT FACES (@font-face blocks):
      - Multiple Inter font-face declarations with unicode-range

      NO CONFLICT: Font loading doesn't conflict with our styles.

   Safe to Remove from index.html (if you can regenerate templates):
   - Progress bar styles (we hide them completely)
   - Swiper button styles (we hide them completely)
   - Badge positioning styles (we override completely)

   Keep in index.html (needed):
   - Font-face declarations (unless you move to external CSS)
   - Base card structure (we enhance, not replace)
   - Scoped Vue component styles (data-v-* attributes)
*/

/* =========================
   MODELS: REMOVE SEARCH AND FILTER CONTROLS ONLY
   Keeps the models list, removes the UI bar and dropdown menus.
   ========================= */

@supports(selector(:has(*))){

  /* Hide the top controls bar when it contains either:
     - the product search modal trigger, or
     - the filter dropdown trigger */
  :where(main, .modal-content, .modal) 
    :where(.d-flex.flex-wrap.gap-2, .d-flex.gap-2, .d-flex.flex-wrap)
    :has(button[aria-label="Search products"]),
  :where(main, .modal-content, .modal)
    :where(.d-flex.flex-wrap.gap-2, .d-flex.gap-2, .d-flex.flex-wrap)
    :has(button[data-bs-target="#productSearchModal"]),
  :where(main, .modal-content, .modal)
    :where(.d-flex.flex-wrap.gap-2, .d-flex.gap-2, .d-flex.flex-wrap)
    :has(button[data-attr="use-case-filter-button"]){
      display: none !important;
  }

  /* Hide dropdown menus that contain the filter content */
  :where(main, .modal-content, .modal)
    .dropdown-menu:has(button[data-attr="use-case-filter-button"]),
  :where(main, .modal-content, .modal)
    .dropdown-menu:has(.text-secondary.fs-7),
  :where(main, .modal-content, .modal)
    .dropdown-menu:has(input[type="checkbox"], input[type="number"], input[type="text"]){
      display: none !important;
  }
}

/* Hide the menu that immediately follows the filter button (Bootstrap pattern) */
button[data-attr="use-case-filter-button"] + .dropdown-menu{
  display: none !important;
}

/* =========================
   REMOVE RANK BADGE NUMBER EVERYWHERE
   ========================= */

.index-number[aria-label^="Rank"]{
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
/* =========================
   MODEL AND PRODUCT CARDS: SENTIMENT COUNTS
   Makes the remaining counts (with progress bars hidden) look readable and sleek.
   Left to right, centered below the product title.
   ========================= */

/* Horizontal, centered strip */
.card .sentiment-scores{
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 10px 0 6px !important;
  width: 100% !important;
}

/* Each sentiment row becomes a compact pill */
.card .sentiment-scores .sentiment-row{
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 10px !important;
  border: 1px solid rgba(15,23,42,0.10) !important;
  border-radius: 999px !important;
  background: rgba(15,23,42,0.03) !important;
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

/* Make sure Bootstrap row layout does not force stacking */
.card .sentiment-scores .sentiment-row,
.card .sentiment-scores .sentiment-count{
  width: auto !important;
  margin: 0 !important;
}

/* Make the icon and number readable */
.card .sentiment-scores i{
  font-size: 0.95rem !important;
  line-height: 1 !important;
}

.card .sentiment-scores .sentiment-count{
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.card .sentiment-scores .sentiment-count span{
  font-size: 0.98rem !important;
  font-weight: 750 !important;
  color: rgba(15,23,42,0.85) !important;
}

/* Subtle semantic tinting, still professional */
.card .sentiment-scores .row-positive{
  background: rgba(34,197,94,0.10) !important;
  border-color: rgba(34,197,94,0.22) !important;
}

.card .sentiment-scores .row-neutral{
  background: rgba(245,158,11,0.08) !important;
  border-color: rgba(245,158,11,0.20) !important;
}

.card .sentiment-scores .row-negative{
  background: rgba(239,68,68,0.10) !important;
  border-color: rgba(239,68,68,0.22) !important;
}

/* =========================
   CARD CLICKABLE OVERLAY
   Makes entire card clickable when it contains a button/link
   ========================= */
.card {
  position: relative;
}

.card a.btn {
  position: relative;
  z-index: 2;
}

/* Create clickable overlay for cards with buttons */
.card:has(a.btn)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: pointer;
  pointer-events: auto;
}

.card:has(a.btn):hover::before {
  background: rgba(0,0,0,0.02);
}

/* Make images show pointer cursor when card is clickable */
.card:has(a.btn) img {
  cursor: pointer;
}

/* Add subtle hover effect to images in clickable cards */
.card:has(a.btn):hover img {
  opacity: 0.95;
  transition: opacity 0.15s ease;
}

/* Style for JavaScript-wrapped image links */
.card-img-link {
  display: block;
  transition: opacity 0.15s ease;
}

.card-img-link:hover {
  opacity: 0.95;
}

.card-img-link img {
  cursor: pointer;
}
