/* ============================================
   Shared components — buttons, container, header/footer shell
   ============================================ */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
  min-height: 44px;
  text-align: center;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn.is-loading { cursor: wait; opacity: 0.88; }
.btn.is-loading::after {
  content: '';
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: button-spin 0.65s linear infinite;
}
@keyframes button-spin { to { transform: rotate(360deg); } }
.btn-block { width: 100%; }

.btn-teal {
  background: var(--teal);
  color: var(--white);
  box-shadow: var(--shadow-btn);
}
.btn-teal:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 14px 28px rgba(14,144,169,0.35); }

.btn-outline {
  background: var(--white);
  color: var(--teal);
  border: 1.5px solid var(--teal);
}
.btn-outline:hover { background: var(--teal-light); }

/* ---------- Layout container ---------- */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Site header / footer (marketing, legal, store pages) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244,249,251,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-text { font-family: var(--font-head); font-weight: 700; font-size: 1rem; line-height: 1.25; color: var(--navy); }
.brand-text .accent { color: var(--orange); }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { font-weight: 600; font-size: 0.92rem; color: var(--navy); }

.site-footer { padding: 32px 0; text-align: center; font-size: 0.85rem; color: var(--text-muted); border-top: 1px solid var(--border-soft); }
.footer-socials { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.footer-social-link {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.footer-social-link svg { width: 21px; height: 21px; fill: currentColor; }
.footer-social-link:hover { color: var(--teal); border-color: var(--teal); transform: translateY(-2px); }
.footer-social-link.is-placeholder { opacity: 0.42; cursor: not-allowed; }
.footer-social-link.is-placeholder:hover { color: var(--navy); border-color: var(--border-soft); transform: none; }
.footer-links { margin-top: 8px; }
.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--teal); text-decoration: underline; }

@media (max-width: 480px) {
  .container { padding-inline: 18px; }
  .header-inner { padding: 12px 0; }
  .site-footer { padding: 26px 0; }
  .btn { white-space: normal; }
}

/* ---------- Cover placeholder (guide cards with no cover image) ---------- */
.cover-placeholder {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(145deg, var(--navy) 0%, var(--teal-dark) 55%, var(--teal) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cover-placeholder::before {
  content: '';
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 75% 20%, rgba(233, 78, 60, 0.45), transparent 60%);
}
.cover-placeholder svg {
  position: relative;
  z-index: 1;
}
