/* ===============================================
   REVIEWS PAGE STYLES
   Стили для страницы отзывов
   =============================================== */

/* ========== PAGE BACKGROUND ========== */
/* Параллакс фон для всей страницы отзывов */
body.reviews-page {
  background-image: url('../images/desktop/mindfulness/workaspace.jpg');
  background-attachment: fixed;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Отключаем параллакс на мобильных */
@media (max-width: 768px) {
  body.reviews-page {
    background-attachment: scroll;
  }
}

/* ========== HERO SECTION ========== */
/* Компактная полупрозрачная hero секция на странице отзывов */
body.reviews-page .hero {
  min-height: auto !important;
  background: rgb(0 0 0 / 60%) !important;
  backdrop-filter: blur(10px);
  padding: 30px 15px !important;
  position: relative;
}

body.reviews-page .hero .container {
  position: relative;
  z-index: 2;
  text-align: center;
}

body.reviews-page .hero-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: white;
  font-weight: 700;
}

body.reviews-page .hero-subtitle {
  font-size: 0.95rem;
  font-weight: 300;
  max-width: 700px;
  margin: 0.25rem auto 0;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}


/* ========== REVIEWS SECTION ========== */
/* Секция с отзывами */
body.reviews-page .reviews-section {
  padding: 40px 0 0 0;
  position: relative;
}

/* Светлый оверлей для читаемости карточек */
body.reviews-page .reviews-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

body.reviews-page .reviews-section .container {
  position: relative;
  z-index: 2;
}

/* Сетка карточек отзывов */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* ========== REVIEW CARDS ========== */
.review-card {
  display: flex;
  flex-direction: column;
  background: rgba(0,0,0, 80%);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 16px;
  min-height: 240px;
}

.review-card__body {
  flex: 1 1 auto;
}

.review-card__excerpt {
  margin-bottom: 25px;
  color: var(--color-light);
  line-height: 1.5;
}

.review-card__footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.review-card__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.review-card__name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.2;
}

.review-card__location {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--color-gray);
  line-height: 1.2;
}

/* Styles moved to components.css */

/* ========== LEGACY REVIEW LIST STYLES ========== */
/* Стили старого списка (больше не используются, но пусть останутся как fallback) */
.review-item {
  background: white;
  padding: 2.5rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

.review-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.review-content {
  line-height: 1.8;
  color: var(--color-dark);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.review-content p {
  margin-bottom: 1rem;
}

.review-content p:last-child {
  margin-bottom: 0;
}

.review-content strong {
  font-weight: 600;
}

.review-content ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.review-content li {
  margin-bottom: 0.75rem;
}

.review-author {
  text-align: right;
  padding-top: 1rem;
  border-top: 1px solid var(--color-light);
}

.review-name {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.review-location {
  font-size: 0.9rem;
  color: var(--color-gray);
  font-style: italic;
}

.reviews-container {
  max-width: 900px;
  margin: 0 auto;
}

/* ========== PAGINATION ========== */
/* Styles moved to components.css */

/* ========== RESPONSIVE ========== */
@media (max-width: 767px) {
  .review-item {
    padding: 1.5rem;
  }
  
  .review-content {
    font-size: 0.95rem;
  }
  
  .pagination a {
    padding: 0.5rem 0.875rem;
    min-width: 38px;
    font-size: 0.9rem;
  }
}

/* ========== CTA SECTION ========== */
body.reviews-page .cta-section {
  padding: 25px 0;
  background: rgb(0 0 0 / 60%);
  backdrop-filter: blur(10px);
  position: relative;
}

body.reviews-page .cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

body.reviews-page .cta-title {
  font-size: 2rem;
  margin: 0;
  flex: 0 0 auto;
  color: white;
  font-weight: 700;
}

body.reviews-page .cta-text {
  font-size: 1rem;
  margin: 0;
  flex: 1 1 auto;
  color: rgba(255, 255, 255, 0.8);
}

body.reviews-page .cta-section .btn-flip-wrapper {
  flex: 0 0 auto;
}


/* Адаптивность CTA - на мобильных вертикально */
@media (max-width: 768px) {
  body.reviews-page .cta-content {
    flex-direction: column;
    text-align: center;
  }
  
  body.reviews-page .cta-title {
    font-size: 1.75rem;
  }
}
