/**
 * Reviews Page Styles
 *
 * @package Visa_Matters
 */

/* ===============================
   REVIEWS CONTAINER
=============================== */
.vm-reviews-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.vm-reviews-container h2 {
  text-align: center;
  font-family: var(--vm-font);
  font-weight: var(--vm-fw-600);
  font-size: var(--vm-fs-42);
  line-height: var(--vm-lh-48);
  letter-spacing: var(--vm-ls--072);
  color: var(--vm-heading);
  margin-bottom: 30px;
}


/* ============================
   PAGE TITLE BAR
============================ */

.vm-page-title {
  background-color: var(--vm-purple-footer);
  padding: 96px 0;
  text-align: center;
}

.vm-page-title__heading {
  margin: 0;
  font-family: var(--vm-font);
  font-weight: var(--vm-fw-500);
  line-height: 1;
  letter-spacing: var(--vm-ls--174);
}

/* ABOUT (blue) */
.vm-page-title__highlight {
  color: var(--vm-blue-accent);
  margin-right: 8px;
}

/* Visa Matters (white) */
.vm-page-title__main {
  color: var(--vm-white);
}

/* ============================
   RESPONSIVE TYPOGRAPHY
============================ */

/* Desktop */
@media (min-width: 1200px) {
  .vm-page-title__heading {
    font-size: var(--vm-fs-58);
    line-height: var(--vm-lh-57);
  }
}

/* Tablet */
@media (max-width: 1199px) {
  .vm-page-title__heading {
    font-size: 48px;
    line-height: 1.1;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .vm-page-title {
    padding: 64px 0;
  }

  .vm-page-title__heading {
    font-size: 36px;
    line-height: 1.2;
    letter-spacing: var(--vm-ls--1);
  }
}


/* ===============================
   RATING BAR
=============================== */
.rating-bar {
  background: var(--vm-grey-light);
  border-radius: 14px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.rating-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.rating-score {
  font-family: var(--vm-font);
  font-weight: var(--vm-fw-700);
  font-size: 22px;
  line-height: 1.2;
  color: var(--vm-heading);
}

.stars {
  color: #FFC107;
  font-size: 18px;
  line-height: 1;
}

.rating-count {
  color: var(--vm-grey-700);
  font-size: 14px;
  line-height: 1.2;
  font-family: var(--vm-font);
}

.google-btn {
  background: #4285F4;
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  font-family: var(--vm-font);
  display: inline-block;
  transition: background 0.2s ease;
}

.google-btn:hover {
  background: #357ae8;
  color: #fff;
}

/* ===============================
   REVIEWS GRID
=============================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

/* ===============================
   REVIEW CARD
=============================== */
.review-card {
  background: var(--vm-white);
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* ===============================
   REVIEWER HEADER
=============================== */
.reviewer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--vm-blue-100), var(--vm-blue-200));
  flex-shrink: 0;
}

.name {
  font-family: var(--vm-font);
  font-weight: var(--vm-fw-600);
  font-size: 14px;
  line-height: 1.2;
  color: var(--vm-heading);
	text-transform: capitalize;
}

.meta {
  font-family: var(--vm-font);
  font-size: 12px;
  line-height: 1.2;
  color: var(--vm-grey-700);
  margin-top: 2px;
}

/* ===============================
   REVIEW TEXT
=============================== */
.review-text {
  font-family: var(--vm-font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--vm-text-body);
}

.read-more {
  color: var(--vm-blue);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  font-family: var(--vm-font);
  cursor: pointer;
  transition: color 0.2s ease;
}

.read-more:hover {
  color: var(--vm-blue-dark);
  text-decoration: underline;
}

/* ===============================
   LOAD MORE BUTTON
=============================== */
.vm-load-more-container {
  text-align: center;
  margin-top: 40px;
}

#loadMoreReviews {
  min-width: 200px;
}

#loadMoreReviews:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===============================
   REVIEW MODAL
=============================== */
.vm-review-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vm-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.vm-modal-content {
  position: relative;
  z-index: 2;
  background: var(--vm-white);
  border-radius: 18px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.vm-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 32px;
  line-height: 1;
  color: var(--vm-grey-700);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.vm-modal-close:hover {
  color: var(--vm-heading);
}

.vm-modal-header {
  margin-bottom: 20px;
}

.vm-modal-header .reviewer {
  gap: 16px;
}

.vm-modal-header .avatar {
  width: 50px;
  height: 50px;
}

.vm-modal-header .name {
  font-size: 18px;
  margin-bottom: 6px;
}

.vm-modal-header .stars {
  font-size: 16px;
}

.vm-modal-body .review-text {
  font-size: 16px;
  line-height: 1.7;
}

/* ===============================
   RESPONSIVE
=============================== */
@media (max-width: 768px) {
  .vm-reviews-container {
    padding: 30px 20px 60px;
  }

  .vm-reviews-container h2 {
    font-size: var(--vm-fs-32);
    line-height: var(--vm-lh-38);
    margin-bottom: 24px;
  }

  .rating-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px;
    gap: 12px;
  }

  .rating-left {
    width: 100%;
  }

  .google-btn {
    width: 100%;
    text-align: center;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .vm-modal-content {
    padding: 24px;
  }

  .vm-modal-header .avatar {
    width: 45px;
    height: 45px;
  }

  .vm-modal-header .name {
    font-size: 16px;
  }

  .vm-modal-body .review-text {
    font-size: 15px;
  }
}

@media (min-width: 769px) and (max-width: 991px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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