/* RASHMI Frontend -- Custom Styles */

/* -- Color Scheme -- */
:root {
  --pico-primary: #2563eb;
  --pico-primary-hover: #1d4ed8;
  --pico-primary-focus: rgba(37, 99, 235, 0.25);
  --pico-primary-inverse: #fff;
}

/* -- Brand -- */
.brand {
  text-decoration: none !important;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  gap: 0;
}
.brand strong {
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  color: var(--pico-primary);
}
.brand small {
  font-size: 0.65rem;
  opacity: 0.6;
  font-weight: normal;
  letter-spacing: 0.02em;
}

/* -- Navigation -- */
nav {
  border-bottom: 2px solid var(--pico-primary);
  padding-bottom: 0;
}
nav ul li a,
nav ul li details > summary {
  font-size: 0.85rem;
  padding: 0.5rem 0.65rem;
  white-space: nowrap;
}
nav details.dropdown summary::after {
  margin-left: 0.3rem;
}
nav a.active,
nav summary.active {
  font-weight: 700;
  text-decoration: none;
  color: var(--pico-primary);
  border-bottom: 2px solid var(--pico-primary);
}

/* -- Cards / Articles -- */
article {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--pico-muted-border-color);
}
article > header {
  font-weight: 600;
  font-size: 1rem;
  background: var(--pico-card-sectioning-background-color);
}

/* -- Tables -- */
table { font-size: 0.9rem; }
th {
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--pico-muted-color);
  font-weight: 700;
}

/* -- Badges / Marks -- */
mark {
  background-color: #dcfce7;
  color: #166534;
  padding: 0.15em 0.5em;
  border-radius: var(--pico-border-radius);
  font-weight: 600;
  font-size: 0.85em;
}
mark.warn { background-color: #fef3c7; color: #92400e; }
mark.fail { background-color: #fee2e2; color: #991b1b; }

/* -- Button utilities -- */
.btn-sm { padding: 0.25em 0.65em; font-size: 0.8em; }

/* -- Footer -- */
footer.site-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--pico-primary);
  font-size: 0.85rem;
}
footer.site-footer a { color: var(--pico-muted-color); }
footer.site-footer .footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}
footer.site-footer .footer-copy {
  text-align: center;
  opacity: 0.7;
  font-size: 0.8rem;
}

/* -- Page titles -- */
h1 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--pico-muted-border-color);
  padding-bottom: 0.5rem;
}

/* -- Status indicators -- */
.status-badge {
  display: inline-block;
  padding: 0.15em 0.6em;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.status-badge.operational { background: #dcfce7; color: #166534; }
.status-badge.not-found { background: #fee2e2; color: #991b1b; }
.status-badge.pending { background: #fef3c7; color: #92400e; }

/* -- HTMX indicators -- */
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator { display: inline; }

/* -- Responsive -- */
@media (max-width: 768px) {
  .brand small { display: none; }
  nav > ul { flex-wrap: wrap; }
  footer.site-footer .footer-grid { flex-direction: column; }
}
