/* agent-page.css — Styles for programmatic agent-composed pages */

.agent-msg {
  padding: 4rem 0;
  min-height: 60vh;
  display: flex;
  align-items: flex-start;
}

.agent-msg__header {
  margin-bottom: 2rem;
}

.agent-msg__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text, #1a1a1a);
  margin: 0 0 0.5rem;
}

.agent-msg__intro {
  font-size: 1.05rem;
  color: var(--color-text-muted, #555);
  margin: 0;
}

/* The "email" card — looks like an agent composed it */
.agent-msg__card {
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #e0e0e0);
  border-radius: 8px;
  display: flex;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.agent-msg__accent {
  width: 5px;
  flex-shrink: 0;
  background: var(--agent-accent, #2e4057);
}

.agent-msg__body {
  padding: 2rem 2.5rem;
  flex: 1;
}

.agent-msg__line {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text, #1a1a1a);
  margin: 0 0 1.25rem;
}

.agent-msg__line:last-child {
  margin-bottom: 0;
}

.agent-msg__line--closing {
  font-style: italic;
  color: var(--color-text-muted, #555);
}

/* Actions below the card */
.agent-msg__actions {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.agent-msg__cta {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--agent-accent, #2e4057);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: opacity 0.15s;
}

.agent-msg__cta:hover {
  opacity: 0.85;
}

.agent-msg__refresh {
  background: none;
  border: 1px solid var(--color-border, #ccc);
  border-radius: 6px;
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
  color: var(--color-text-muted, #555);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.agent-msg__refresh:hover {
  border-color: var(--agent-accent, #2e4057);
  color: var(--color-text, #1a1a1a);
}

/* Responsive */
@media (max-width: 600px) {
  .agent-msg__body {
    padding: 1.5rem;
  }

  .agent-msg__title {
    font-size: 1.5rem;
  }

  .agent-msg__actions {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}
