/*
|--------------------------------------------------------------------------
| BeginnerSkate question pages
|--------------------------------------------------------------------------
*/

.questions-page,
.individual-question-page,
.question-not-found {
  width: min(
    var(--page-width),
    calc(100% - 32px)
  );

  margin: 0 auto;
  padding: 64px 0 110px;
}

.questions-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;

  padding: clamp(36px, 7vw, 72px);

  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(255, 255, 255, 0.2),
      transparent 27%
    ),
    linear-gradient(
      135deg,
      #23194e,
      #5b4bff 52%,
      #ff4f8b
    );

  border-radius: var(--radius-large);
  color: #ffffff;

  box-shadow: var(--shadow-large);
}

.questions-hero h1 {
  max-width: 850px;
  margin: 16px 0 20px;

  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: 0.89;
  letter-spacing: -0.075em;
}

.questions-hero p:last-child {
  max-width: 700px;
  margin: 0;

  color: rgba(255, 255, 255, 0.78);
  line-height: 1.75;
}

.questions-hero .eyebrow {
  color: rgba(255, 255, 255, 0.84);
}

.questions-hero .eyebrow::before {
  background: #ffffff;
}

.question-submit-button {
  flex: 0 0 auto;

  padding: 14px 20px;

  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;

  color: #ffffff;
  font-weight: 900;
  text-decoration: none;
}

.questions-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  margin: 28px 0;
  padding: 18px 22px;

  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);

  box-shadow: var(--shadow-small);
}

.questions-toolbar div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.questions-toolbar strong {
  font-size: 1.4rem;
}

.questions-toolbar span {
  color: var(--color-muted);
}

.questions-toolbar a {
  color: var(--color-primary);
  font-weight: 850;
  text-decoration: none;
}

.question-grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(310px, 1fr));

  gap: 22px;
}

.question-card {
  display: flex;
  flex-direction: column;

  min-height: 370px;
  padding: 28px;

  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-medium);

  box-shadow: var(--shadow-medium);

  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.question-card:hover {
  transform: translateY(-7px);

  box-shadow:
    0 30px 65px
    rgba(54, 64, 126, 0.2);
}

.question-card-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.question-card-topline span {
  padding: 6px 10px;

  background: rgba(91, 75, 255, 0.09);
  border-radius: 999px;

  color: var(--color-primary);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.question-card h2 {
  margin: 24px 0 16px;

  font-size: 1.55rem;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.question-card h2 a {
  text-decoration: none;
}

.question-card > p {
  margin: 0;

  color: var(--color-muted);
  line-height: 1.72;
}

.question-topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  margin-top: 22px;
}

.question-topic {
  padding: 6px 9px;

  background: #f1f4fb;
  border-radius: 9px;

  color: #667085;
  font-size: 0.76rem;
  font-weight: 750;
}

.question-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  margin-top: auto;
  padding-top: 28px;
}

.question-card-footer span {
  color: var(--color-muted);
  font-size: 0.82rem;
}

.question-card-footer a {
  color: var(--color-primary);
  font-weight: 900;
  text-decoration: none;
}

.question-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;

  width: fit-content;
  margin-bottom: 28px;
  padding: 11px 15px;

  background: rgba(255, 255, 255, 0.86);
  border-radius: 999px;

  color: var(--color-muted);
  font-size: 0.8rem;

  box-shadow: var(--shadow-small);
}

.question-breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
}

.question-detail-card {
  padding: clamp(36px, 7vw, 72px);

  background:
    radial-gradient(
      circle at 90% 5%,
      rgba(255, 255, 255, 0.18),
      transparent 30%
    ),
    linear-gradient(
      140deg,
      #111426,
      #4032d8 55%,
      #7f50ff
    );

  border-radius: var(--radius-large);
  color: #ffffff;

  box-shadow: var(--shadow-large);
}

.question-detail-card h1 {
  max-width: 880px;
  margin: 24px 0 26px;

  font-size: clamp(3rem, 8vw, 6.2rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.question-primary-text {
  max-width: 800px;
  margin: 0;

  color: #ffffff;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 700;
  line-height: 1.55;
}

.question-details {
  max-width: 780px;
  margin-top: 32px;
  padding: 25px;

  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-medium);
}

.question-details h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.question-details p {
  margin: 0;

  color: rgba(255, 255, 255, 0.76);
  line-height: 1.78;
}

.question-detail-card .question-topic {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.84);
}

.question-author {
  margin-top: 30px;

  color: rgba(255, 255, 255, 0.66);
}

.question-author strong {
  color: #ffffff;
}

.question-answers-section {
  margin: 28px 0;
  padding: clamp(28px, 5vw, 44px);

  background: rgba(255, 255, 255, 0.88);
  border-radius: var(--radius-large);

  box-shadow: var(--shadow-medium);
}

.question-answers-section header h2 {
  margin: 12px 0 24px;

  font-size: 2rem;
}

.question-answer-list {
  display: grid;
  gap: 16px;
}

.question-answer-card {
  padding: 24px;

  background: #f7f8fd;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
}

.question-answer-card.is-accepted {
  background:
    linear-gradient(
      135deg,
      rgba(24, 198, 163, 0.12),
      rgba(255, 255, 255, 0.95)
    );

  border-color:
    rgba(24, 198, 163, 0.26);
}

.accepted-answer-label {
  width: fit-content;
  margin-bottom: 14px;
  padding: 6px 10px;

  background: var(--color-accent);
  border-radius: 999px;

  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.question-answer-card p {
  margin: 0;

  color: #424d5e;
  line-height: 1.8;
}

.question-answer-card footer {
  margin-top: 18px;

  color: var(--color-muted);
  font-size: 0.82rem;
}

.question-no-answers {
  padding: 38px;

  background: #f6f7fc;
  border-radius: var(--radius-medium);

  text-align: center;
}

.question-no-answers h2 {
  margin: 0 0 8px;
}

.question-no-answers p {
  margin: 0;
  color: var(--color-muted);
}

.question-not-found h1 {
  margin: 14px 0 18px;

  font-size: clamp(3rem, 8vw, 5.5rem);
  letter-spacing: -0.06em;
}

.question-not-found > p:last-of-type {
  max-width: 600px;
  margin-bottom: 28px;

  color: var(--color-muted);
  line-height: 1.75;
}

@media (max-width: 720px) {
  .questions-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .questions-toolbar,
  .question-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .question-detail-card {
    padding: 42px 25px;
  }
}
