/* Testimonials Section - Reviews/Отзиви
   Следва design-guide.md за консистентност
   Използва цветовата палитра и типография от global.css
*/

/* ========================================
   ОСНОВНА СЕКЦИЯ
   ======================================== */

.testimonials-section {
  background: var(--color-one);
  padding: 100px 0 80px;
  position: relative;
}

.testimonials-section .sec-title {
  margin-bottom: 60px;
}

.testimonials-section .sec-title h2 {
      font-family: var(--font-family-Fraunces);
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--main-color);
    line-height: 1.2em;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-style: normal;
    text-shadow: 2px 1px 2px black;
    animation: fadeInUp 0.8s ease 0.2s both;
}
.testimonials-section .sec-title .text {
  font-family: var(--font-family-Urbanist);
  font-size: 16px;
  color: var(--color-three);
  letter-spacing: 1px;
}

/* ========================================
   CAROUSEL/GRID ЗА ОТЗИВИ
   ======================================== */

.testimonials-carousel {
  margin-bottom: 80px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

/* ========================================
   КАРТА ЗА ОТЗИВ
   ======================================== */

.testimonial-card {
  background: var(--color-two);
  border: 1px solid var(--white-color-opacity-four);
  padding: 35px 30px;
  position: relative;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  border-color: var(--main-color);
  transform: translateY(-5px);
}

.testimonial-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--white-color-opacity-four);
}

.testimonial-author {
  font-family: var(--font-family-Fraunces);
  font-size: 20px;
  color: var(--text-color);
  font-weight: 600;
}

.testimonial-date {
  font-family: var(--font-family-Urbanist);
  font-size: 13px;
  color: var(--color-three);
  letter-spacing: 0.5px;
}

/* ========================================
   РЕЙТИНГ СЪС ЗВЕЗДИЧКИ
   ======================================== */

.star-rating {
  display: flex;
  gap: 4px;
  font-size: 18px;
}

.star-rating .star {
  color: var(--color-four);
  transition: color 0.2s ease;
}

.star-rating .star.filled {
  color: var(--main-color);
}

/* ========================================
   КОМЕНТАР
   ======================================== */

.testimonial-comment {
  font-family: var(--font-family-Urbanist);
  font-size: 15px;
  line-height: 1.85em;
  color: var(--color-three);
  letter-spacing: 0.5px;
  margin-top: 15px;
}

/* ========================================
   ФОРМА ЗА НОВ ОТЗИВ
   ======================================== */

.review-form-wrapper {
  background: var(--color-two);
  border: 1px solid var(--white-color-opacity-four);
  padding: 50px 40px;
  margin-top: 60px;
}

.review-form-wrapper h3 {
  font-family: var(--font-family-Fraunces);
  font-size: 40px;
  color: var(--heading-color);
  margin-bottom: 30px;
  text-align: center;
}

.review-form-wrapper .subtitle {
  font-family: var(--font-family-Urbanist);
  font-size: 15px;
  color: var(--color-three);
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: 0.5px;
}

/* Използваме .default-form от global.css */
.review-form .form-group {
  margin-bottom: 25px;
}

.review-form .field-label {
  font-family: var(--font-family-Urbanist);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-color);
  margin-bottom: 10px;
  display: block;
}

/* ========================================
   ИНТЕРАКТИВНИ ЗВЕЗДИЧКИ ЗА ФОРМА
   ======================================== */

.star-input-wrapper {
  margin-bottom: 25px;
}

.star-input-wrapper label {
  font-family: var(--font-family-Urbanist);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-color);
  margin-bottom: 15px;
  display: block;
}

.star-input {
  display: flex;
  gap: 8px;
  font-size: 28px;
}

.star-input .star {
  color: var(--color-four);
  cursor: pointer;
  transition: all 0.2s ease;
}

.star-input .star:hover,
.star-input .star.active {
  color: var(--main-color);
  transform: scale(1.1);
}

/* ========================================
   СЪОБЩЕНИЯ
   ======================================== */

.review-message {
  padding: 20px;
  margin-bottom: 25px;
  border-radius: 0;
  font-family: var(--font-family-Urbanist);
  font-size: 15px;
  letter-spacing: 0.5px;
  display: none;
}

.review-message.success {
  background: rgba(230, 177, 95, 0.1);
  border: 1px solid var(--main-color);
  color: var(--main-color);
}

.review-message.error {
  background: rgba(255, 100, 100, 0.1);
  border: 1px solid rgba(255, 100, 100, 0.5);
  color: rgba(255, 150, 150, 1);
}

.review-message.show {
  display: block;
}

/* ========================================
   ПРАЗНО СЪСТОЯНИЕ
   ======================================== */

.testimonials-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-three);
  font-family: var(--font-family-Urbanist);
  font-size: 16px;
}

/* ========================================
   RESPONSIVE ДИЗАЙН
   ======================================== */

@media (max-width: 991px) {
  .testimonials-section {
    padding: 80px 0 60px;
  }

  .testimonials-section .sec-title h2 {
    font-size: 48px;
  }

  .testimonials-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
  }

  .review-form-wrapper {
    padding: 40px 30px;
  }

  .review-form-wrapper h3 {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .testimonials-section {
    padding: 60px 0 40px;
  }

  .testimonials-section .sec-title h2 {
    font-size: 36px;
  }

  .testimonials-section .sec-title {
    margin-bottom: 40px;
  }

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

  .testimonial-card {
    padding: 25px 20px;
  }

  .testimonial-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .review-form-wrapper {
    padding: 30px 20px;
    margin-top: 40px;
  }

  .review-form-wrapper h3 {
    font-size: 28px;
  }

  .star-rating {
    font-size: 16px;
  }

  .star-input {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .testimonials-section .sec-title h2 {
    font-size: 1rem;
  }

  .review-form-wrapper h3 {
    font-size: 24px;
  }

  .testimonial-author {
    font-size: 18px;
  }
}

/* ========================================
   GOOGLE REVIEWS STATS - ОБЕДИНЕНА КАРТА
   ======================================== */

.google-reviews-stats {
  background: var(--color-two);
  border-radius: 20px;
  padding: 30px 40px;
  margin-bottom: 50px;
}

.google-reviews-stats .stats-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--white-color-opacity-four);
}

.google-reviews-stats .google-logo {
  flex-shrink: 0;
}

.google-reviews-stats .google-logo img {
  height: 40px;
  width: auto;
}

.google-reviews-stats .rating-info {
  flex: 1;
  text-align: center;
}

.google-reviews-stats .rating-number {
  font-family: var(--font-family-Fraunces);
  font-size: 48px;
  color: var(--main-color);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}

.google-reviews-stats .stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 8px;
}

.google-reviews-stats .stars i {
  color: var(--main-color);
  font-size: 20px;
}

.google-reviews-stats .reviews-count {
  font-family: var(--font-family-Urbanist);
  font-size: 14px;
  color: var(--color-three);
  letter-spacing: 0.5px;
}

/* Бутон "Напиши отзив" - стил като "ВИЖ МЕНЮТО" с border-radius */
.google-reviews-stats .open-review-modal-btn {
  display: block;
  margin: 0 auto;
  padding: 15px 40px;
  font-size: 15px;
  border-radius: 40px;

  /* Нормално състояние - прозрачен фон, златиста рамка */
  background: transparent !important;
  border: 2px solid var(--main-color) !important;
}

.google-reviews-stats .open-review-modal-btn:before {
  background: var(--main-color);
}

.google-reviews-stats .open-review-modal-btn .btn-wrap .text-one {
  color: var(--main-color);
}

.google-reviews-stats .open-review-modal-btn .btn-wrap .text-two {
  color: var(--black-color);
}

/* При hover - златист фон, черен текст */
.google-reviews-stats .open-review-modal-btn:hover:before {
  top: 0%;
}

.google-reviews-stats .open-review-modal-btn:hover .btn-wrap .text-two {
  color: var(--black-color);
}

/* Мобилен слайдър вътре в картата */
.google-reviews-stats .mobile-testimonials-slider {
  margin-bottom: -30px;
}

/* Desktop grid вътре в картата */
.google-reviews-stats .testimonials-grid {
  margin-bottom: 30px;
}

/* Responsive за Google Stats Card */
@media (max-width: 991px) {
  .google-reviews-stats {
    padding: 25px 30px;
  }

  .google-reviews-stats .stats-container {
    gap: 25px;
    margin-bottom: 25px;
    padding-bottom: 25px;
  }

  .google-reviews-stats .rating-number {
    font-size: 42px;
  }

  .google-reviews-stats .open-review-modal-btn {
    padding: 14px 35px;
    border-radius: 40px;
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .google-reviews-stats {
    padding: 25px 20px;
    margin-bottom: 40px;
  }

  .google-reviews-stats .stats-container {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    text-align: center;
  }

  .google-reviews-stats .google-logo img {
    height: 35px;
  }

  .google-reviews-stats .rating-number {
    font-size: 38px;
  }

  .google-reviews-stats .stars i {
    font-size: 18px;
  }

  .google-reviews-stats .reviews-count {
    font-size: 13px;
  }

  .google-reviews-stats .open-review-modal-btn {
    width: 100%;
    border-radius: 40px;
    max-width: 200px;
    padding: 8px 30px;
  }

  .google-reviews-stats .mobile-testimonials-slider {
    margin-bottom: 25px;
  }

  .google-reviews-stats .testimonials-grid {
    margin-bottom: 25px;
  }
}

@media (max-width: 480px) {
  .google-reviews-stats {
    padding: 20px 15px;
  }

  .google-reviews-stats .stats-container {
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
  }

  .google-reviews-stats .rating-number {
    font-size: 34px;
  }

  .google-reviews-stats .stars i {
    font-size: 16px;
  }

  .google-reviews-stats .reviews-count {
    font-size: 12px;
  }

  .google-reviews-stats .mobile-testimonials-slider {
    margin-bottom: -5px;
  }

  .google-reviews-stats .testimonials-grid {
    margin-bottom: 20px;
  }
}
