/* =============================================================
   YORUM.CSS — CategoryItem testimonial bölümüne ait tüm stiller
   Main.css'deki creative-testimonial-* kuralları hariç, yorum
   alanına özel her şey buradadır.
   ============================================================= */

/* ── 1. Google Derecelendirme Kartı ────────────────────────── */

.sulax-grating {
  display: block;
}

.sulax-grating__badge {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  background: transparent;
  border: none;
  padding: 0;
  width: fit-content;
}

/* 1. satır: Google logosu */
.sulax-grating__logo {
  display: block;
  height: 60px;
  width: auto;
  object-fit: contain;
}

/* 2. satır: Yıldızlar */
.sulax-grating__stars {
  display: flex;
  justify-content: center;
  flex-direction: row;
  align-items: center;
  gap: 4px;
}

.sulax-grating__star {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.sulax-grating__star--half {
  -webkit-mask-image: linear-gradient(to right, #000 50%, transparent 50%);
  mask-image: linear-gradient(to right, #000 50%, transparent 50%);
 
}

/* 3. satır: pill badge */
.sulax-grating__meta {
  display: inline-flex;
  align-items: center;
  gap: 0;
  
  border-radius: 999px;
  padding: 5px 14px;
  width: fit-content;
  background: #fff;
}

.sulax-grating__score {
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: #202124;
}

.sulax-grating__meta-sep {
  font-size: 13px;
  color: #202124;
  margin: 0 8px;
  line-height: 1;
}

.sulax-grating__label-main {
  font-size: 14px;
  font-weight: 600;
  color: #202124;
  line-height: 1;
}

.sulax-grating__count {
  font-size: 13px;
  font-weight: 400;
  color: #000;
  line-height: 1;
  white-space: nowrap;
}

/* ── 2. Testimonial ok butonları hover ─────────────────────── */

.creative-testimonial-arrow button {
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.creative-testimonial-arrow button:hover {
  background-color: #c80b0f !important;
  color: #fff !important;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(200, 11, 15, 0.35);
}

/* Avatar ile isim arasındaki boşluk */
.creative-testimonial-avater-box {
  gap: 14px;
}
.creative-testimonial-text p {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
  margin-bottom: 0;
  letter-spacing: -0.02em;
  color: var(--tp-common-white);
}


.creative-testimonial-avater img,
.creative-testimonial-avater div {
  margin-right: 0 !important;
  flex-shrink: 0;
}

/* Testimonial kart — sağ üst köşe marka ikonu */
.creative-testimonial-brand-icon {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.85;
}

/* h4 → p dönüşümü: sadece testimonial isim alanı */
.creative-testimonial-avater-name {
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
  color: var(--tp-common-white);
}

.agntix-light .creative-testimonial-avater-name {
  color: var(--tp-common-black);
}

/* Testimonial kart — yayınlanma tarihi */
.creative-testimonial-date {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #9ca3af;
  line-height: 1;
  margin-top: 5px;
  letter-spacing: 0.01em;
}

.agntix-light .creative-testimonial-date {
  color: #9ca3af;
}

/* Testimonial kart — isim altı sarı yıldızlar */
.creative-testimonial-stars-inline {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
}

.creative-testimonial-stars-inline img {
  display: block;
  flex-shrink: 0;
}

/* ── 3. Yorum kart thumbnail butonu ────────────────────────── */

.creative-testimonial-review-img:not(:has(img)) {
  display: none;
}

.creative-testimonial-review-img:has(img) {
  display: block;
  width: fit-content;
  max-width: 100%;
}

.creative-testimonial-review-img__btn {
  display: block;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  line-height: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.creative-testimonial-review-img__btn:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

.creative-testimonial-review-img__btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}

.creative-testimonial-review-img__btn img {
  display: block;
  width: 104px;
  height: 88px;
  max-width: 104px;
  max-height: 88px;
  object-fit: cover;
  vertical-align: middle;
}

/* ── 3. Lightbox — review-image-lightbox ───────────────────── */

.review-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 18px 28px;
  background: rgba(8, 8, 10, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-sizing: border-box;
  isolation: isolate;
  pointer-events: auto;
}

.review-image-lightbox[hidden] {
  display: none !important;
}

.review-image-lightbox:not([hidden]) {
  display: flex;
}

.review-image-lightbox__shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  max-width: 1120px;
  max-height: 90vh;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}

.review-image-lightbox__media {
  position: relative;
  flex: 1 1 65%;
  min-width: 0;
  min-height: 260px;
  background: #101012;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-image-lightbox__img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 24px 56px;
  box-sizing: border-box;
}

.review-image-lightbox__img-wrap img {
  display: block;
  max-width: 100% !important;
  max-height: min(78vh, 720px) !important;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  vertical-align: middle;
}

.review-image-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #111;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  transition: background 0.2s ease, transform 0.2s ease;
}

.review-image-lightbox__nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.06);
}

.review-image-lightbox__nav--prev { left: 14px; }
.review-image-lightbox__nav--next { right: 14px; }

.review-image-lightbox__dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 90%;
}

.review-image-lightbox__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.review-image-lightbox__dot:hover { background: rgba(255, 255, 255, 0.65); }

.review-image-lightbox__dot.is-active {
  background: #fff;
  transform: scale(1.15);
}

.review-image-lightbox__aside {
  flex: 1 1 35%;
  max-width: 400px;
  padding: 28px 26px;
  background: #fff;
  color: #111;
  overflow-y: auto;
  box-sizing: border-box;
}

/* Üst satır: avatar+isim solda, brand ikonu sağda */
.review-image-lightbox__aside-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.review-image-lightbox__aside-brand {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.85;
}

.review-image-lightbox__aside-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-image-lightbox__aside-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.review-image-lightbox__aside-id {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.review-image-lightbox__aside-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.review-image-lightbox__aside-stars {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 14px;
}

.review-image-lightbox__aside-stars img {
  display: block;
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.review-image-lightbox__aside-text {
  font-size: 15px;
  line-height: 1.55;
  color: #222;
  margin: 0;
}

.review-image-lightbox__close {
  position: fixed;
  top: 16px;
  right: 18px;
  z-index: 2147483601;
  width: 46px;
  height: 46px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: #111;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.2);
  transition: background 0.2s ease, transform 0.2s ease;
}

.review-image-lightbox__close:hover { background: #fff; transform: scale(1.05); }

.review-image-lightbox__close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .review-image-lightbox__shell {
    flex-direction: column;
    max-height: 92vh;
  }
  .review-image-lightbox__media {
    flex: 0 0 auto;
    min-height: 200px;
  }
  .review-image-lightbox__img-wrap {
    padding: 20px 48px;
    min-height: 200px;
  }
  .review-image-lightbox__aside {
    max-width: none;
    flex: 1 1 auto;
  }
  .review-image-lightbox__nav--prev { left: 8px; }
  .review-image-lightbox__nav--next { right: 8px; }
}

/* ── 4. Fake yorum formu ───────────────────────────────────── */

.sulax-review-submit {
  background: #fff;
  border-radius: 16px;
  padding: 22px 22px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.sulax-review-submit__head {
  margin-bottom: 14px;
}

.sulax-review-submit__title {
  font-size: 22px;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.sulax-review-submit__desc {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

.sulax-review-submit__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px 14px;
  margin-top: 16px;
}

.sulax-review-submit__field--full {
  grid-column: 1 / -1;
}

.sulax-review-submit__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 6px;
}

.sulax-review-submit__input,
.sulax-review-submit__textarea,
.sulax-review-submit__select {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
  color: #111;
}

.sulax-review-submit__textarea {
  resize: vertical;
  min-height: 110px;
}

.sulax-review-submit__input:focus,
.sulax-review-submit__textarea:focus,
.sulax-review-submit__select:focus {
  border-color: rgba(200, 11, 15, 0.55);
  box-shadow: 0 0 0 4px rgba(200, 11, 15, 0.12);
}

.sulax-review-submit__actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.sulax-star-rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-direction: row-reverse; /* hover/checked fill left-to-right */
}

.sulax-star-rating__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sulax-star-rating__label {
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
  color: #d1d5db; /* gray-300 */
  transition: transform 0.12s ease, color 0.12s ease;
  user-select: none;
}

.sulax-star-rating__label:hover {
  transform: scale(1.08);
}

/* Seçili yıldız ve solundakiler */
.sulax-star-rating__input:checked ~ .sulax-star-rating__label,
.sulax-star-rating__label:hover ~ .sulax-star-rating__label,
.sulax-star-rating__label:hover {
  color: #f59e0b; /* amber-500 */
}

.sulax-star-rating:focus-within {
  outline: 2px solid rgba(200, 11, 15, 0.55);
  outline-offset: 4px;
  border-radius: 10px;
}

.sulax-review-submit__btn {
  min-width: 160px;
}

.sulax-review-submit__note {
  margin: 0;
  font-size: 13px;
  color: #374151;
}

.sulax-review-submit__note.is-success {
  color: #166534;
}

.sulax-review-submit__note.is-error {
  color: #991b1b;
}

.sulax-review-submit.is-locked {
  opacity: 0.95;
}

@media (max-width: 767px) {
  .sulax-review-submit__grid {
    grid-template-columns: 1fr;
  }
}
