/*
 * 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.
 */
@layer tokens, base;

@layer tokens {
  :root {
    /* Layout */
    --max-width: 45rem;

    /* Spacing */
    --inline-space: 1ch;
    --content-margin: 1rem;
    --space-sm: 0.25em;
    --space-md: 0.5em;
    --space-lg: 1em;

    /* Radius */
    --radius-sm: 0.5em;
    --radius-md: 1em;
    --radius-lg: 1.25em;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06), 0 1px 1px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 12px 36px rgba(0, 0, 0, 0.10);

    /* Colors */
    --color-surface: White;
    --color-theme-light: rgb(179 57 81);
    --color-theme-light-hover: color-mix(in srgb, var(--color-theme-light) 90%, var(--color-surface));
    --color-text: Black;
    --color-heading: var(--color-text);
    --color-text-muted: Gray;
    --color-border: DarkGray;
    --color-button-background-default: WhiteSmoke;
    --color-button-background-focus: Gainsboro;
    --color-footer-background: WhiteSmoke;
    --color-link: SteelBlue;  /*oklch(57% 0.19 260);   Lexxy's color link */
    --color-success: YellowGreen;
    --color-danger: Crimson;
    --color-tooltip: Ivory;
    --color-navbar: White;
    --color-caption: var(--color-text-muted);
  }
}

@layer base {
  .box {
    box-sizing: border-box;
  }

  body {
    font-family: Arial, Helvetica, sans-serif;
    padding: 0;
    line-height: 1.5em;
    list-style-position: outside;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
  }

  main {
    width: min(100%, var(--max-width));
  }

  a, a:visited {
    color: var(--color-link);
  }
  a:hover {
    text-decoration: none;
  }

  figcaption {
    color: var(--color-caption);
  }

  iframe,
  img {
    border-radius: var(--radius-md);
  }

  img.dayImage {
    width: min(150px, var(--max-width));
    height: min(150px, var(--max-width));
    object-fit: cover;
    border-radius: 50%;
    display: block;
    /* margin-left: auto; */
    /* margin-right: auto; */
    margin: 0 auto 0 auto;
    padding: 4px;
    border: 2px solid var(--color-border);
  }

  .eventList li {
      padding: var(--space-md) 0;
  }

  .agentActions {
    border-top: 1px solid var(--color-border);
    padding: var(--space-lg) 0;
    margin: var(--space-lg) 0;
  }

  
  h1, h2, h3, h4, h5, h6 {
    display: block;
    font-weight: bold;
    hyphens: auto;
    margin-block: var(--content-margin);
    overflow-wrap: break-word;
    text-wrap: pretty;
    line-height: 1em;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1rem; }
  h5 { font-size: 1rem; }
  h6 { font-size: 0.75rem; }

  h1, h2, h3, h4 {
    text-align: center;
  }

  h2, h3 {
    --divider-color: var(--color-border);

    color: var(--color-heading);
    align-items: center;
    display: flex;
    gap: var(--inline-space);

    &:before,
    &:after {
      background: var(--divider-color);
      block-size: 1px;
      content: "";
      flex: 1;
    }

    &:before { background: var(--color-border); }
    &:after { background: var(--color-border); }
    /* &:before { background: linear-gradient(to right, transparent, var(--divider-color) 50%); } */
    /* &:after  { background: linear-gradient(to left, transparent, var(--divider-color) 50%); } */
  }
}
