/*
 * The feedback feed page is a public moderated stream, so the styling stays
 * simple and card-based like the original prototype.
 */

.feedback-page [data-feedback-feed] {
  width: min(100%, 72rem);
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  align-items: start;
}

.feedback-item-card {
  max-width: none;
  min-height: 100%;
  padding: 1.2rem 1.2rem 1.05rem;
  border-radius: 22px;
  border: 1px solid rgba(37, 99, 235, 0.1);
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 35%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  box-shadow: 0 18px 34px -28px rgba(15, 23, 42, 0.34);
}

.feedback-item-footer {
  margin-top: 0;
}

.feedback-item-card .response-box {
  margin-top: 0;
  border-radius: 16px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.06), rgba(37, 99, 235, 0.02));
}

.feedback-item-card .response-box p {
  margin: 0;
  line-height: 1.6;
}

.feedback-item-card .feedback-shell-actions {
  gap: 0.6rem;
}

.feedback-item-card .feedback-shell-support {
  align-self: flex-start;
}

body.theme-dark .feedback-item-card {
  border-color: rgba(96, 165, 250, 0.16);
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.94));
  box-shadow: 0 18px 34px -28px rgba(2, 6, 23, 0.6);
}

body.theme-dark .feedback-item-card .response-box {
  border-color: rgba(96, 165, 250, 0.16);
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.12), rgba(30, 41, 59, 0.82));
}

@media (max-width: 640px) {
  .feedback-page [data-feedback-feed] {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .feedback-item-card {
    max-width: none;
    padding: 1rem;
    border-radius: 18px;
  }

  .feedback-item-card .feedback-shell-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .feedback-item-card .feedback-shell-rating {
    justify-items: end;
    min-width: 5.1rem;
    padding: 0.68rem 0.72rem;
  }

  .feedback-item-card .feedback-shell-score {
    justify-content: flex-end;
  }

  .feedback-item-footer {
    gap: 0.8rem;
  }

  .feedback-item-card .feedback-shell-support {
    width: 100%;
    justify-content: center;
  }
}

/*feedback feed scroll horizontally */
[data-feedback-feed] {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 1rem !important;
    padding: 0.5rem 0.25rem 1rem 0.25rem !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
}

/*Style each feedback card */
[data-feedback-feed] .feedback-item,
[data-feedback-feed] > * {
    flex: 0 0 320px !important; /* Fixed width for each card */
    scroll-snap-align: start !important;
    min-height: 180px !important;
    max-width: 320px !important;
}

/*Custom scrollbar styling */
[data-feedback-feed]::-webkit-scrollbar {
    height: 8px;
}

[data-feedback-feed]::-webkit-scrollbar-track {
    background: var(--bg-muted, #f1f1f1);
    border-radius: 4px;
}

[data-feedback-feed]::-webkit-scrollbar-thumb {
    background: var(--primary-color, #2c7da0);
    border-radius: 4px;
}

[data-feedback-feed]::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark, #1a5a7a);
}