/* =========================================================
   MOBİL TAMİRHANE - YORUMLAR
========================================================= */


/* =========================================================
   HERO
========================================================= */

.reviews-hero {
  min-height: 520px;

  display: flex;
  align-items: center;

  color: white;

  background:
    linear-gradient(
      90deg,
      rgba(5, 5, 5, 0.94),
      rgba(5, 5, 5, 0.66)
    ),
    url("images/hero.jpg")
    center / cover
    no-repeat;
}


.reviews-hero-content {
  max-width: 760px;

  padding: 90px 0;
}


.reviews-hero h1 {
  font-size: clamp(42px, 6vw, 68px);

  line-height: 1.05;

  font-weight: 900;

  letter-spacing: -2px;

  margin-bottom: 20px;
}


.reviews-hero h1 span {
  color: var(--yellow);
}


.reviews-hero p {
  max-width: 650px;

  color: #e5e5e5;

  font-size: clamp(16px, 2vw, 19px);
}



/* =========================================================
   İSTATİSTİKLER
========================================================= */

.review-stats-section {
  position: relative;

  margin-top: -55px;

  z-index: 20;

  padding-bottom: 20px;
}


.review-stats-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 20px;
}


.review-stat-card {
  display: flex;

  align-items: center;

  gap: 18px;

  background: white;

  border-radius: 20px;

  padding: 26px;

  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.15);

  border: 1px solid #eeeeee;
}


.review-stat-icon {
  flex-shrink: 0;

  width: 62px;
  height: 62px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 16px;

  background: var(--yellow);

  color: black;

  font-size: 25px;
}


.review-stat-label {
  display: block;

  color: #707070;

  font-size: 13px;

  font-weight: 700;

  margin-bottom: 4px;
}


.review-stat-card strong {
  display: block;

  color: #111111;

  font-size: clamp(23px, 3vw, 32px);

  line-height: 1.1;

  font-weight: 900;
}



/* =========================================================
   FORM
========================================================= */

.review-form-section {
  background:
    linear-gradient(
      180deg,
      #ffffff,
      #f7f7f7
    );
}


.review-layout {
  display: grid;

  grid-template-columns:
    minmax(0, 0.9fr)
    minmax(0, 1.1fr);

  gap: 60px;

  align-items: center;
}


.review-form-info h2 {
  color: #111111;

  font-size: clamp(32px, 4vw, 46px);

  line-height: 1.1;

  margin-bottom: 20px;
}


.review-form-info > p {
  color: #666666;

  margin-bottom: 35px;

  font-size: 16px;
}


.review-feature {
  display: flex;

  gap: 15px;

  margin-bottom: 22px;
}


.review-feature > i {
  flex-shrink: 0;

  width: 50px;
  height: 50px;

  display: flex;

  justify-content: center;
  align-items: center;

  border-radius: 14px;

  background: var(--yellow);

  color: black;

  font-size: 19px;
}


.review-feature h4 {
  color: #111111;

  font-size: 17px;

  margin-bottom: 5px;
}


.review-feature p {
  color: #777777;

  font-size: 14px;
}


.review-form-card {
  background: white;

  border-radius: 25px;

  padding: clamp(25px, 5vw, 45px);

  border: 1px solid #eeeeee;

  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.12);
}


.review-form-card h3 {
  color: #111111;

  font-size: clamp(25px, 3vw, 32px);

  margin-bottom: 8px;
}


.review-form-description {
  color: #777777;

  margin-bottom: 30px;
}



/* =========================================================
   STAR INPUT
========================================================= */

.star-rating-input {
  display: flex;

  align-items: center;

  gap: 7px;

  min-height: 55px;
}


.star-button {
  background: transparent;

  color: #d6d6d6;

  font-size: 30px;

  cursor: pointer;

  padding: 4px;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}


.star-button:hover {
  transform: scale(1.13);
}


.star-button.active {
  color: var(--yellow);
}



/* =========================================================
   CHARACTER COUNT
========================================================= */

.character-counter {
  text-align: right;

  color: #999999;

  font-size: 12px;

  margin-top: 5px;
}



/* =========================================================
   SUBMIT
========================================================= */

.review-submit {
  width: 100%;
}


.review-submit:disabled {
  opacity: 0.65;

  cursor: not-allowed;

  transform: none;
}



/* =========================================================
   FORM MESSAGE
========================================================= */

.review-form-message {
  display: none;

  margin-top: 18px;

  padding: 14px 16px;

  border-radius: 12px;

  font-size: 14px;

  font-weight: 600;
}


.review-form-message.success {
  display: block;

  background: #e8f8ed;

  color: #176d32;

  border: 1px solid #b6e9c4;
}


.review-form-message.error {
  display: block;

  background: #fff0f0;

  color: #a41f1f;

  border: 1px solid #f0c0c0;
}



/* =========================================================
   REVIEWS
========================================================= */

.reviews-list-section {
  background: #f5f5f5;
}


.reviews-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 24px;
}


.review-card {
  display: flex;

  flex-direction: column;

  background: white;

  border-radius: 22px;

  padding: 28px;

  border: 1px solid #ebebeb;

  box-shadow:
    0 13px 35px rgba(0, 0, 0, 0.08);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}


.review-card:hover {
  transform: translateY(-5px);

  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.13);
}


.review-card-top {
  display: flex;

  justify-content: space-between;

  gap: 15px;

  margin-bottom: 20px;
}


.review-user {
  display: flex;

  gap: 13px;

  align-items: center;
}


.review-avatar {
  width: 48px;
  height: 48px;

  flex-shrink: 0;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #111111;

  color: var(--yellow);

  font-size: 19px;

  font-weight: 900;

  text-transform: uppercase;
}


.review-user h3 {
  color: #111111;

  font-size: 16px;

  margin-bottom: 2px;
}


.review-service {
  color: #777777;

  font-size: 12px;

  font-weight: 600;
}


.review-date {
  color: #999999;

  font-size: 11px;

  white-space: nowrap;
}


.review-stars {
  display: flex;

  gap: 3px;

  color: var(--yellow);

  font-size: 16px;

  margin-bottom: 17px;
}


.review-stars .inactive {
  color: #dddddd;
}


.review-comment {
  color: #555555;

  font-size: 14px;

  line-height: 1.7;

  overflow-wrap: anywhere;

  margin-bottom: 20px;

  flex-grow: 1;
}


.review-footer {
  display: flex;

  align-items: center;

  gap: 8px;

  padding-top: 16px;

  border-top: 1px solid #eeeeee;

  color: #777777;

  font-size: 12px;
}


.review-footer i {
  color: var(--yellow-dark);
}



/* =========================================================
   LOADING
========================================================= */

.reviews-loading {
  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  gap: 15px;

  padding: 60px 20px;

  color: #666666;
}


.loading-spinner {
  width: 42px;
  height: 42px;

  border: 4px solid #e6e6e6;

  border-top-color: var(--yellow);

  border-radius: 50%;

  animation:
    reviewSpinner 0.8s linear infinite;
}


@keyframes reviewSpinner {

  to {
    transform: rotate(360deg);
  }

}



/* =========================================================
   EMPTY
========================================================= */

.reviews-empty {
  text-align: center;

  padding: 70px 20px;

  background: white;

  border-radius: 22px;

  border: 1px solid #eeeeee;
}


.reviews-empty i {
  color: var(--yellow);

  font-size: 50px;

  margin-bottom: 15px;
}


.reviews-empty h3 {
  color: #111111;

  margin-bottom: 7px;
}


.reviews-empty p {
  color: #777777;
}



/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

  .review-layout {
    grid-template-columns: 1fr;

    gap: 40px;
  }


  .reviews-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

}



/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

  .reviews-hero {
    min-height: 430px;
  }


  .reviews-hero-content {
    padding: 70px 0 100px;
  }


  .reviews-hero h1 {
    font-size: 39px;

    letter-spacing: -1px;
  }


  .review-stats-section {
    margin-top: -75px;
  }


  .review-stats-grid {
    grid-template-columns: 1fr;

    gap: 12px;
  }


  .review-stat-card {
    padding: 20px;
  }


  .review-stat-icon {
    width: 52px;
    height: 52px;

    font-size: 21px;
  }


  .reviews-grid {
    grid-template-columns: 1fr;
  }


  .review-card {
    padding: 22px;
  }


  .review-card-top {
    flex-direction: column;
  }


  .review-date {
    margin-left: 61px;
  }


  .star-button {
    font-size: 28px;
  }

}