/* ==========================================================================
   Components - Play Store UI Elements
   ========================================================================== */

/* --------------------------------------------------------------------------
   Search Bar
   -------------------------------------------------------------------------- */
.search-container {
  margin-bottom: var(--space-md);
  position: relative;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 0 var(--space-md);
  height: 48px;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.search-input-wrapper:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-subtle);
}

.search-icon {
  width: 20px;
  height: 20px;
  color: var(--color-text-tertiary);
  margin-right: var(--space-xs);
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  background: transparent;
  font-size: var(--font-size-base);
  color: var(--color-text-primary);
  width: 100%;
}

.search-input::placeholder {
  color: var(--color-text-tertiary);
}

.search-clear-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  color: var(--color-text-tertiary);
  background-color: var(--color-badge-bg);
}

.search-clear-btn.visible {
  display: flex;
}

.search-clear-btn:hover {
  color: var(--color-text-primary);
}

/* --------------------------------------------------------------------------
   Category Filter Chips
   -------------------------------------------------------------------------- */
.categories-container {
  margin-bottom: var(--space-lg);
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  padding-bottom: 4px;
}

.categories-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.category-chips {
  display: flex;
  gap: var(--space-xs);
  min-width: max-content;
}

.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  background-color: var(--color-surface);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  transition: all var(--transition-fast);
  cursor: pointer;
  user-select: none;
}

.chip-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.chip-btn.active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-inverse);
  box-shadow: 0 2px 6px rgba(1, 135, 95, 0.25);
}

/* --------------------------------------------------------------------------
   Hero Featured Banner
   -------------------------------------------------------------------------- */
.hero-banner {
  background: linear-gradient(135deg, var(--color-hero-bg-from) 0%, var(--color-hero-bg-to) 100%);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

@media (min-width: 640px) {
  .hero-banner {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: var(--space-xl);
    gap: var(--space-lg);
  }
}

.hero-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-xs);
}

.featured-pill {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.hero-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .hero-icon {
    width: 96px;
    height: 96px;
  }
}

.hero-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  line-height: 1.25;
  margin-bottom: var(--space-2xs);
}

.hero-tagline {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.4;
  margin-bottom: var(--space-xs);
}

.hero-specs {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary);
}

.hero-btn-container {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* --------------------------------------------------------------------------
   App Cards Grid
   -------------------------------------------------------------------------- */
.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.section-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
}

.section-count {
  font-size: var(--font-size-sm);
  color: var(--color-text-tertiary);
  font-weight: var(--font-weight-medium);
}

.apps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 580px) {
  .apps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .apps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.app-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  position: relative;
  text-decoration: none;
  cursor: pointer;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  contain: content;
}

.app-card:hover {
  transform: translateY(-3px) translateZ(0);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-primary);
}

.app-card:active {
  transform: scale(0.98) translateZ(0);
}

.card-header {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.card-info {
  flex: 1;
  min-width: 0;
}

.card-title {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.card-category-badge {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  background-color: var(--color-badge-bg);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  margin-top: 3px;
  margin-bottom: 2px;
}

.card-tagline {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  margin-top: var(--space-2xs);
}

.card-footer {
  margin-top: auto;
  padding-top: var(--space-xs);
  border-top: 1px solid var(--color-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary);
}

.card-rating-group {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

.card-star-icon {
  color: var(--color-star);
  font-size: 13px;
}

.card-meta-spec {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: var(--space-3xl) var(--space-md);
  background-color: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px dashed var(--color-border);
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: var(--space-sm);
}

.empty-state-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2xs);
}

.empty-state-desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
}

/* --------------------------------------------------------------------------
   Buttons & Pills
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  transition: all var(--transition-fast);
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
  box-shadow: 0 2px 6px rgba(1, 135, 95, 0.2);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  color: var(--color-text-inverse);
  box-shadow: 0 4px 10px rgba(1, 135, 95, 0.3);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-secondary {
  background-color: var(--color-surface);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background-color: var(--color-badge-bg);
  border-color: var(--color-text-secondary);
}

.btn-secondary:active {
  transform: scale(0.97);
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-full);
}

/* --------------------------------------------------------------------------
   Screenshot Carousel
   -------------------------------------------------------------------------- */
.carousel-wrapper {
  position: relative;
  margin: var(--space-lg) 0;
}

.carousel-container {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 0 var(--space-xs) 0;
}

.carousel-container::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  flex: 0 0 auto;
  width: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  background-color: var(--color-surface);
}

@media (min-width: 640px) {
  .carousel-slide {
    width: 260px;
  }
}

.carousel-slide:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: var(--shadow-md);
}

.carousel-slide img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.carousel-nav-btn {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--color-surface);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

@media (min-width: 768px) {
  .carousel-nav-btn {
    display: flex;
  }
}

.carousel-nav-btn:hover {
  background-color: var(--color-badge-bg);
}

.carousel-nav-btn:active {
  transform: translateY(-50%) scale(0.92);
}

.carousel-prev {
  left: -16px;
}

.carousel-next {
  right: -16px;
}

/* --------------------------------------------------------------------------
   Modals (QR Code & Lightbox)
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  transform: scale(0.92);
  transition: transform var(--transition-normal);
  text-align: center;
  position: relative;
}

.modal-backdrop.active .modal-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  background-color: var(--color-badge-bg);
}

.modal-close-btn:hover {
  color: var(--color-text-primary);
}

.qr-code-wrapper {
  margin: var(--space-md) auto;
  padding: var(--space-md);
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  display: inline-block;
  box-shadow: var(--shadow-sm);
  max-width: 240px;
  width: 100%;
}

.qr-code-wrapper svg {
  width: 100%;
  height: auto;
}

/* Lightbox Image Preview */
.lightbox-card {
  max-width: 90vw;
  max-height: 90vh;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-card img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* --------------------------------------------------------------------------
   Toast Notification
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + var(--space-md) + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background-color: var(--color-text-primary);
  color: var(--color-background);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-toast);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal), transform var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 90vw;
  text-align: center;
}

@media (min-width: 768px) {
  .toast-container {
    bottom: var(--space-xl);
  }
}

.toast-container.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* --------------------------------------------------------------------------
   PWA Install Banner
   -------------------------------------------------------------------------- */
.install-banner {
  display: none;
  align-items: center;
  justify-content: space-between;
  background-color: var(--color-surface);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-card);
  gap: var(--space-md);
}

.install-banner.visible {
  display: flex;
}

.install-banner-text {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.install-banner-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.install-banner-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

.install-banner-desc {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
}

.install-banner-actions {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Feature 1: Interactive Favorite Heart Button
   -------------------------------------------------------------------------- */
.fav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: transform var(--transition-fast), color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
}

.fav-btn:hover {
  border-color: #e53935;
  color: #e53935;
  background-color: rgba(229, 57, 53, 0.08);
}

.fav-btn.active {
  color: #e53935;
  border-color: rgba(229, 57, 53, 0.3);
  background-color: rgba(229, 57, 53, 0.12);
  animation: heartBeat 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fav-btn.active svg {
  fill: #e53935;
  stroke: #e53935;
}

.card-fav-btn {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-tertiary);
  z-index: 5;
  transition: all var(--transition-fast);
}

.card-fav-btn:hover {
  color: #e53935;
  background-color: var(--color-badge-bg);
}

.card-fav-btn.active {
  color: #e53935;
}

.card-fav-btn.active svg {
  fill: #e53935;
  stroke: #e53935;
}

@keyframes heartBeat {
  0% { transform: scale(1); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* --------------------------------------------------------------------------
   Feature 2: Pulsing "NEW" / "UPDATED" Badge
   -------------------------------------------------------------------------- */
.badge-pulsing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #00c853, #009624);
  color: #ffffff;
  box-shadow: 0 0 0 0 rgba(0, 200, 83, 0.7);
  animation: pulseGlowGreen 2s infinite cubic-bezier(0.66, 0, 0, 1);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.badge-pulsing.badge-green {
  background: linear-gradient(135deg, #00c853, #009624);
  box-shadow: 0 0 0 0 rgba(0, 200, 83, 0.7);
  animation-name: pulseGlowGreen;
}

.badge-pulsing.badge-orange {
  background: linear-gradient(135deg, #ff9100, #ff6d00);
  box-shadow: 0 0 0 0 rgba(255, 109, 0, 0.7);
  animation-name: pulseGlowOrange;
}

.badge-pulsing.badge-gold {
  background: linear-gradient(135deg, #ffd600, #ffab00);
  color: #1a1a1a;
  box-shadow: 0 0 0 0 rgba(255, 214, 0, 0.7);
  animation-name: pulseGlowGold;
}

.badge-pulsing.badge-purple {
  background: linear-gradient(135deg, #d500f9, #aa00ff);
  box-shadow: 0 0 0 0 rgba(213, 0, 249, 0.7);
  animation-name: pulseGlowPurple;
}

.badge-pulsing.badge-blue {
  background: linear-gradient(135deg, #00b0ff, #0091ea);
  box-shadow: 0 0 0 0 rgba(0, 176, 255, 0.7);
  animation-name: pulseGlowBlue;
}

@keyframes pulseGlowGreen {
  0% { box-shadow: 0 0 0 0 rgba(0, 200, 83, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(0, 200, 83, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 200, 83, 0); }
}

@keyframes pulseGlowOrange {
  0% { box-shadow: 0 0 0 0 rgba(255, 109, 0, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(255, 109, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 109, 0, 0); }
}

@keyframes pulseGlowGold {
  0% { box-shadow: 0 0 0 0 rgba(255, 214, 0, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(255, 214, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 214, 0, 0); }
}

@keyframes pulseGlowPurple {
  0% { box-shadow: 0 0 0 0 rgba(213, 0, 249, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(213, 0, 249, 0); }
  100% { box-shadow: 0 0 0 0 rgba(213, 0, 249, 0); }
}

@keyframes pulseGlowBlue {
  0% { box-shadow: 0 0 0 0 rgba(0, 176, 255, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(0, 176, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 176, 255, 0); }
}

/* Pinned / Top App Highlight Card */
.app-card.card-pinned {
  border: 1.5px solid rgba(255, 214, 0, 0.45);
  box-shadow: 0 4px 20px -2px rgba(255, 214, 0, 0.15);
  position: relative;
}

.app-card.card-pinned::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ffd600, #ff9100, #ffd600);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* --------------------------------------------------------------------------
   Feature 3: Telegram Feedback & Support Button
   -------------------------------------------------------------------------- */
.btn-feedback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  background-color: var(--color-surface);
  color: #0088cc;
  border: 1px solid rgba(0, 136, 204, 0.3);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-feedback:hover {
  background-color: rgba(0, 136, 204, 0.1);
  border-color: #0088cc;
  transform: translateY(-1px);
}

.feedback-card {
  background: linear-gradient(135deg, rgba(0, 136, 204, 0.08) 0%, rgba(0, 168, 119, 0.08) 100%);
  border: 1px solid rgba(0, 136, 204, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-md);
}

.feedback-card-text h4 {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin-bottom: 2px;
}

.feedback-card-text p {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
}

/* --------------------------------------------------------------------------
   Feature 4: Version History Accordion
   -------------------------------------------------------------------------- */
.version-accordion {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background-color: var(--color-surface);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.version-item {
  border-bottom: 1px solid var(--color-border-subtle);
}

.version-item:last-child {
  border-bottom: none;
}

.version-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  cursor: pointer;
  user-select: none;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  transition: background-color var(--transition-fast);
}

.version-summary:hover {
  background-color: var(--color-badge-bg);
}

.version-tag-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.version-date-pill {
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary);
  font-weight: var(--font-weight-normal);
}

.version-chevron {
  width: 18px;
  height: 18px;
  color: var(--color-text-tertiary);
  transition: transform var(--transition-fast);
}

.version-item.open .version-chevron {
  transform: rotate(180deg);
}

.version-details {
  display: none;
  padding: 0 var(--space-md) var(--space-md) var(--space-md);
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.version-item.open .version-details {
  display: block;
}

.version-download-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: var(--space-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Feature 5: Recommendations ("More by R3V_X")
   -------------------------------------------------------------------------- */
.recommendations-wrapper {
  margin-top: var(--space-lg);
}

.recommendations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

@media (min-width: 600px) {
  .recommendations-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.recommend-card {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.recommend-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.recommend-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.recommend-info {
  flex: 1;
  min-width: 0;
}

.recommend-name {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recommend-meta {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  margin-top: 2px;
}

