@import url('tablet-responsive.css');

html.hub-public-page,
html.hub-public-page body {
  margin: 0;
  width: 100%;
}

html.hub-public-page.is-scroll-locked,
html.hub-public-page.is-scroll-locked body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
}

html.hub-public-page:not(.is-scroll-locked) body {
  overflow-y: auto;
}

.hub-public {
  --hub-viewport: 100dvh;
  box-sizing: border-box;
  width: 100%;
  min-height: var(--hub-viewport);
  height: var(--hub-viewport);
  max-height: var(--hub-viewport);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding:
    max(12px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

@supports (height: 100svh) {
  .hub-public {
    --hub-viewport: 100svh;
  }
}

html.hub-public-page:not(.is-scroll-locked) .hub-public {
  height: auto;
  max-height: none;
  overflow: visible;
}

.hub-public__stage {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 420px;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
}

.hub-public__stage.is-dual-layout {
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.hub-public__stage.is-dual-layout .hub-public__zone--top,
.hub-public__stage.is-dual-layout .hub-public__zone--bottom {
  padding-top: 16px;
  padding-bottom: 16px;
}

.hub-public__zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 16px 10px;
  gap: 10px;
  min-height: 0;
  overflow: hidden;
}

html.hub-public-page:not(.is-scroll-locked) .hub-public__zone {
  overflow: visible;
}
.hub-public__zone.is-empty {
  display: none;
}

.hub-public__logo-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  min-height: 52px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.hub-public__logo-shell.is-wide {
  max-width: 100%;
  max-height: 92px;
}

.hub-public__logo-shell.is-tall {
  max-width: 120px;
  max-height: 124px;
}

.hub-public__logo-shell.is-square {
  max-width: 120px;
  max-height: 120px;
}

.hub-public__logo {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 300px);
  max-height: 88px;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.hub-public__logo-shell.is-wide .hub-public__logo {
  max-width: min(100%, 320px);
  max-height: 92px;
}

.hub-public__logo-shell.is-tall .hub-public__logo {
  max-width: 108px;
  max-height: 120px;
}

.hub-public__logo-shell.is-square .hub-public__logo {
  max-width: 108px;
  max-height: 108px;
}

.hub-public__logo-placeholder {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .75);
  font-size: 36px;
}

.hub-public__title {
  margin: 0;
  font-size: clamp(24px, 5vw, 30px);
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
}

.hub-public__subtitle {
  margin-top: 10px;
  font-size: 15px;
  text-align: center;
  line-height: 1.55;
  opacity: .86;
}

.hub-public__buttons {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hub-public__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  text-align: center;
  padding: 18px 20px;
  border-radius: 18px;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  text-decoration: none;
  box-sizing: border-box;
  transition: transform .12s ease, opacity .12s ease;
}

.hub-public__btn:active {
  transform: scale(.98);
}

.hub-public__btn.is-primary {
  border: none;
}

.hub-public__btn.is-outline {
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(15,23,42,.12);
}

.hub-public__foot {
  position: absolute;
  left: 50%;
  bottom: max(8px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  font-size: 12px;
  opacity: .55;
  z-index: 1;
  pointer-events: none;
}

.hub-public__foot a {
  color: inherit;
  text-decoration: none;
  pointer-events: auto;
}

.hub-public__foot a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .hub-public__zone {
    padding: 10px 12px 8px;
    gap: 8px;
  }

  .hub-public__btn {
    min-height: 52px;
    padding: 16px 18px;
    font-size: 16px;
  }
}

/* ── Bizi Değerlendir sayfası ── */
html.hub-public-page--rate,
html.hub-public-page--rate body {
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
  min-height: 100%;
  -webkit-overflow-scrolling: touch;
}

html.hub-public-page--rate.is-scroll-locked,
html.hub-public-page--rate.is-scroll-locked body {
  overflow-y: auto;
  height: auto;
}

.hub-public.hub-public--rate {
  --hub-viewport: auto;
  width: 100%;
  max-width: 100%;
  min-height: 100svh;
  height: auto;
  max-height: none;
  overflow-x: hidden;
  overflow-y: visible;
  align-items: flex-start;
  justify-content: flex-start;
  padding:
    max(6px, env(safe-area-inset-top))
    max(10px, env(safe-area-inset-right))
    max(10px, env(safe-area-inset-bottom))
    max(10px, env(safe-area-inset-left));
  box-sizing: border-box;
}

.hub-rate-shell {
  width: 100%;
  max-width: 920px;
  min-width: 0;
  margin: 0 auto;
  box-sizing: border-box;
}

.hub-rate-card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .16);
  color: #0f172a;
  overflow: hidden;
}

.hub-rate-card--interactive {
  position: relative;
}

.hub-rate-card__hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 84px;
  padding: 14px 44px 14px 16px;
  background:
    linear-gradient(160deg, rgba(255,255,255,.08), transparent 55%),
    linear-gradient(135deg, var(--hub-rate-header, #2563eb), color-mix(in srgb, var(--hub-rate-header, #2563eb) 68%, #0f172a));
}

.hub-rate-hero-back {
  position: absolute;
  top: max(10px, env(safe-area-inset-top));
  left: max(10px, env(safe-area-inset-left));
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background .15s ease, transform .15s ease;
}

.hub-rate-hero-back:hover,
.hub-rate-hero-back:focus-visible {
  background: rgba(255, 255, 255, .28);
  outline: none;
  transform: translateY(-1px);
}

.hub-rate-hero-main {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.hub-rate-logo-shell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: min(220px, 86%);
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hub-rate-logo {
  display: block;
  max-height: 46px;
  max-width: 190px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(15, 23, 42, .16));
}

.hub-rate-hero-fallback {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 22px;
  color: #fff;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .26);
}

.hub-rate-card__body {
  padding: 12px 12px 14px;
  background: #fff;
}

.hub-rate-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}

@media (min-width: 768px) {
  .hub-public.hub-public--rate {
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
  }

  .hub-rate-card {
    border-radius: 24px;
    box-shadow: 0 22px 50px rgba(15, 23, 42, .2);
  }

  .hub-rate-card__hero {
    min-height: 108px;
    padding: 22px 52px 22px 20px;
  }

  .hub-rate-card__body {
    padding: 20px 20px 24px;
  }

  .hub-rate-layout {
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: 20px;
    align-items: stretch;
  }

  .hub-rate-logo {
    max-height: 60px;
    max-width: 220px;
  }
}

.hub-rate-panel {
  border: 1px solid #e8edf3;
  border-radius: 14px;
  padding: 14px 12px;
  background: #fafbfc;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.hub-rate-panel--stars {
  text-align: center;
  background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}

.hub-rate-panel--action {
  min-width: 0;
  background: #fff;
}

.hub-rate-panel--action.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.hub-rate-positive,
.hub-rate-negative,
.hub-rate-thanks {
  min-width: 0;
  max-width: 100%;
}

.hub-rate-eyebrow {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #64748b;
}

.hub-rate-eyebrow--success { color: #059669; }
.hub-rate-eyebrow--warn { color: #b45309; }

.hub-rate-title {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.hub-rate-lead,
.hub-rate-panel--action p,
.hub-rate-negative-lead {
  margin: 0;
  color: #64748b;
  line-height: 1.4;
  font-size: 13px;
}

.hub-rate-stars {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(3px, 1.5vw, 7px);
  width: 100%;
  max-width: 100%;
  margin: 12px 0 6px;
  padding: 0;
  box-sizing: border-box;
}

.hub-rate-star {
  flex: 1 1 0;
  min-width: 0;
  max-width: 48px;
  aspect-ratio: 1;
  height: auto;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
  padding: 0;
  display: grid;
  place-items: center;
}

.hub-rate-star svg {
  width: min(26px, 68%);
  height: min(26px, 68%);
  fill: #d1d5db;
  transition: fill .15s ease, transform .15s ease;
}

.hub-rate-star:hover,
.hub-rate-star:focus-visible {
  transform: translateY(-1px);
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .06);
  outline: none;
}

.hub-rate-star.is-active svg {
  fill: #f59e0b;
}

.hub-rate-star.is-current svg {
  transform: scale(1.05);
}

.hub-rate-star-hint {
  margin: 0;
  font-size: 11px;
  color: #94a3b8;
}

/* Yıldız seçildikten sonra mobilde kompakt mod */
.hub-rate-shell.is-selected .hub-rate-lead {
  display: none;
}

.hub-rate-shell.is-selected .hub-rate-title {
  font-size: 16px;
  margin-bottom: 2px;
}

.hub-rate-shell.is-selected .hub-rate-panel--stars {
  padding: 10px 12px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.hub-rate-shell.is-selected .hub-rate-stars {
  margin-top: 6px;
  margin-bottom: 2px;
}

.hub-rate-shell.is-selected .hub-rate-star-hint {
  font-size: 10px;
}

.hub-rate-shell.is-selected .hub-rate-card__hero {
  min-height: 64px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.hub-rate-shell.is-selected .hub-rate-logo {
  max-height: 36px;
}

.hub-rate-shell.is-selected .hub-rate-card__body {
  padding-top: 8px;
  padding-bottom: 12px;
}

.hub-rate-shell.is-selected .hub-rate-layout {
  gap: 6px;
}

.hub-rate-shell.is-selected .hub-rate-panel--action {
  padding: 10px 0 0;
  border: none;
  background: transparent;
}

.hub-rate-shell.is-selected .hub-rate-panel--action h2 {
  font-size: 16px;
  margin-bottom: 4px;
}

.hub-rate-shell.is-selected .hub-rate-negative-lead,
.hub-rate-shell.is-selected .hub-rate-panel--action p {
  font-size: 12px;
  line-height: 1.35;
}

.hub-rate-shell.is-selected .hub-rate-form {
  margin-top: 8px;
  gap: 8px;
}

.hub-rate-shell.is-selected .hub-rate-form-block {
  padding: 8px 10px;
}

.hub-rate-shell.is-selected .hub-rate-field textarea {
  min-height: 58px;
  max-height: 88px;
  padding: 8px 10px;
}

.hub-rate-shell.is-selected .hub-rate-field input {
  padding: 8px 10px;
}

.hub-rate-shell.is-selected .hub-rate-submit {
  min-height: 42px;
  font-size: 14px;
}

@media (min-width: 768px) {
  .hub-rate-shell.is-selected .hub-rate-lead {
    display: block;
  }

  .hub-rate-shell.is-selected .hub-rate-title {
    font-size: 22px;
  }

  .hub-rate-shell.is-selected .hub-rate-panel--stars {
    padding: 14px 12px;
    border: 1px solid #e8edf3;
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
  }

  .hub-rate-shell.is-selected .hub-rate-card__hero {
    min-height: 108px;
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .hub-rate-shell.is-selected .hub-rate-logo {
    max-height: 60px;
  }

  .hub-rate-shell.is-selected .hub-rate-panel--action {
    padding: 14px 12px;
    border: 1px solid #e8edf3;
    background: #fff;
  }
}

.hub-rate-placeholder {
  text-align: center;
  color: #94a3b8;
  max-width: 240px;
}

.hub-rate-placeholder__icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 8px;
  border-radius: 999px;
  background: #f1f5f9;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: #cbd5e1;
}

.hub-rate-panel--action h2 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.hub-rate-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  width: 100%;
  max-width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  font-weight: 700;
  font-size: clamp(13px, 3.4vw, 15px);
  line-height: 1.25;
  text-decoration: none;
  text-align: center;
  white-space: normal;
  box-sizing: border-box;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .07);
  transition: transform .15s ease, box-shadow .15s ease;
}

.hub-rate-google-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, .1);
}

.hub-rate-google-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.hub-rate-ta-btn img,
.hub-rate-ya-btn img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.hub-rate-form {
  margin-top: 10px;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.hub-rate-form-block {
  padding: 10px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #eef2f6;
}

.hub-rate-form-block--contact {
  padding-top: 8px;
}

.hub-rate-field {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.hub-rate-field span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #475569;
}

.hub-rate-field span em {
  font-style: normal;
  color: #dc2626;
}

.hub-rate-field input,
.hub-rate-field textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid #dbe3ec;
  border-radius: 10px;
  padding: 9px 11px;
  font: inherit;
  font-size: 16px;
  color: #0f172a;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.hub-rate-field input:focus,
.hub-rate-field textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--hub-rate-header, #2563eb) 55%, #94a3b8);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--hub-rate-header, #2563eb) 14%, transparent);
}

.hub-rate-field textarea {
  resize: vertical;
  min-height: 72px;
  max-height: 110px;
  line-height: 1.4;
}

.hub-rate-contact-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}

.hub-rate-contact-head small {
  font-weight: 500;
  font-size: 10px;
  color: #94a3b8;
}

.hub-rate-field-group {
  display: grid;
  gap: 6px;
}

.hub-rate-field-group--contact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hub-rate-field--email {
  grid-column: 1 / -1;
}

@media (min-width: 640px) {
  .hub-rate-field-group--contact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hub-rate-field--email {
    grid-column: auto;
  }
}

.hub-rate-submit {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  border: none;
  border-radius: 11px;
  background: linear-gradient(
    135deg,
    var(--hub-rate-header, #2563eb),
    color-mix(in srgb, var(--hub-rate-header, #2563eb) 82%, #0f172a)
  );
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--hub-rate-header, #2563eb) 28%, transparent);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.hub-rate-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--hub-rate-header, #2563eb) 34%, transparent);
}

.hub-rate-submit:disabled {
  opacity: .7;
  cursor: wait;
}

.hub-rate-form-msg {
  margin: 0;
  font-size: 12px;
}

.hub-rate-form-msg.is-error { color: #dc2626; }
.hub-rate-form-msg.is-success { color: #059669; }

.hub-rate-note {
  margin-top: 10px !important;
  font-size: 12px !important;
  color: #64748b !important;
  line-height: 1.4 !important;
}

.hub-rate-thanks {
  text-align: center;
  padding: 6px 0;
}

.hub-rate-thanks__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: #dcfce7;
  color: #059669;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
}

.hidden { display: none !important; }
