/* ==========================================================================
   PORTAL PÚBLICO - ESTILOS DO DENUNCIANTE, STEPPER & TIMELINE
   ========================================================================== */

/* Hero Section */
.hero {
  padding: 50px 0 30px;
  text-align: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--hj-green-subtle);
  color: var(--hj-green-base);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
  border: 1px solid rgba(25, 135, 84, 0.2);
}

.hero-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--hj-green-dark);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.dark-theme .hero-title {
  color: var(--text-main);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 36px;
}

/* Action Cards */
.portal-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 50px;
}

@media (min-width: 768px) {
  .portal-actions {
    grid-template-columns: 1fr 1fr;
  }
}

.action-card {
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.action-card:hover {
  border-color: var(--hj-green-base);
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.action-card.highlight {
  border-color: var(--hj-green-base);
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--hj-green-subtle) 100%);
}

.action-card-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.action-card.highlight .action-card-icon {
  background: var(--hj-green-base);
  color: #fff;
  box-shadow: 0 8px 16px var(--hj-green-glow);
}

.action-card-icon.secondary {
  background: var(--bg-muted);
  color: var(--text-main);
}

.action-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.action-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

/* Stepper Wizard */
.stepper-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin-bottom: 36px;
}

.stepper-header::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: var(--border-color);
  z-index: 1;
}

.step-item {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--bg-body);
  padding: 0 10px;
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-muted);
  transition: all var(--transition-base);
}

.step-item.active .step-circle {
  background: var(--hj-green-base);
  border-color: var(--hj-green-base);
  color: #fff;
  box-shadow: 0 0 0 4px var(--hj-green-glow);
}

.step-item.completed .step-circle {
  background: var(--hj-green-dark);
  border-color: var(--hj-green-dark);
  color: #fff;
}

.step-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.step-item.active .step-label {
  color: var(--hj-green-base);
}

.step-pane {
  display: none;
}

.step-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Seletor de Anonimato */
.anonymity-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.toggle-option {
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.toggle-option:hover {
  border-color: var(--hj-green-base);
}

.toggle-option.selected {
  border-color: var(--hj-green-base);
  background: var(--hj-green-subtle);
}

.toggle-option input[type="radio"] {
  margin-top: 4px;
}

/* File Drop Zone */
.file-dropzone {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  text-align: center;
  background: var(--bg-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.file-dropzone:hover, .file-dropzone.dragover {
  border-color: var(--hj-green-base);
  background: var(--hj-green-subtle);
}

.file-dropzone-icon {
  font-size: 2.2rem;
  color: var(--hj-green-base);
  margin-bottom: 12px;
}

.file-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
}

.file-item-remove {
  color: var(--status-danger);
  cursor: pointer;
  border: none;
  background: transparent;
  font-weight: bold;
}

/* Protocol Timeline & Status Card */
.protocol-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}

.timeline {
  position: relative;
  padding: 10px 0;
  margin: 24px 0 16px;
  --timeline-color: var(--hj-green-base);
}

.timeline-track {
  position: absolute;
  top: 22px;
  left: 12.5%;
  right: 12.5%;
  height: 5px;
  background: var(--border-color);
  z-index: 1;
  border-radius: 3px;
  overflow: hidden;
}

.timeline-progress {
  height: 100%;
  background: var(--timeline-color);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 3px;
}

.timeline-steps {
  display: flex;
  position: relative;
  z-index: 3;
}

.timeline-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.timeline-node {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 3px solid var(--border-color);
  transition: all var(--transition-base);
}

.timeline-step.completed .timeline-node {
  background: var(--timeline-color);
  border-color: var(--timeline-color);
}

.timeline-step.current .timeline-node {
  background: #fff;
  border-color: var(--timeline-color);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08);
}

/* Chat Anônimo */
.chat-container {
  display: flex;
  flex-direction: column;
  height: 420px;
  background: var(--bg-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.chat-messages {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-bubble {
  max-width: 75%;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  font-size: 0.92rem;
  line-height: 1.5;
  position: relative;
}

.chat-bubble.from-user {
  align-self: flex-end;
  background: var(--hj-green-base);
  color: #ffffff;
  border-bottom-right-radius: 2px;
}

.chat-bubble.from-committee {
  align-self: flex-start;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-bottom-left-radius: 2px;
}

.chat-meta {
  font-size: 0.72rem;
  margin-top: 4px;
  opacity: 0.8;
}

.chat-input-box {
  display: flex;
  gap: 10px;
  padding: 14px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
}
