/* Shared chrome for marketing + share pages (sticky CTA, skeletons). */

/* Share-page header: wordmark only (icon already says Wila). */
.logo-link img {
  /* 2026-10-13: `brand/logotype-tile.svg`, the wordmark centred in a rounded square of the card colour */
  width: 56px;
  height: 56px;
  border-radius: 14px;
}

/*
 * Action row: PR #45 sticky-CTA / flex:1 + store-badge width:100% stretched
 * "Listen in App" into a tall wrapping pillar. Keep siblings one line, same height.
 */
.actions {
  align-items: center;
}

.actions .btn {
  flex: 0 0 auto;
  align-self: center;
  white-space: nowrap;
  height: 48px;
  min-height: 48px;
}

.actions .btn-primary {
  flex: 0 0 auto;
}

.actions .btn-store {
  flex: 0 0 auto;
  min-width: 0;
  min-height: 48px;
  height: 48px;
  padding: 0;
  overflow: hidden;
}

.actions .btn-store img {
  display: block;
  width: auto;
  height: 48px;
  max-width: none;
}

.sticky-app-cta {
  display: none;
}

@media (max-width: 768px) {
  body.has-sticky-cta {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }

  .sticky-app-cta {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(5, 5, 5, 0.94);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
  }

  .sticky-app-cta a {
    display: block;
    width: 100%;
    max-width: 440px;
    text-align: center;
    background: #00e5c8;
    color: #050505;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 12px;
  }

  .sticky-app-cta a:hover,
  .sticky-app-cta a:focus-visible {
    filter: brightness(1.05);
  }
}

.feed-skeleton {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.skeleton-card {
  min-height: 360px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 25%,
    rgba(255, 255, 255, 0.08) 37%,
    rgba(255, 255, 255, 0.03) 63%
  );
  background-size: 400% 100%;
  animation: wila-shimmer 1.2s ease-in-out infinite;
}

.feed-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 10px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-top-color: #00e5c8;
  border-radius: 50%;
  animation: wila-spin 0.7s linear infinite;
  vertical-align: middle;
}

@keyframes wila-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

@keyframes wila-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .feed-skeleton {
    grid-template-columns: 1fr;
  }
}
