/* ==========================================================
   topQuestions.css — Top 15 Questions Widget Styles
   ========================================================== */

/* Full-width card spans the entire insight grid */
.insight-card--full-width {
  grid-column: 1 / -1;
  height: auto;
  max-height: none;
}
.insight-card--full-width .insight-card__header {
  justify-content: flex-start;
  padding: 16px 20px;
  font-size: 1.05rem;
}
.insight-card--full-width .insight-card__body--full {
  overflow-y: visible;
  flex-direction: column;
  padding: 0 20px 20px;
}

/* List container — four columns on wide screens */
.tq-list {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 28px;
}

/* Single question item */
.tq-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color, rgba(128,128,128,0.15));
  align-items: flex-start;
}
.tq-item:last-child {
  border-bottom: none;
}

/* Rank badge */
.tq-rank {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
}

/* Content area */
.tq-content {
  flex: 1;
  min-width: 0;
}

/* Arabic question */
.tq-question {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main, #e6edf3);
  line-height: 1.5;
  margin-bottom: 2px;
}

/* English translation */
.tq-question-en {
  font-size: 0.8rem;
  color: var(--text-muted, #8b949e);
  line-height: 1.4;
  margin-bottom: 6px;
}

/* Meta row: category + frequency + samples toggle */
.tq-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.78rem;
  margin-bottom: 6px;
}
.tq-cat {
  font-weight: 600;
}
.tq-freq {
  color: var(--text-muted, #8b949e);
}
.tq-freq i {
  margin-inline-end: 3px;
}

/* Samples toggle button */
.tq-samples-btn {
  background: none;
  border: 1px solid var(--border-color, rgba(128,128,128,0.2));
  border-radius: 6px;
  color: var(--text-muted, #8b949e);
  font-size: 0.75rem;
  padding: 2px 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.tq-samples-btn:hover,
.tq-samples-btn.active {
  background: var(--bg-card, #161b22);
  color: var(--primary-green, #22c55e);
  border-color: var(--primary-green, #22c55e);
}

/* Frequency bar */
.tq-bar-track {
  height: 4px;
  border-radius: 2px;
  background: var(--border-color, rgba(128,128,128,0.15));
  margin-bottom: 4px;
}
.tq-bar {
  height: 100%;
  border-radius: 2px;
  transition: width 0.6s ease;
}

/* Sample messages */
.tq-samples {
  margin-top: 8px;
  padding: 8px 12px;
  background: var(--bg-main, #0d1117);
  border-radius: 6px;
  border: 1px solid var(--border-color, rgba(128,128,128,0.15));
}
.tq-sample {
  font-size: 0.78rem;
  color: var(--text-muted, #8b949e);
  padding: 4px 0;
  border-bottom: 1px dashed var(--border-color, rgba(128,128,128,0.1));
  line-height: 1.5;
}
.tq-sample:last-child {
  border-bottom: none;
}

/* Responsive */
@media (max-width: 1400px) {
  .tq-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 1024px) {
  .tq-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .tq-item {
    gap: 10px;
    padding: 10px 0;
  }
  .tq-rank {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
  }
  .tq-question {
    font-size: 0.85rem;
  }
}
