
.cea-wrapper {
  max-width: 960px;
  margin: 30px auto;
  padding: 0 15px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cea-form-card,
.cea-card {
  background: #0f172a;
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #e5e7eb;
}

.cea-form-card h3,
.cea-list h3 {
  margin: 0 0 6px;
  font-size: 1.3rem;
  font-weight: 700;
}

.cea-form-subtitle {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: #9ca3af;
}

.cea-form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 10px 12px;
  resize: vertical;
  font-size: 0.95rem;
  background: #020617;
  color: #e5e7eb;
  box-sizing: border-box;
}

.cea-form textarea:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.5);
}

.cea-btn {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #38bdf8, #e945ff);
  color: #0b1120;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
  box-shadow: 0 8px 18px rgba(56, 189, 248, 0.5);
}

.cea-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(56, 189, 248, 0.7);
  opacity: 0.97;
}

.cea-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.7);
}

.cea-list {
  margin-top: 6px;
}

.cea-card {
  margin-top: 12px;
}

.cea-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.cea-author {
  font-weight: 600;
  color: #e5e7eb;
}

.cea-date {
  color: #9ca3af;
}

.cea-card-body p {
  margin: 6px 0 10px;
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.cea-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cea-reaction-form {
  display: inline-flex;
}

.cea-reaction-btn {
  border-radius: 999px;
  border: none;
  padding: 4px 10px;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.5);
  transition: background 0.12s ease, transform 0.12s ease, box-shadow 0.12s ease;
}

.cea-reaction-btn span {
  font-weight: 600;
  min-width: 16px;
  text-align: center;
}

.cea-reaction-btn:hover {
  background: rgba(30, 64, 175, 0.8);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.7);
}

.cea-alert-success {
  max-width: 960px;
  margin: 10px auto 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(22, 163, 74, 0.12);
  border: 1px solid rgba(22, 163, 74, 0.5);
  color: #bbf7d0;
  font-size: 0.9rem;
}

.cea-empty {
  font-size: 0.9rem;
  color: #9ca3af;
  margin-top: 6px;
}

@media (min-width: 768px) {
  .cea-wrapper {
    grid-template-columns: minmax(0, 1.1fr);
  }
}
