/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* To override Pico CSS variables: */
/* :root {
  --pico-primary: #0d6efd;
  --pico-font-family: system-ui, sans-serif;
} */

/* Layout rhythm */
main {
  margin-block: 3rem;
}

section + section {
  margin-top: 3rem;
}

/* Intro tone */
.intro h1 {
  font-size: 2.5rem;
}

.intro p {
  max-width: 60ch;
}

/* Activity list */
.activity-list {
  padding-left: 0;
  display: grid;
  gap: 0.75rem;
}

.activity-list li {
  list-style: none !important;
}

.activity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Make the text feel intentional */
.activity-name {
  font-weight: 500;
}

/* Empty state */
.empty-state {
  opacity: 0.7;
  font-style: italic;
}
/* Base flash styles */
.flash {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

/* Light mode shadows (soft, subtle) */
.flash {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Success and error accents (light mode) */
.flash-success {
  background-color: #e6fffa; /* very light teal */
  color: #065f46;
  border-left: 4px solid #10b981;
}

.flash-error {
  background-color: #fff5f5; /* very light pink */
  color: #991b1b;
  border-left: 4px solid #ef4444;
}

/* Dark mode tweaks */
@media (prefers-color-scheme: dark) {
  /* Dark background shadows (soft but visible) */
  .flash {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  }

  .flash-success {
    background-color: #064e3b; /* dark teal background */
    color: #a7f3d0; /* light teal text */
    border-left-color: #10b981; /* accent remains visible */
  }

  .flash-error {
    background-color: #7f1d1d; /* dark red background */
    color: #fecaca; /* light red text */
    border-left-color: #ef4444; /* accent remains visible */
  }
}

.random > p {
  margin-block-start: 1rem;
}

h1,
h2,
h3 {
  margin-block-end: 0.8em !important;
}
