/* ============================================
   RSS Page
   ============================================ */
.ao-rss-page {
  background: var(--ao-bg);
  min-height: 100vh;
  padding-bottom: var(--ao-spacing-3xl);
}

.ao-rss-topbar {
  background: var(--ao-bg-card);
  border-bottom: 1px solid var(--ao-border-light);
  padding: 3rem 1rem;
  text-align: center;
}

.ao-rss-topbar__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ao-rss-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: linear-gradient(to bottom right, #f97316, #ec4899);
  margin-bottom: 1.5rem;
}

.ao-rss-icon-wrapper svg {
  width: 2.5rem;
  height: 2.5rem;
  color: white;
}

.ao-rss-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--ao-text);
  margin-bottom: 1rem;
}

.ao-rss-desc {
  font-size: 1.125rem;
  color: var(--ao-text-light);
  max-width: 42rem;
  margin: 0 auto;
}

.ao-rss-content {
  padding-top: 3rem;
  max-width: 1152px;
  margin: 0 auto;
}

.ao-rss-howto {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 3rem;
}

.ao-rss-howto__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e3a8a; /* strong blue */
  margin-bottom: 0.75rem;
}

/* Dark mode compatibility for how-to title */
[data-theme="dark"] .ao-rss-howto__title {
  color: #93c5fd;
}

.ao-rss-howto__body p {
  color: #1e40af; /* darker blue */
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

[data-theme="dark"] .ao-rss-howto__body p {
  color: #bfdbfe;
}

.ao-rss-howto__popular {
  font-size: 0.875rem;
  margin-top: 1rem;
  color: #1e40af;
}

[data-theme="dark"] .ao-rss-howto__popular {
  color: #bfdbfe;
}

.ao-rss-section {
  margin-bottom: 3rem;
}

.ao-rss-section__label {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ao-text);
  margin-bottom: 1.5rem;
}

.ao-rss-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .ao-rss-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ao-rss-card {
  background: var(--ao-bg-card);
  border-radius: 0.75rem;
  border: 1px solid var(--ao-border-light);
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.ao-rss-card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.ao-rss-card__bar {
  height: 0.5rem;
  width: 100%;
}

.ao-rss-card__inner {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ao-rss-card__icon {
  display: inline-flex;
  padding: 0.75rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.ao-rss-card__icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: white;
}

.ao-rss-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ao-text);
  margin-bottom: 0.5rem;
}

.ao-rss-card__text {
  font-size: 0.875rem;
  color: var(--ao-text-light);
  margin-bottom: 1.5rem;
  flex: 1;
}

.ao-rss-card__actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

.ao-rss-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
}

.ao-rss-btn span {
  pointer-events: none;
}

.ao-rss-btn--copy {
  background: var(--ao-bg-alt);
  color: var(--ao-text);
}

.ao-rss-btn--copy:hover {
  background: var(--ao-border-light);
}

.ao-rss-btn--copy svg {
  color: var(--ao-text-light);
}

.ao-rss-btn--view {
  background: var(--ao-text);
  color: var(--ao-bg);
  text-decoration: none;
}

.ao-rss-btn--view:hover {
  opacity: 0.9;
}

/* Donation widget */
.ao-widget-donate {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ao-widget-donate__text {
  margin: 0;
  color: var(--ao-text-light);
  font-size: var(--ao-text-sm);
  line-height: 1.6;
}

.ao-widget-donate__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ao-widget-donate__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: var(--ao-radius);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: var(--ao-text-sm);
  line-height: 1;
  transition: var(--ao-transition);
}

.ao-widget-donate__btn-label {
  pointer-events: none;
}

.ao-widget-donate__btn--kofi {
  background: rgba(0, 153, 255, 0.12);
  border-color: rgba(0, 153, 255, 0.26);
  color: #0099ff;
}

.ao-widget-donate__btn--kofi:hover {
  background: rgba(0, 153, 255, 0.18);
  border-color: rgba(0, 153, 255, 0.42);
  color: #0080d6;
}

.ao-widget-donate__btn--patreon {
  background: rgba(255, 66, 77, 0.12);
  border-color: rgba(255, 66, 77, 0.28);
  color: #ff424d;
}

.ao-widget-donate__btn--patreon:hover {
  background: rgba(255, 66, 77, 0.18);
  border-color: rgba(255, 66, 77, 0.42);
  color: #e33641;
}

@media (max-width: 480px) {
  .ao-widget-donate__actions {
    grid-template-columns: 1fr;
  }
}

/* Signup notifier widget */
.ao-signup-notifier {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--ao-border-light) 80%, #000 20%);
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--ao-bg-card) 92%, #000 8%),
    color-mix(in srgb, var(--ao-bg-card) 86%, #000 14%)
  );
  padding: 12px 14px;
  overflow: hidden;
}

.ao-signup-notifier::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 0%,
    color-mix(in srgb, var(--ao-primary) 12%, transparent) 45%,
    transparent 75%
  );
}

.ao-signup-notifier__cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 20px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.25px;
  text-transform: uppercase;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--ao-bg-card) 84%, #3a3f4f 16%),
    color-mix(in srgb, var(--ao-bg-card) 70%, #1f2430 30%)
  );
  border: 1px solid color-mix(in srgb, #fff 12%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.ao-signup-notifier__cta:hover {
  color: #fff;
  transform: translateY(-1px);
}

.ao-signup-notifier__text {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 1.06rem;
  color: color-mix(in srgb, var(--ao-text) 86%, #fff 14%);
  line-height: 1.35;
}

.ao-signup-notifier__mascot {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: color-mix(in srgb, var(--ao-bg-alt) 82%, #000 18%);
  border: 1px solid color-mix(in srgb, #fff 12%, transparent);
}

.ao-signup-notifier__mascot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 640px) {
  .ao-signup-notifier {
    padding: 12px;
    gap: 10px;
  }

  .ao-signup-notifier__cta {
    min-width: 132px;
    min-height: 40px;
    font-size: 0.8rem;
    padding: 0 12px;
  }

  .ao-signup-notifier__text {
    font-size: 0.9rem;
  }

  .ao-signup-notifier__mascot {
    width: 42px;
    height: 42px;
  }
}

/* PWA install button */
.ao-pwa-install-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2147483000;
  display: none;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(108, 92, 231, 0.28);
  border-radius: 999px;
  background: color-mix(in srgb, var(--ao-bg-card) 90%, #000 10%);
  color: var(--ao-text);
  padding: 11px 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
  font-size: var(--ao-text-sm);
  font-weight: 700;
  line-height: 1;
}

.ao-pwa-install-btn.is-visible {
  display: inline-flex;
}

.ao-pwa-install-btn svg {
  width: 16px;
  height: 16px;
  color: var(--ao-primary);
  flex-shrink: 0;
}

.ao-pwa-install-btn:hover {
  border-color: color-mix(in srgb, var(--ao-primary) 55%, transparent);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .ao-pwa-install-btn {
    left: 12px;
    right: 12px;
    bottom: 12px;
    justify-content: center;
  }
}

/* ============================================
   Shop Promo Widget
   ============================================ */
.ao-widget-shop {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  background: var(--ao-card);
  border: 1px solid var(--ao-border);
  border-radius: var(--ao-radius-lg);
  overflow: hidden;
  position: relative;
  margin-bottom: 50px;
}
.ao-widget-shop::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--ao-primary) 0%, transparent 60%);
  opacity: 0.06;
  pointer-events: none;
}

.ao-widget-shop__header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ao-widget-shop__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--ao-primary);
  color: #fff;
  border-radius: var(--ao-radius);
  flex-shrink: 0;
}
.ao-widget-shop__heading {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ao-widget-shop__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ao-text);
  line-height: 1.2;
}
.ao-widget-shop__balance {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--ao-primary);
  font-weight: 600;
}

.ao-widget-shop__subtitle {
  font-size: 13px;
  color: var(--ao-text-muted);
  line-height: 1.5;
  margin: 0;
}

.ao-widget-shop__preview,
.ao-widget-shop__placeholder {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.ao-widget-shop__preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--ao-radius);
  overflow: hidden;
  background: var(--ao-bg);
  border: 1px solid var(--ao-border);
}
.ao-widget-shop__preview-avatar {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: var(--ao-muted);
}
.ao-widget-shop__preview-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ao-widget-shop__preview-price {
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  padding: 1px 5px;
  border-radius: 20px;
  white-space: nowrap;
}

.ao-widget-shop__placeholder-item {
  aspect-ratio: 1;
  border-radius: var(--ao-radius);
  background: var(--ao-muted);
  opacity: 0.35;
  animation: ao-pulse 1.8s ease infinite;
}
.ao-widget-shop__placeholder-item:nth-child(2) {
  animation-delay: 0.15s;
}
.ao-widget-shop__placeholder-item:nth-child(3) {
  animation-delay: 0.3s;
}
.ao-widget-shop__placeholder-item:nth-child(4) {
  animation-delay: 0.45s;
}

.ao-widget-shop__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--ao-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--ao-radius);
  text-decoration: none;
  transition:
    opacity 0.15s,
    transform 0.15s;
}
.ao-widget-shop__cta:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  color: #fff;
}

.ao-widget-shop__login-hint {
  font-size: 12px;
  color: var(--ao-text-muted);
  text-align: center;
  margin: 0;
}
.ao-widget-shop__login-hint a {
  color: var(--ao-primary);
}
