/* Rounded Square Showcase — styles */

.rss-wrapper {
  --rss-glow-web: linear-gradient(135deg, #0ea5e9, #22d3ee);
  --rss-glow-print: linear-gradient(135deg, #f97316, #fb7185);
  --rss-glow-current: var(--rss-glow-web);

  max-width: 800px;
  margin: 0 auto;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #fafaf9;
}

.rss-square-container {
  position: relative;
}

/* Glowing halo behind the square */
.rss-glow {
  position: absolute;
  inset: -16px;
  border-radius: 40px;
  background: var(--rss-glow-current);
  opacity: 0.3;
  filter: blur(48px);
  transition: background 0.7s ease;
  pointer-events: none;
}

/* The rounded square itself */
.rss-square {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  outline: 1px solid rgba(255, 255, 255, 0.08);
  outline-offset: -1px;
}

.rss-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.rss-slide--active {
  opacity: 1;
  transform: scale(1);
}

/* Category badge (top-left) */
.rss-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  backdrop-filter: blur(8px);
  background: rgba(14, 165, 233, 0.8); /* web blue default */
  transition: background 0.5s ease;
}

.rss-badge.is-print {
  background: rgba(249, 115, 22, 0.8);
}

.rss-badge-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.rss-badge.is-print .rss-badge-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9V2h12v7M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2M6 14h12v8H6z'/%3E%3C/svg%3E");
}

/* Bottom gradient overlay with title/subtitle */
.rss-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(12, 10, 9, 0.92), transparent);
  z-index: 1;
}

.rss-overlay-title {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.rss-overlay-subtitle {
  margin: 0;
  font-size: 14px;
  color: #d6d3d1;
}

/* Controls row */
.rss-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.rss-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: #fafaf9;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.rss-btn:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.rss-counter {
  margin-left: 8px;
  font-family: monospace;
  font-size: 14px;
  color: #78716c;
}

/* Dot indicators */
.rss-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.rss-dot {
  height: 6px;
  width: 6px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}

.rss-dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.rss-dot--active {
  width: 32px;
  background: #fff;
}

/* Dark background if the page theme is light — remove if your theme is already dark */
body .rss-wrapper {
  /* no forced background so it blends with your theme */
}

@media (max-width: 600px) {
  .rss-wrapper {
    max-width: 100%;
  }
  .rss-overlay-title {
    font-size: 20px;
  }
}
