/* What's New and Request a feature pages. Builds on styles.css (support-hub, rate-form-card, review-card). */

/* ---- What's New ---- */
.support-hub-inner.feature-page-inner {
  max-width: 680px;
}

.changelog {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.changelog-release {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.changelog-date {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin: 0 0 2px;
}

.changelog-entry {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(16px, 3vw, 22px) clamp(18px, 3vw, 24px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .changelog-entry {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.changelog-entry-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.changelog-entry-title {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}

.changelog-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  background: var(--accent-soft);
  color: var(--accent);
}

.changelog-tag-improved {
  background: rgba(46, 125, 50, 0.12);
  color: var(--quality-high);
}

.changelog-tag-fixed {
  background: rgba(237, 108, 2, 0.12);
  color: var(--quality-mid);
}

.changelog-tag-security {
  background: rgba(211, 47, 47, 0.1);
  color: var(--quality-low);
}

[data-theme="dark"] .changelog-tag-improved { background: rgba(76, 175, 80, 0.16); }
[data-theme="dark"] .changelog-tag-fixed { background: rgba(255, 152, 0, 0.16); }
[data-theme="dark"] .changelog-tag-security { background: rgba(244, 67, 54, 0.16); }

.changelog-items {
  margin: 0;
  padding-inline-start: 1.25em;
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.changelog-items li + li {
  margin-top: 4px;
}

.changelog-status {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9375rem;
  padding: 24px 0;
}

.support-hub-note a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.support-hub-note a:hover {
  text-decoration: underline;
}

/* ---- Request a feature ---- */
.rate-professor-wrap.request-wrap {
  max-width: 720px;
}

.request-form {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2.5vw, 18px);
}

.request-form .submit-rating-btn {
  margin-top: 4px;
}

.request-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.request-field label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
}

.request-field .course-name-input {
  width: 100%;
  min-width: 0;
  background: var(--bg);
}

.request-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

[dir="rtl"] .request-select {
  background-position: left 16px center;
  padding-right: 20px;
  padding-left: 40px;
}

.request-select:focus,
.request-field textarea:focus {
  outline: none;
  box-shadow: 0 0 0 4px var(--accent-soft);
  border-color: transparent;
}

.request-field .review-textarea-wrap {
  margin-bottom: 0;
}

.request-counter,
.request-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.request-counter {
  align-self: flex-end;
}

[dir="rtl"] .request-form .review-char-count {
  right: auto;
  left: 10px;
}

.request-thanks {
  text-align: center;
}

.request-thanks:focus {
  outline: none;
}

.request-thanks-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.request-thanks-text {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.submit-rating-btn.request-thanks-link {
  display: inline-block;
  text-decoration: none;
}
