/* Güldal Yorumlar AI – Front styles (LiteSpeed/Enfold friendly)
   PERF NOTES (mobile):
   - Slider is CSS scroll-snap (no transform-based JS). This reduces main-thread work and prevents layout thrash.
   - Desktop: 3 cards visible (flex-basis calc)
   - Mobile: 1 card visible
*/

.gya-root{width:100%;}
.gya-root, .gya-root *{box-sizing:border-box;}
.gya-root .wrap{max-width:1140px;margin:0 auto;padding:28px 18px;}

/* isolate layout/paint as much as possible (helps long pages) */
.gya-root{contain:content;}

/* PSI helper: allow browser to skip rendering when below-the-fold (supported browsers only) */
@supports (content-visibility: auto){
  .gya-root{content-visibility:auto; contain-intrinsic-size: 720px;}
}


.gya-root .gya-title{margin:0 0 6px 0;text-align:center;font-weight:800;letter-spacing:-.2px;color:#0f172a;line-height:1.2;}
.gya-root .gya-title.as-p{font-size:28px;}
.gya-root .gya-title.as-div{font-size:32px;}
.gya-root h2.gya-title{font-size:32px;}
.gya-root h3.gya-title{font-size:30px;}
.gya-root .gya-intro{margin:0 auto 10px auto;max-width:860px;text-align:center;color:#475569;font-size:15px;line-height:1.6;}
.gya-root .gya-introLink{margin:0 auto 14px auto;max-width:860px;text-align:center;font-size:13px;line-height:1.5;color:#64748b;}
.gya-root .gya-introLink a{color:var(--gya-brand);text-decoration:none;font-weight:700;}
.gya-root .gya-introLink a:hover{filter:brightness(.95);text-decoration:underline;}

@media (max-width: 520px){
  .gya-root h2.gya-title,.gya-root h3.gya-title,.gya-root .gya-title.as-div,.gya-root .gya-title.as-p{font-size:22px;}
  .gya-root .gya-intro{font-size:14px;}
}

.gya-root .subtitle{margin:0 0 14px 0;text-align:center;color:#475569;font-size:15px;}

.gya-root .gya-micro{margin:10px auto 14px auto;max-width:860px;text-align:center;color:#334155;font-size:14px;line-height:1.6;min-height:22px;}
@media (max-width: 520px){.gya-root .gya-micro{font-size:13px;}}


.gya-root .gya-areaLink{margin:-4px auto 12px auto;max-width:860px;text-align:center;color:#475569;font-size:13px;line-height:1.55;}
.gya-root .gya-areaLink .areaHint{color:#64748b;}
.gya-root .gya-areaLink a.areaA{color:var(--gya-brand);font-weight:800;text-decoration:none;}
.gya-root .gya-areaLink a.areaA:hover{text-decoration:underline;filter:brightness(.97);}
@media (max-width: 520px){.gya-root .gya-areaLink{font-size:12px;}}



.gya-root .trust{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;
  background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:14px 14px;box-shadow:0 8px 18px rgba(15,23,42,.06);
}
.gya-root .trustLeft{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-width:0;flex:1 1 auto;}
.gya-root .trustRight{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;align-items:center;}
.gya-root .starsLine{color:#f59e0b;letter-spacing:.5px;line-height:1;}
.gya-root .score{display:flex;align-items:center;gap:10px;background:#f0fdf4;border:1px solid rgba(22,163,74,.25);
  border-radius:999px;padding:8px 12px;}
.gya-root .badges{display:flex;gap:8px;flex-wrap:wrap}
.gya-root .badge{font-size:12px;color:#0f766e;background:#ecfeff;border:1px solid #cffafe;border-radius:999px;padding:6px 10px;white-space:nowrap;}

.gya-root .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;
  border-radius:999px;padding:10px 14px;font-weight:600;font-size:13px;
  border:1px solid rgba(2,132,199,.20);background:var(--gya-brand);color:#fff;text-decoration:none;cursor:pointer;
  transition:transform .14s ease, filter .14s ease, box-shadow .14s ease;
  will-change:transform;
}
.gya-root .btn.secondary{background:#fff;color:#0f172a;border:1px solid #e5e7eb;}

/* Modern WhatsApp CTA (keeps brand color, adds premium depth) */
.gya-root .btn.wa{font-weight:800;letter-spacing:-.1px;box-shadow:0 10px 20px rgba(15,23,42,.10);}
.gya-root .btn.wa:hover{box-shadow:0 12px 24px rgba(15,23,42,.14);}

/* Theme-proof hover states
   Some themes override link colors on :hover (turning text black). We lock colors here.
   UX: subtle lift on hover only (no layout shift). */
.gya-root .btn:hover{filter:brightness(.98);transform:translateY(-1px)}
.gya-root .btn:active{transform:translateY(0)}

.gya-root a.btn:visited{color:#fff}
.gya-root a.btn.secondary:visited{color:#0f172a}

.gya-root .btn:not(.secondary):hover,
.gya-root .btn:not(.secondary):focus,
.gya-root .btn:not(.secondary):focus-visible{color:#fff !important;}

.gya-root .btn.secondary:hover,
.gya-root .btn.secondary:focus,
.gya-root .btn.secondary:focus-visible{color:#0f172a !important;}

/* Filters */
.gya-root .filterWrap{display:flex;align-items:center;gap:10px;margin:14px 0 10px 0;flex-wrap:wrap;}
.gya-root .filters{display:flex;align-items:center;gap:8px;overflow:auto;scrollbar-width:none;-ms-overflow-style:none;
  padding:6px 2px;flex:1 1 520px;}
.gya-root .filters::-webkit-scrollbar{display:none;}

.gya-root .chip{border:1px solid #e5e7eb;background:#fff;color:#0f172a;border-radius:999px;padding:8px 12px;
  font-size:13px;font-weight:600;white-space:nowrap;cursor:pointer;}
.gya-root .chip[aria-pressed="true"]{border-color:rgba(22,163,74,.35);box-shadow:0 6px 14px rgba(22,163,74,.10)}

.gya-root .chipsNav{width:34px;height:34px;border-radius:10px;border:1px solid #e5e7eb;background:#fff;color:#0f172a;
  display:inline-flex;align-items:center;justify-content:center;cursor:pointer;}

/* District select (placed next to WhatsApp CTA)
   SMART WIDTH: we size the wrapper using a CSS variable (--gya-dw) which is
   updated in JS based on the selected option text length.
   This avoids heavy DOM measurements while keeping long district names premium.
*/
.gya-root{--gya-dw:220px;}
.gya-root .ctaGroup{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.gya-root .districtSelect{position:relative;display:inline-flex;align-items:center;flex:0 0 auto;
  width:var(--gya-dw,220px);min-width:170px;max-width:min(320px,48vw);
}
.gya-root .districtSelect.inTrust{flex:0 0 auto;}
@media(max-width:768px){
  .gya-root .ctaGroup{width:100%;}
  .gya-root .districtSelect{flex:1 1 100%;width:100%;max-width:none;min-width:0;}
}
.gya-root .gya-select{width:100%;border:1px solid #e5e7eb;border-radius:999px;
  padding:10px 38px 10px 14px;font-size:13px;background:#fff;color:#0f172a;
  appearance:none;-webkit-appearance:none;-moz-appearance:none;line-height:1.2;
  box-shadow:0 8px 16px rgba(15,23,42,.06);
  transition:transform .14s ease, box-shadow .14s ease, filter .14s ease;
}
.gya-root .gya-select:hover{transform:translateY(-1px);box-shadow:0 10px 20px rgba(15,23,42,.08);}
.gya-root .gya-select:focus{outline:none;border-color:rgba(2,132,199,.35);box-shadow:0 0 0 3px rgba(2,132,199,.12);}
.gya-root .districtSelect:after{content:'▾';position:absolute;right:14px;top:50%;transform:translateY(-50%);
  color:#475569;font-size:12px;pointer-events:none;}

/* Slider (CSS scroll-snap; no JS transform)
   IMPORTANT: nav buttons are placed on .sliderWrap (outside the scroll area)
   to prevent them from moving/disappearing with theme/layout quirks.
*/
.gya-root .sliderWrap{position:relative;margin-top:10px;}
.gya-root .vp{position:relative;margin-top:0;border-radius:16px;border:1px solid #e5e7eb;background:#fff;
  box-shadow:0 10px 22px rgba(15,23,42,.06);
  overflow-x:auto; overflow-y:hidden;
  scroll-snap-type:x mandatory;
  scroll-padding:18px;
  padding:18px;
  overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.gya-root .vp::-webkit-scrollbar{display:none;}

.gya-root .track{
  display:flex;
  gap:16px;
  padding:0;
  margin:0;
  min-width:100%;
}

.gya-root .card{contain:layout;

  border:1px solid #eef2f7;
  border-radius:16px;
  padding:16px 16px;
  min-height:140px;
  background:linear-gradient(180deg,#ffffff 0%, #fbfdff 100%);
  flex:0 0 100%;
  scroll-snap-align:start;
  scroll-snap-stop:always;
}

@media (min-width: 992px){
  .gya-root .card{contain:layout;
flex:0 0 calc((100% - 32px)/3);} /* 3 cards */
}
.gya-root .cardTop{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;}
.gya-root .who{display:flex;align-items:center;gap:10px;min-width:0;}
.gya-root .avatar{width:40px;height:40px;border-radius:999px;background:#e2e8f0;display:flex;align-items:center;justify-content:center;
  font-weight:800;color:#0f172a;flex:0 0 auto;}
.gya-root .name{margin:0;font-weight:800;color:#0f172a;font-size:14px;line-height:1.1;}
.gya-root .meta{margin:2px 0 0 0;font-size:12px;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:260px;}

/*
  Theme-proof heading styles
  Some themes (Enfold/Avia etc.) apply large global H4/H5 sizes.
  We keep semantic H4/H5 but visually match the card typography.
*/
.gya-root h4.name{
  font-size:14px !important;
  line-height:1.15 !important;
  margin:0 !important;
  padding:0 !important;
  font-weight:800 !important;
  letter-spacing:-.1px;
  text-transform:none !important;
}
.gya-root h5.meta{
  font-size:12px !important;
  line-height:1.25 !important;
  margin:2px 0 0 0 !important;
  padding:0 !important;
  font-weight:600 !important;
  color:#64748b !important;
  text-transform:none !important;
}
.gya-root .stars{color:#f59e0b;letter-spacing:1px;font-size:13px;}
.gya-root .text{color:#0f172a;font-size:14px;line-height:1.55;margin:0 0 10px 0;}
.gya-root .pillRow{display:flex;gap:8px;flex-wrap:wrap;}
.gya-root .pill{font-size:12px;color:#0f172a;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:999px;padding:6px 10px;}
.gya-root button.pill{appearance:none;-webkit-appearance:none;border:1px solid #e2e8f0;background:#f1f5f9;cursor:pointer;font:inherit;}
.gya-root button.pill:hover{transform:translateY(-1px)}
.gya-root button.pill:active{transform:translateY(0)}

/* Navigation buttons: clean, no weird boxes */
.gya-root .navBtn{position:absolute !important;top:50% !important;transform:translateY(-50%) !important;
  width:40px;height:40px;border-radius:999px;border:1px solid rgba(15,23,42,.12);
  background:rgba(255,255,255,.95);backdrop-filter:blur(8px);
  display:flex;align-items:center;justify-content:center;
  font-size:22px;line-height:1;color:#0f172a;cursor:pointer;box-shadow:0 10px 20px rgba(15,23,42,.12);
  z-index:20;
}
.gya-root .navBtn.prev{left:8px !important;}
.gya-root .navBtn.next{right:8px !important;}
.gya-root .navBtn.is-disabled{opacity:.45;cursor:not-allowed;pointer-events:none;}

/* Modal */
.gya-root .modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;background:rgba(15,23,42,.55);z-index:99999;}
.gya-root .modal[aria-hidden="false"]{display:flex;}
.gya-root .box{width:min(560px,calc(100% - 24px));background:#fff;border-radius:18px;border:1px solid #e5e7eb;padding:16px;}
.gya-root .box h3{margin:0 0 10px 0;font-size:18px;}
.gya-root .row{display:grid;gap:10px;}
.gya-root .row input,.gya-root .row textarea,.gya-root .row select{width:100%;border:1px solid #e5e7eb;border-radius:12px;padding:10px 12px;font-size:14px;}
.gya-root .actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;margin-top:10px;}

/* A11y */
.gya-root .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}

/* --- Mobile readability & premium micro-motion (non-SEO, UX-only) --- */
@keyframes gyaFadeIn{
  from{opacity:0; transform:translateY(6px);}
  to{opacity:1; transform:translateY(0);}
}

.gya-root .card.gya-fade-in{animation:gyaFadeIn .42s ease both;}

@media (max-width: 768px){
  /* Mobile paint budget: slightly lighter shadows (visual stays the same, faster paint) */
  .gya-root .trust{box-shadow:0 6px 14px rgba(15,23,42,.05)}
  .gya-root .vp{box-shadow:0 8px 16px rgba(15,23,42,.05)}

  /* Improve text readability on mobile */
  .gya-root .text{font-size:15px; line-height:1.72;}
  .gya-root .meta{max-width:220px;}

  /* Mobile: nav arrows should NOT cover text while reading.
     Default hidden; reveal on interaction (root gets .gya-show-nav).
     Keeps UX clean and avoids text overlap on small screens. */
  .gya-root .navBtn{
    width:38px;height:38px;font-size:20px;backdrop-filter:none;
    opacity:0; pointer-events:none;
    transition: opacity .18s ease, transform .18s ease;
  }
  .gya-root.gya-show-nav .navBtn{opacity:1; pointer-events:auto;}
  .gya-root.gya-show-nav .navBtn.is-disabled{pointer-events:none;}

  /* Trust header: stack neatly and make buttons full width */
  .gya-root .trust{flex-direction:column;align-items:stretch;}
  .gya-root .trustRight{justify-content:flex-start;}
  .gya-root .trustRight .btn{flex:1 1 100%;}
}

@media (prefers-reduced-motion: reduce){
  .gya-root .card.gya-fade-in{animation:none !important;}
  .gya-root .filters{scroll-behavior:auto;}
}

@supports (content-visibility: auto){
  .gya-root .gya-featured{content-visibility:auto; contain-intrinsic-size: 560px;}
}


/* Featured reviews (weekly rotation) */
.gya-root .gya-featured{margin-top:16px;}
.gya-root .gya-featured .featuredHead{margin:0 0 10px 0;}
.gya-root .gya-featured .featuredTitle{margin:0 0 6px 0;font-size:16px;font-weight:900;letter-spacing:-.2px;color:#0f172a;}
.gya-root .gya-featured .featuredSummary{margin:0 0 6px 0;color:#334155;font-size:13px;line-height:1.55;}
.gya-root .gya-featured .featuredGrid{display:grid;gap:16px;}
@media (min-width: 992px){.gya-root .gya-featured .featuredGrid{grid-template-columns:repeat(3,1fr);}}
.gya-root .gya-featured .featuredCard{background:linear-gradient(180deg,#ffffff 0%, #f8fbff 100%);}


/* Empty state (no reviews for selection) */
.gya-root .card.gya-empty{background:#fff;}
.gya-root .card.gya-empty .avatar{background:#fee2e2;color:#991b1b;}
.gya-root .card.gya-empty .emptyLink{margin:6px 0 0 0;}
.gya-root .card.gya-empty .emptyLink a{font-weight:700;}


/* Empty-mode tweaks (selection has no local reviews) */
.gya-root.gya-empty-mode .navBtn{display:none !important;}
.gya-root .card.gya-empty{flex:0 0 100% !important;max-width:100% !important;}
.gya-root .card.gya-empty .emptyMore{margin-top:12px;padding-top:12px;border-top:1px dashed #e2e8f0;}
.gya-root .card.gya-empty .emptyMoreTitle{margin:0 0 8px 0;font-weight:900;font-size:13px;color:#0f172a;}
.gya-root .card.gya-empty .emptyMoreGrid{display:grid;gap:10px;}
@media(min-width:992px){.gya-root .card.gya-empty .emptyMoreGrid{grid-template-columns:repeat(3,1fr);}}
.gya-root .card.gya-empty .emptyMini{border:1px solid #eef2f7;border-radius:12px;padding:10px;background:#fbfdff;}
.gya-root .card.gya-empty .emptyMiniTop{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:#334155;font-weight:800;}
.gya-root .card.gya-empty .emptyMiniTop .mMeta{font-weight:700;color:#64748b;}
.gya-root .card.gya-empty .emptyMiniText{margin:6px 0 0 0;font-size:13px;line-height:1.5;color:#0f172a;}
