/**
 * Community Feedback & Ideas Stylesheet
 * Brand color: #1c7bff
 */

.feedback-page-wrapper {
  background-color: #f8fafc;
  min-height: calc(100vh - 200px);
  padding: 36px 0 80px;
}

.feedback-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* 1. Hero Banner */
.feedback-hero-banner {
  background: linear-gradient(135deg, #1c7bff 0%, #0d6efd 100%);
  border-radius: 20px;
  padding: 46px 32px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(28, 123, 255, 0.22);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.feedback-hero-banner::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.feedback-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 12px;
}

.feedback-hero-badge .badge-dot {
  font-size: 0.65rem;
  line-height: 1;
}

.feedback-hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 10px;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.feedback-hero-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 660px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 400;
}

/* 2. Feedback Form Card */
.feedback-form-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  margin-bottom: 28px;
}

.feedback-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
  flex-wrap: wrap;
  gap: 12px;
}

.feedback-form-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
}

.feedback-form-icon {
  font-size: 1.25rem;
}

.feedback-anon-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  user-select: none;
}

.feedback-anon-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #1c7bff;
}

.feedback-field-group {
  margin-bottom: 18px;
}

.feedback-field-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 8px;
}

.feedback-category-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feedback-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.feedback-cat-btn:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #1e293b;
}

.feedback-cat-btn.active {
  border-color: #1c7bff;
  background: rgba(28, 123, 255, 0.08);
  color: #1c7bff;
  font-weight: 700;
  box-shadow: 0 0 0 1px #1c7bff;
}

.feedback-textarea {
  width: 100%;
  min-height: 110px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.9375rem;
  color: #1e293b;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.feedback-textarea:focus {
  outline: none;
  border-color: #1c7bff;
  box-shadow: 0 0 0 3px rgba(28, 123, 255, 0.15);
}

.feedback-form-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  margin-bottom: 18px;
  font-size: 0.8125rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 8px;
}

.feedback-anon-notice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #b45309;
  font-weight: 500;
}

.feedback-char-counter {
  font-weight: 600;
  color: #94a3b8;
}

.feedback-form-actions {
  display: flex;
  justify-content: flex-end;
}

.feedback-submit-btn {
  background: #1c7bff;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 12px 24px;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(28, 123, 255, 0.28);
}

.feedback-submit-btn:hover {
  background: #0d6efd;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(28, 123, 255, 0.38);
}

.feedback-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: fb-spin 0.8s linear infinite;
  display: inline-block;
}

@keyframes fb-spin {
  to { transform: rotate(360deg); }
}

.feedback-alert {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
}

.feedback-alert.alert-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.feedback-alert.alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* 3. Filter and Sort Row */
.feedback-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 30px 0 20px;
  flex-wrap: wrap;
}

.feedback-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.feedback-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.feedback-pill:hover {
  background: #f8fafc;
  color: #1e293b;
  border-color: #cbd5e1;
}

.feedback-pill.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 2px;
}

.feedback-pill.active .pill-count {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.feedback-sort-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 600;
}

.feedback-sort-select {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  outline: none;
}

.feedback-sort-select:focus {
  border-color: #1c7bff;
}

/* 4. Feedback Cards List */
.feedback-items-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feedback-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feedback-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.feedback-card.is-hidden-card {
  opacity: 0.6;
  border-style: dashed;
}

.feedback-card-inner {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

/* Upvote Column */
.feedback-upvote-col {
  flex-shrink: 0;
}

.feedback-upvote-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  width: 64px;
  padding: 10px 4px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.feedback-upvote-btn:hover {
  border-color: #1c7bff;
  background: rgba(28, 123, 255, 0.06);
  color: #1c7bff;
}

.feedback-upvote-btn.upvoted {
  border-color: #1c7bff;
  background: rgba(28, 123, 255, 0.12);
  color: #1c7bff;
}

.upvote-chevron {
  font-size: 0.75rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.feedback-upvote-btn:hover .upvote-chevron {
  transform: translateY(-2px);
}

.upvote-count {
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 3px 0 1px;
  color: inherit;
}

.upvote-label {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.feedback-upvote-btn.upvoted .upvote-label {
  color: #1c7bff;
}

/* Main Content Column */
.feedback-content-col {
  flex: 1;
  min-width: 0;
}

.feedback-meta-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.meta-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.feedback-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border: 1px solid;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.feedback-author-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.author-role-tag {
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.meta-separator {
  color: #cbd5e1;
  font-size: 0.75rem;
}

.feedback-time {
  font-size: 0.8125rem;
  color: #94a3b8;
  font-weight: 500;
}

.badge-hidden-notice {
  font-size: 0.75rem;
  color: #dc2626;
  font-weight: 700;
}

.feedback-admin-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-act-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.admin-act-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.btn-admin-delete:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.feedback-body-text {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #334155;
  margin: 0 0 10px;
  word-break: break-word;
}

/* Official Team Reply Box */
.feedback-official-reply-wrapper {
  margin-top: 14px;
}

.feedback-official-reply {
  background: #f0f7ff;
  border-left: 4px solid #1c7bff;
  border-radius: 8px;
  padding: 14px 18px;
}

.official-reply-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  margin-bottom: 6px;
}

.official-reply-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #1c7bff;
  font-weight: 700;
}

.team-verified-icon {
  fill: #1c7bff;
  vertical-align: middle;
}

.official-reply-date {
  color: #64748b;
  font-size: 0.75rem;
}

.official-reply-content {
  font-size: 0.875rem;
  line-height: 1.55;
  color: #1e293b;
  margin: 0;
}

/* Admin Inline Reply Form */
.admin-inline-reply-form {
  margin-top: 12px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.admin-reply-textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.875rem;
  font-family: inherit;
  resize: vertical;
  box-sizing: border-box;
}

.admin-reply-textarea:focus {
  outline: none;
  border-color: #1c7bff;
}

.admin-reply-btns {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  justify-content: flex-end;
}

.btn-submit-official-reply {
  background: #1c7bff;
  color: #ffffff;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-submit-official-reply:hover {
  background: #0d6efd;
}

.btn-cancel-reply {
  background: #e2e8f0;
  color: #475569;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

/* Empty State */
.feedback-empty-state {
  text-align: center;
  padding: 50px 20px;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
}

.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.empty-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
}

.empty-desc {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .feedback-hero-banner {
    padding: 32px 18px;
    border-radius: 16px;
  }
  .feedback-hero-title {
    font-size: 1.75rem;
  }
  .feedback-hero-desc {
    font-size: 0.875rem;
  }
  .feedback-form-card {
    padding: 20px 18px;
  }
  .feedback-card {
    padding: 16px;
  }
  .feedback-card-inner {
    gap: 14px;
  }
  .feedback-upvote-btn {
    min-width: 52px;
    width: 52px;
    padding: 8px 2px;
  }
  .upvote-count {
    font-size: 0.9375rem;
  }
  .feedback-filter-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .feedback-sort-wrapper {
    width: 100%;
    justify-content: flex-end;
  }
}
