/* §0.35 PWA install UX — banner + iOS sheet + Safari chip.
   Matches theme dark/gold palette; large elderly-friendly targets;
   honours prefers-reduced-motion; RTL-safe. */

.hakeem-pwa-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 99990;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #0F1A18;
  color: #FFFFFF;
  border: 1px solid rgba(201, 169, 110, 0.45);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.hakeem-pwa-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.hakeem-pwa-banner__copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.hakeem-pwa-banner__copy strong {
  font-family: var(--font-body, Inter, sans-serif);
  font-size: 15px;
  letter-spacing: 0.01em;
}
.hakeem-pwa-banner__copy span {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}
.hakeem-pwa-banner__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-inline-start: auto;
  flex-shrink: 0;
}
.hakeem-pwa-btn {
  display: inline-block;
  padding: 12px 22px;
  border: 0;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  -webkit-appearance: none;
  appearance: none;
}
.hakeem-pwa-btn--gold {
  background: #C9A96E;
  color: #0F1A18;
}
.hakeem-pwa-btn--gold:hover,
.hakeem-pwa-btn--gold:focus-visible {
  background: #D4B87A;
}
.hakeem-pwa-banner__close {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 26px;
  line-height: 1;
  padding: 8px 10px;
  cursor: pointer;
}
.hakeem-pwa-banner__close:hover {
  color: #FFFFFF;
}

/* Instruction sheet / chip */
.hakeem-pwa-sheet {
  position: fixed;
  inset: 0;
  z-index: 99991;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(10, 10, 10, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.hakeem-pwa-sheet.is-visible {
  opacity: 1;
}
.hakeem-pwa-sheet__card {
  width: min(420px, calc(100% - 24px));
  margin: 0 12px calc(env(safe-area-inset-bottom, 0px) + 20px);
  padding: 22px 22px 18px;
  background: #FBF7F0;
  color: #1A1A1A;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
}
.hakeem-pwa-sheet__card h3 {
  margin: 0 0 14px;
  font-family: var(--font-heading, Georgia, serif);
  font-size: 21px;
  line-height: 1.3;
}
.hakeem-pwa-sheet__card ol {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hakeem-pwa-sheet__card li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  line-height: 1.45;
}
.hakeem-pwa-sheet__glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  font-size: 19px;
  background: #E8F2EF;
  border-radius: 50%;
}
.hakeem-pwa-sheet__done {
  width: 100%;
}
.hakeem-pwa-safari-chip p {
  margin: 0 0 14px;
  font-size: 15px;
}

/* Footer/nav quiet links */
.hakeem-install-link {
  cursor: pointer;
}

@media (max-width: 480px) {
  .hakeem-pwa-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    flex-wrap: wrap;
    padding: 14px;
  }
  .hakeem-pwa-banner__actions {
    width: 100%;
    justify-content: space-between;
  }
  .hakeem-pwa-btn {
    padding: 13px 26px; /* larger touch targets on small screens */
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hakeem-pwa-banner,
  .hakeem-pwa-sheet {
    transition: none;
  }
}

/* RTL */
body.lang-ur .hakeem-pwa-banner,
body.lang-ur .hakeem-pwa-sheet__card {
  direction: rtl;
  text-align: right;
}
