/* ==========================================================================
   Forex Strategy Studio: AI Analysis listing (i18n/en|ar/ai-analysis.html),
   loaded after site.css.

   The report cards are written by the publishing pipeline from its card
   template; this file only styles them. Cards: 1 column on phones, 2 from
   768px, 3 from 1200px. RTL (Arabic) uses the same rules via logical
   properties.
   ========================================================================== */

/* ---------- Page top ---------- */

.list-top {
  border-bottom: 1px solid var(--line);
  background-color: var(--bg-alt);
  background-image: radial-gradient(rgba(var(--gold-rgb), 0.13) 1px, transparent 1px);
  background-size: 18px 18px;
}

.list-top__inner {
  padding-top: 28px;
  padding-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.list-top__row {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.list-top__heading {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.list-top__title {
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.list-top__lead {
  max-width: 700px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-5);
}

.list-search {
  flex-shrink: 0;
  height: 46px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(var(--gold-rgb), 0.28);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-6);
  cursor: text;
}

.list-search:focus-within {
  border-color: rgba(var(--gold-rgb), 0.6);
}

.list-search svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.list-search input {
  flex-grow: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  /* 16px stops phones from zooming into the field. */
  font-size: 16px;
}

.list-search input::placeholder {
  color: var(--text-6);
}

.list-search input::-webkit-search-cancel-button {
  filter: sepia(1) saturate(2) hue-rotate(5deg);
}

.list-search kbd {
  display: none;
  min-width: 20px;
  height: 22px;
  padding: 0 6px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(var(--gold-rgb), 0.3);
  border-radius: 5px;
  color: var(--text-5);
  font-family: var(--mono);
  font-size: 11px;
}

/* How each report is made: hidden on phones, as in the mobile mockup. */
.list-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.list-steps__step {
  height: 30px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(var(--gold-rgb), 0.22);
  border-radius: 15px;
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
}

.list-steps__step--result {
  background: rgba(var(--gold-rgb), 0.1);
  color: var(--gold-hi);
}

.list-steps__arrow {
  color: #6F6B60;
}

@media (min-width: 768px) {
  .list-top__inner {
    padding-top: 48px;
    padding-bottom: 44px;
  }

  .list-top__lead {
    font-size: 17px;
  }

  .list-steps {
    display: flex;
  }
}

@media (min-width: 992px) {
  .list-top__row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 48px;
  }

  .list-search {
    width: 300px;
  }

  .list-search input {
    font-size: 14px;
  }

  .list-search kbd {
    display: inline-flex;
  }
}

/* ---------- Report list ---------- */

.list-main {
  padding-top: 20px;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.list-main__head {
  padding-bottom: 8px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.list-main__head h2 {
  font-size: 17px;
  font-weight: 600;
}

.list-main__count {
  font-size: 12px;
  color: var(--text-6);
}

.card-grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 768px) {
  .list-main {
    padding-top: 40px;
    padding-bottom: 72px;
    gap: 24px;
  }

  .list-main__head {
    padding-bottom: 12px;
  }

  .list-main__head h2 {
    font-size: 20px;
  }

  .list-main__count {
    font-size: 13px;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 1200px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

/* ---------- Report card (markup from the pipeline's card template) ---------- */

.report-card {
  min-width: 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid rgba(var(--gold-rgb), 0.18);
  border-radius: 14px;
  background: var(--surface);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.report-card:hover {
  border-color: rgba(var(--gold-rgb), 0.45);
  transform: translateY(-2px);
}

.report-card[hidden] {
  display: none;
}

.report-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.report-card__title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.report-card__pair {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.report-card__date {
  font-size: 12px;
  color: var(--text-6);
}

.report-card__signal {
  flex-shrink: 0;
  height: 28px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.report-card__signal--sell { color: #F0716B; background: rgba(240, 113, 107, 0.12); }
.report-card__signal--buy { color: #5CC99A; background: rgba(92, 201, 154, 0.12); }
.report-card__signal--neutral { color: var(--text-4); background: rgba(255, 255, 255, 0.06); }

.report-card__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.report-card__tf-tabs {
  display: flex;
  gap: 2px;
}

.report-card__tf-tab {
  height: 26px;
  min-width: 38px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-6);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.report-card__tf-tab:hover {
  color: var(--text-3);
}

.report-card__tf-tab[aria-selected="true"] {
  background: rgba(var(--gold-rgb), 0.14);
  color: var(--gold-hi);
}

.report-card__current {
  height: 24px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(92, 201, 154, 0.35);
  border-radius: 12px;
  color: #7DD9AE;
  font-size: 11px;
  font-weight: 600;
}

.report-card__current[hidden] {
  display: none;
}

.report-card__current i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5CC99A;
  box-shadow: 0 0 0 3px rgba(92, 201, 154, 0.18);
}

.report-card__summary {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
}

.report-card__data {
  margin: 0;
  padding-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  border-top: 1px solid rgba(var(--gold-rgb), 0.1);
}

.report-card__data-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.report-card__data dt {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-6);
}

.report-card__data dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  overflow-wrap: anywhere;
}

.report-card__foot {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(var(--gold-rgb), 0.1);
}

.report-card__sentiment {
  font-size: 12px;
  color: var(--text-6);
}

.report-card__sentiment-value {
  font-weight: 600;
  color: var(--text-4);
}

.report-card__sentiment-value[data-sentiment="bearish"] { color: #F0716B; }
.report-card__sentiment-value[data-sentiment="bullish"] { color: #5CC99A; }

.report-card__link {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .report-card {
    padding: 22px;
    gap: 16px;
  }

  .report-card__pair {
    font-size: 20px;
  }

  .report-card__summary {
    min-height: 72px;
    font-size: 15px;
  }

  .report-card__data {
    padding-top: 14px;
    gap: 12px 10px;
  }

  .report-card__data dt {
    font-size: 10px;
  }

  .report-card__data dd {
    font-size: 14px;
  }

  .report-card__foot {
    padding-top: 12px;
  }
}

/* ---------- Empty search, disclaimer ---------- */

.list-empty {
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border: 1px dashed rgba(var(--gold-rgb), 0.3);
  border-radius: 14px;
  text-align: center;
}

.list-empty[hidden] {
  display: none;
}

.list-empty p {
  font-size: 17px;
  font-weight: 600;
}

.list-empty button {
  height: 40px;
  padding: 0 18px;
  border: 1px solid rgba(var(--gold-rgb), 0.45);
  border-radius: 20px;
  background: transparent;
  color: var(--gold-hi);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}

.list-empty button:hover {
  border-color: var(--gold);
}

.list-disclaimer {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-6);
}

/* ---------- In the app ---------- */

.list-app {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
}

.list-app__inner {
  padding-top: 48px;
  padding-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.list-app__head {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.list-app__head .eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.list-app__head h2 {
  font-size: clamp(24px, 5.6vw, 32px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.list-app__head p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-4);
}

.list-app__cards {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.list-app__card {
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid rgba(var(--gold-rgb), 0.18);
  border-radius: 14px;
  background: var(--surface);
}

.list-app__n {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gold);
}

.list-app__card h3 {
  font-size: 18px;
  font-weight: 600;
}

.list-app__card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-5);
}

@media (min-width: 768px) {
  .list-app__inner {
    padding-top: 64px;
    padding-bottom: 64px;
    gap: 36px;
  }

  .list-app__cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .list-app__card {
    padding: 26px 24px;
  }
}
