/* ============================================================
   Ortcare.dk — Custom tillæg til Medilab-skabelonen
   Denne fil indlæses efter main.css, så den kan override.
   ============================================================ */

/* ---------- Banner med vigtige opdateringer ---------- */
.site-banner {
  position: relative;
  padding: 12px 0;
  margin-top: 90px;           /* Plads til fixed header */
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  animation: banner-slide-in 0.3s ease-out;
}

@keyframes banner-slide-in {
  from { transform: translateY(-10px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* Banner-typer */
.site-banner--info {
  background: #e7f3ff;
  color: #0c5ba1;
}
.site-banner--warning {
  background: #fff4d6;
  color: #8a5a00;
}
.site-banner--urgent {
  background: #ffe0e0;
  color: #a10c0c;
  font-weight: 500;
}

.site-banner__content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-banner__icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.site-banner__message {
  flex: 1;
  line-height: 1.5;
}

.site-banner__close {
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 4px 8px;
  opacity: 0.6;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
.site-banner__close:hover {
  opacity: 1;
}

/* Når banner er synligt, skal main ikke have ekstra top-margin
   fordi banner allerede sørger for det. Medilab's hero skubbes pænt. */
body:has(.site-banner) .hero {
  margin-top: 0;
}

@media (max-width: 768px) {
  .site-banner {
    font-size: 0.9rem;
    padding: 10px 0;
  }
  .site-banner__icon {
    font-size: 1.1rem;
  }
}

/* ---------- Patientvejledninger (PDF-liste) ---------- */
.patient-guides {
  padding: 60px 0;
  background: #f7fafb;
}

.patient-guides__title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #2c4964;
}

.patient-guides__subtitle {
  color: #6c757d;
  margin-bottom: 30px;
}

.patient-guides__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.patient-guide {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #e6edf1;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.patient-guide:hover {
  border-color: #2db6fa;
  box-shadow: 0 4px 12px rgba(45, 182, 250, 0.12);
  transform: translateY(-2px);
  color: inherit;
}

.patient-guide__icon {
  font-size: 2rem;
  color: #e74c3c;
  flex-shrink: 0;
}

.patient-guide__body {
  flex: 1;
  min-width: 0;
}

.patient-guide__title {
  font-weight: 600;
  margin: 0 0 4px;
  color: #2c4964;
  word-break: break-word;
}

.patient-guide__meta {
  font-size: 0.85rem;
  color: #6c757d;
}

.patient-guide__arrow {
  color: #2db6fa;
  flex-shrink: 0;
}

.patient-guides__category-label {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #2db6fa;
  margin-top: 24px;
  margin-bottom: 12px;
  font-weight: 600;
}

.patient-guides__category-label:first-child {
  margin-top: 0;
}
