/* tasks.html page styles */
[x-cloak] { display: none !important; }

.tasks-page-main {
  padding-top: 2.2rem;
}

.tasks-hero-panel {
  padding: 1.8rem;
}

.tasks-hero-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.tasks-hero-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tasks-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.tasks-stat-pill {
  padding: 1rem 1rem 0.95rem;
  border-radius: 20px;
  border: 1px solid rgba(121, 136, 196, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.tasks-stat-value {
  display: block;
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1;
}

.tasks-stat-label {
  display: block;
  margin-top: 0.5rem;
  color: rgba(221, 232, 255, 0.58);
  font-size: 0.82rem;
}

.tasks-publish-btn {
  width: fit-content;
}

.tasks-filter-shell,
.tasks-info-panel {
  padding: 1rem 1.1rem;
}

.tasks-cert-panel {
  border-color: rgba(79, 110, 247, 0.2);
}

.tasks-grid {
  align-items: stretch;
}

.task-card {
  padding: 1.25rem;
  border-radius: 24px;
  border: 1px solid rgba(121, 136, 196, 0.12);
  background:
    linear-gradient(180deg, rgba(11, 17, 31, 0.94) 0%, rgba(8, 12, 24, 0.98) 100%);
  box-shadow:
    0 18px 44px rgba(1, 7, 22, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.task-card:hover {
  transform: translateY(-4px);
  border-color: rgba(121, 136, 255, 0.28);
  box-shadow:
    0 24px 54px rgba(1, 7, 22, 0.34),
    0 0 0 1px rgba(79, 110, 247, 0.06);
}

.status-open,
.status-claimed,
.status-pending_review,
.status-completed,
.status-cancelled {
  border: 1px solid transparent;
}

.status-open {
  background: rgba(16, 185, 129, 0.14);
  color: #52e7a2;
  border-color: rgba(16, 185, 129, 0.22);
}

.status-claimed {
  background: rgba(245, 158, 11, 0.14);
  color: #f6c76a;
  border-color: rgba(245, 158, 11, 0.2);
}

.status-pending_review {
  background: rgba(79, 110, 247, 0.15);
  color: #88a0ff;
  border-color: rgba(79, 110, 247, 0.22);
}

.status-completed {
  background: rgba(148, 163, 184, 0.12);
  color: #c5d0eb;
  border-color: rgba(148, 163, 184, 0.16);
}

.status-cancelled {
  background: rgba(239, 68, 68, 0.14);
  color: #ff8d8d;
  border-color: rgba(239, 68, 68, 0.18);
}

.reward-badge {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.filter-tab {
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.filter-tab.active {
  color: #f8fbff;
  border-color: rgba(121, 136, 255, 0.28);
  background: rgba(66, 82, 255, 0.18);
}

.filter-tab:not(.active):hover {
  background: rgba(255, 255, 255, 0.05);
  color: #f8fbff;
  border-color: rgba(121, 136, 196, 0.22);
}

.tasks-page-btn {
  border-radius: 14px;
  border: 1px solid rgba(121, 136, 196, 0.16);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.tasks-page-btn:hover:not(:disabled),
.tasks-page-btn.is-active {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(121, 136, 255, 0.28);
}

.markdown-content p { margin: 0.25rem 0; }

.markdown-content pre {
  background: #0d1324;
  color: #f9fafb;
  padding: 0.75rem;
  border-radius: 0.75rem;
  overflow-x: auto;
  margin: 0.5rem 0;
  border: 1px solid rgba(121, 136, 196, 0.14);
}

.markdown-content code {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.1rem 0.3rem;
  border-radius: 0.25rem;
}

.markdown-content pre code {
  background: transparent;
  padding: 0;
}

.markdown-content ul,
.markdown-content ol {
  padding-left: 1.25rem;
  margin: 0.25rem 0;
}

.markdown-content blockquote {
  border-left: 3px solid rgba(121, 136, 196, 0.24);
  padding-left: 0.75rem;
  color: #94a3b8;
  margin: 0.5rem 0;
}

.hide-skills,
.hide-messages {
  display: none !important;
}

@media (min-width: 1024px) {
  .tasks-hero-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  }

  .tasks-hero-side {
    align-items: flex-end;
  }
}

@media (max-width: 767px) {
  .tasks-page-main {
    padding-top: 1.35rem;
  }

  .tasks-hero-panel,
  .tasks-filter-shell,
  .tasks-info-panel {
    padding: 1rem;
  }

  .tasks-hero-stats {
    grid-template-columns: 1fr;
  }

  .tasks-publish-btn {
    width: 100%;
  }
}
