.community-page {
  padding: 32px 0 56px;
}

.community-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  margin-bottom: 28px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), var(--shadow);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  position: relative;
  overflow: hidden;
}

.community-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.community-hero h1 {
  margin: 6px 0 10px;
  font-size: 2.2rem;
}

.community-hero p {
  max-width: 760px;
  color: var(--text-secondary);
}

.community-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.community-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.community-section {
  margin-top: 30px;
}

.community-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), var(--shadow);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s;
}

.community-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), var(--shadow-glow), var(--shadow-lg);
}

.community-composer,
.community-notice {
  padding: 28px;
  margin-bottom: 24px;
}

.community-composer {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.community-notice p {
  color: var(--text-secondary);
}

.community-feed,
.community-jobs-grid {
  display: grid;
  gap: 20px;
}

.community-post {
  padding: 24px;
}

.community-post-header,
.community-job-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.community-post-header h3,
.community-job-head h3 {
  margin: 0 0 4px 0;
}

.community-post-header p,
.community-job-head p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.community-post-stats,
.community-job-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.community-post-stats span,
.community-job-pills span,
.community-meta-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  font-size: 0.85rem;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.community-post-content,
.community-job-description {
  margin: 18px 0;
  white-space: pre-wrap;
}

.community-post-media {
  width: 100%;
  max-height: 520px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.25);
}

.community-post-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.community-action-note,
.community-empty-comments {
  color: var(--text-secondary);
}

.community-comments {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--glass-border);
}

.community-comments h4 {
  margin-bottom: 14px;
}

.community-comments-list {
  display: grid;
  gap: 12px;
}

.community-comment {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform 0.2s, border-color 0.2s;
}

.community-comment:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.community-comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.community-comment-header span {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.community-comment p {
  margin: 0;
  white-space: pre-wrap;
}

.community-comment-form {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.community-comment-form textarea,
.community-apply-form textarea {
  min-height: 110px;
}

.community-job-card {
  padding: 24px;
}

.community-job-pills {
  margin: 18px 0;
}

.community-apply-form,
.community-job-cta {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--glass-border);
}

.community-job-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.community-job-cta p {
  color: var(--text-secondary);
}

.community-inline-message {
  margin-bottom: 0;
}

.status-badge {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.status-badge.pending {
  background: rgba(255, 193, 7, 0.15);
  border: 1px solid rgba(255, 193, 7, 0.28);
  color: #ffc107;
}

.status-badge.review,
.status-badge.interview {
  background: rgba(13, 110, 253, 0.14);
  border: 1px solid rgba(13, 110, 253, 0.28);
  color: #6ea8fe;
}

.status-badge.shortlisted,
.status-badge.approved,
.status-badge.hired {
  background: rgba(25, 135, 84, 0.16);
  border: 1px solid rgba(25, 135, 84, 0.3);
  color: #5dd39e;
}

.status-badge.rejected {
  background: rgba(220, 53, 69, 0.14);
  border: 1px solid rgba(220, 53, 69, 0.3);
  color: #ff8a98;
}

.community-tracking-panel {
  padding: 24px;
  margin-bottom: 24px;
}

.community-tracking-panel .section-header p {
  margin: 8px 0 0;
  color: var(--text-secondary);
}

.community-tracking-grid {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.community-tracking-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform 0.2s, border-color 0.2s;
}

.community-tracking-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.community-tracking-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.community-tracking-head h4 {
  margin: 0 0 6px 0;
}

.community-tracking-head p,
.community-history-item small {
  margin: 0;
  color: var(--text-secondary);
}

.community-tracking-description {
  margin: 14px 0;
  color: var(--text-secondary);
  white-space: pre-wrap;
}

.community-ai-review {
  margin: 14px 0;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.community-ai-review.compact {
  margin-top: 12px;
}

.community-ai-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.community-ai-review p {
  margin: 0;
  color: var(--text-secondary);
}

.community-ai-reasons {
  margin: 12px 0 0;
  padding-right: 18px;
  color: var(--text-secondary);
  display: grid;
  gap: 6px;
}

.community-progress-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.community-progress-step {
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  color: var(--text-secondary);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.community-progress-step.done,
.community-progress-step.current {
  border-style: solid;
  color: var(--text-primary);
}

.community-progress-step.done {
  border-color: rgba(25, 135, 84, 0.28);
  background: rgba(25, 135, 84, 0.16);
}

.community-progress-step.current {
  border-color: rgba(13, 110, 253, 0.35);
  background: rgba(13, 110, 253, 0.16);
}

.community-progress-step.rejected {
  border-color: rgba(220, 53, 69, 0.35);
  background: rgba(220, 53, 69, 0.16);
}

.community-status-history {
  border-top: 1px solid var(--glass-border);
  padding-top: 14px;
}

.community-status-history summary {
  cursor: pointer;
  color: var(--text-primary);
  font-weight: 600;
}

.community-status-history-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.community-history-item {
  padding: 16px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.community-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.community-history-head span:last-child {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.community-history-item p {
  margin: 0 0 8px;
  white-space: pre-wrap;
}

/* Light Theme Glassmorphism */
html[data-theme="light"] .community-hero {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.75) 100%);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), 0 8px 32px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .community-hero::before {
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
}

html[data-theme="light"] .community-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), 0 8px 32px rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .community-card:hover {
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), 0 20px 60px rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .community-composer {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.85) 100%);
}

html[data-theme="light"] .community-eyebrow {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 100%);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), 0 2px 8px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .community-post-stats span,
html[data-theme="light"] .community-job-pills span,
html[data-theme="light"] .community-meta-badge {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.02) 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .community-comment {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .community-comment:hover {
  border-color: rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .community-tracking-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .community-progress-step {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.03) 0%, rgba(0, 0, 0, 0.01) 100%);
  border: 1px dashed rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] .community-ai-review {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .community-history-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

@media (max-width: 900px) {
  .community-hero,
  .community-post-header,
  .community-job-head,
  .community-tracking-head,
  .community-history-head {
    flex-direction: column;
  }

  .community-hero h1 {
    font-size: 1.9rem;
  }
}

@media (max-width: 640px) {
  .community-page {
    padding-top: 20px;
  }

  .community-hero,
  .community-post,
  .community-job-card,
  .community-composer,
  .community-notice {
    padding: 18px;
  }

  .community-post-stats,
  .community-job-pills,
  .community-post-actions,
  .community-hero-actions,
  .community-job-cta,
  .community-progress-steps {
    width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .community-comment-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
