/* Reviews page styles - Фиолетовый градиентный фон как у shop */
html body.reviews-page {
  background: 
    radial-gradient(1000px 700px at 20% 10%, rgba(91, 33, 182, 0.15), transparent 60%),
    radial-gradient(900px 600px at 80% 30%, rgba(76, 29, 149, 0.12), transparent 55%),
    radial-gradient(800px 500px at 50% 70%, rgba(59, 26, 107, 0.1), transparent 50%),
    linear-gradient(135deg, #4C1D95 0%, #5B21B6 50%, #3B1A6B 100%) !important;
  background-attachment: fixed !important;
}

html body.reviews-page .bg .glow-a {
  background: rgba(91, 33, 182, 0.25) !important;
  left: -200px !important;
  top: -250px !important;
  width: 900px !important;
  height: 900px !important;
  filter: blur(70px) !important;
  opacity: 1 !important;
}

html body.reviews-page .bg .glow-b {
  background: rgba(76, 29, 149, 0.2) !important;
  right: -250px !important;
  top: 50px !important;
  width: 850px !important;
  height: 850px !important;
  filter: blur(70px) !important;
  opacity: 1 !important;
}

html body.reviews-page .bg .grid {
  opacity: 0.1 !important;
  background-image:
    linear-gradient(to right, rgba(91, 33, 182, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(91, 33, 182, 0.08) 1px, transparent 1px) !important;
}

html body.reviews-page .bg .noise {
  opacity: 0.15 !important;
  mix-blend-mode: overlay !important;
}

body.reviews-page .tiles {
  padding: 20px 16px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  min-height: 100vh;
  position: relative;
}

/* Анимации для страницы отзывов */
@keyframes reviewsFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reviewsScaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

body.reviews-page .tiles {
  animation: reviewsFadeIn 0.6s ease-out;
}

/* Карточка поста отзывов */
.reviews-post-card {
  width: 100%;
  max-width: 600px;
  background: linear-gradient(135deg, rgba(45, 27, 78, 0.95), rgba(29, 15, 46, 0.95));
  border: 1px solid rgba(167, 139, 250, 0.4);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  backdrop-filter: blur(30px);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 8px 32px rgba(167, 139, 250, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  animation: reviewsScaleIn 0.6s ease-out 0.2s both;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reviews-post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.1), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.reviews-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 24px 72px rgba(0, 0, 0, 0.5),
    0 12px 40px rgba(167, 139, 250, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Заголовок карточки */
.reviews-post-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(167, 139, 250, 0.3);
  animation: reviewsFadeIn 0.6s ease-out 0.3s both;
}

.reviews-post-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(192, 132, 252, 0.2), rgba(168, 85, 247, 0.15));
  border: 2px solid rgba(167, 139, 250, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 
    0 8px 24px rgba(167, 139, 250, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  filter: drop-shadow(0 0 12px rgba(167, 139, 250, 0.4));
}

.reviews-post-icon svg {
  width: 28px;
  height: 28px;
  color: #C084FC;
  filter: drop-shadow(0 0 8px rgba(192, 132, 252, 0.6));
}

.reviews-post-title {
  font-size: 24px;
  font-weight: 900;
  color: #FFFFFF;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

/* Контент карточки */
.reviews-post-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: reviewsFadeIn 0.6s ease-out 0.4s both;
}

.reviews-post-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.reviews-post-stat {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: rgba(167, 139, 250, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 16px;
  transition: all 0.2s ease;
}

.reviews-post-stat:hover {
  background: rgba(167, 139, 250, 0.12);
  border-color: rgba(167, 139, 250, 0.3);
  transform: translateX(4px);
}

.reviews-post-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(192, 132, 252, 0.2), rgba(168, 85, 247, 0.15));
  border: 1px solid rgba(167, 139, 250, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(167, 139, 250, 0.2);
}

.reviews-post-stat-icon svg {
  width: 24px;
  height: 24px;
  color: #C084FC;
  filter: drop-shadow(0 0 6px rgba(192, 132, 252, 0.5));
}

.reviews-post-stat-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.reviews-post-stat-value {
  font-size: 28px;
  font-weight: 900;
  background: linear-gradient(135deg, #C084FC 0%, #A855F7 50%, #9333EA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1;
}

.reviews-post-stat-label {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.reviews-post-description {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reviews-post-description p {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  margin: 0;
}

/* Футер карточки с кнопками */
.reviews-post-footer {
  padding-top: 20px;
  border-top: 1px solid rgba(167, 139, 250, 0.3);
  animation: reviewsFadeIn 0.6s ease-out 0.5s both;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reviews-post-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  border: none;
  border-radius: 16px;
  color: #FFFFFF;
  font-size: 17px;
  font-weight: 800;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.reviews-post-btn--channel {
  background: linear-gradient(135deg, #10B981 0%, #059669 50%, #047857 100%);
  box-shadow: 
    0 8px 24px rgba(16, 185, 129, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.reviews-post-btn--channel:hover {
  box-shadow: 
    0 12px 32px rgba(16, 185, 129, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.reviews-post-btn--review {
  background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 50%, #6D28D9 100%);
  box-shadow: 
    0 8px 24px rgba(139, 92, 246, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.reviews-post-btn--review:hover {
  box-shadow: 
    0 12px 32px rgba(139, 92, 246, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.reviews-post-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.reviews-post-btn:hover::before {
  width: 400px;
  height: 400px;
}

.reviews-post-btn:hover {
  transform: translateY(-3px);
}

.reviews-post-btn:active {
  transform: translateY(-1px);
}

.reviews-post-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.reviews-post-btn:hover svg:last-child {
  transform: translateX(4px);
}

.reviews-post-btn span {
  position: relative;
  z-index: 1;
  flex: 1;
  text-align: center;
}

/* Состояние ошибки */
.reviews-error {
  width: 100%;
  max-width: 400px;
  padding: 40px 24px;
  background: linear-gradient(135deg, rgba(45, 27, 78, 0.95), rgba(29, 15, 46, 0.95));
  border: 1px solid rgba(167, 139, 250, 0.4);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  backdrop-filter: blur(30px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.reviews-error-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.15));
  border: 2px solid rgba(239, 68, 68, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.reviews-error-icon svg {
  width: 32px;
  height: 32px;
  color: #EF4444;
  filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.5));
}

.reviews-error-message {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  text-align: center;
}
