/* ============================================================
   FEEDBACK PREMIUM — sadece /feedback sayfasında yüklenir
   (master.njk: templateName == 'feedback')
   ============================================================ */

.fb {
  --fb-accent: #00d4ff;
  --fb-accent-2: #8b9dff;
  --fb-gold: #f5c451;
  --fb-text: #f4f7fb;
  --fb-muted: rgba(200, 212, 232, 0.68);
  --fb-faint: rgba(200, 212, 232, 0.42);
  --fb-line: rgba(255, 255, 255, 0.08);
  --fb-line-strong: rgba(255, 255, 255, 0.16);
  --fb-surface: rgba(255, 255, 255, 0.035);
  --fb-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[x-cloak] { display: none !important; }

.fb-wrap { padding: clamp(2rem, 5vw, 3.5rem) 0.75rem 4rem; }

/* Giriş animasyonu */
.fb-in { animation: fb-rise 0.8s var(--fb-ease) backwards; animation-delay: var(--d, 0s); }
@keyframes fb-rise {
  from { opacity: 0; transform: translateY(16px); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}

/* ============================================================
   Başlık + özet
   ============================================================ */
.fb-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  align-items: end;
  gap: 2rem;
  margin-bottom: 2rem;
}

.fb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  color: var(--fb-accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.fb-eyebrow-line { width: 26px; height: 1px; background: linear-gradient(90deg, transparent, var(--fb-accent)); }

.fb-title {
  margin: 0 0 0.6rem;
  color: var(--fb-text);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.fb-subtitle { max-width: 460px; margin: 0; color: var(--fb-muted); font-size: 0.98rem; line-height: 1.6; }

/* Özet kartı */
.fb-summary {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.25rem 1.1rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(10, 18, 38, 0.96), rgba(8, 14, 30, 0.96)) padding-box,
    conic-gradient(from var(--fb-angle, 0deg), rgba(245, 196, 81, 0.12), rgba(245, 196, 81, 0.8), rgba(0, 212, 255, 0.7), rgba(245, 196, 81, 0.12) 40%, rgba(245, 196, 81, 0.12)) border-box;
  box-shadow: 0 30px 70px -25px rgba(245, 196, 81, 0.3);
  animation: fb-rise 0.8s var(--fb-ease) backwards, fb-spin 9s linear infinite;
  animation-delay: var(--d, 0s), 0s;
}
@property --fb-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes fb-spin { to { --fb-angle: 360deg; } }

.fb-summary-glow {
  position: absolute;
  top: -60%;
  left: -20%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 196, 81, 0.18), transparent 65%);
  pointer-events: none;
}

.fb-score { position: relative; display: flex; align-items: baseline; gap: 0.25rem; }
.fb-score-num {
  background: linear-gradient(180deg, #fff 30%, #ffe7a6);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
}
.fb-score-of { color: var(--fb-faint); font-size: 1rem; font-weight: 600; }

.fb-score-side { position: relative; display: flex; flex-direction: column; gap: 0.25rem; }
.fb-score-stars { position: relative; display: inline-block; width: max-content; font-size: 1.25rem; letter-spacing: 0.1em; line-height: 1; }
.fb-stars-bg { color: rgba(255, 255, 255, 0.12); }
.fb-stars-fill {
  position: absolute;
  inset: 0 auto 0 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--fb-gold);
  text-shadow: 0 0 14px rgba(245, 196, 81, 0.45);
}
.fb-score-sub { color: var(--fb-muted); font-size: 0.8rem; }
.fb-score-sub strong { color: #fff; font-weight: 700; }

.fb-chips {
  position: relative;
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.9rem 0 0;
  padding: 0.9rem 0 0;
  border-top: 1px solid var(--fb-line);
  list-style: none;
}
.fb-chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  border: 1px solid var(--fb-line);
  border-radius: 999px;
  background: var(--fb-surface);
  color: var(--fb-muted);
  font-size: 0.72rem;
  font-weight: 500;
}
.fb-chips i { color: var(--fb-accent); font-size: 0.7rem; }

/* ============================================================
   Filtre çubuğu
   ============================================================ */
.fb-toolbar {
  position: sticky;
  top: calc(var(--hp-header-h, 76px) + 0.5rem);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 0.4rem;
  border: 1px solid var(--fb-line);
  border-radius: 14px;
  background: rgba(8, 14, 30, 0.7);
  backdrop-filter: blur(14px);
}
.fb-filters { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.fb-filters button {
  height: 34px;
  padding: 0 0.9rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--fb-muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.fb-filters button:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.fb-filters button.is-on {
  color: #05101f;
  background: #fff;
  font-weight: 600;
}
.fb-count { padding-right: 0.6rem; color: var(--fb-faint); font-size: 0.78rem; white-space: nowrap; }

/* ============================================================
   Kartlar — masonry (sütun) düzeni
   ============================================================ */
.fb-grid {
  columns: 4 260px;
  column-gap: 1rem;
}

.fb-card {
  --g: 0, 212, 255;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0 0 1rem;
  padding: 1.2rem;
  break-inside: avoid;
  overflow: hidden;
  border: 1px solid var(--fb-line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  backdrop-filter: blur(8px);
  transition: transform 0.4s var(--fb-ease), border-color 0.3s ease, box-shadow 0.4s ease;
}
/* Kartın üstünde oyun renginde ince çizgi */
.fb-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 1.2rem;
  right: 1.2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--g), 0.7), transparent);
  opacity: 0.5;
  transition: opacity 0.3s ease;
}
.fb-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--g), 0.35);
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.6), 0 0 40px -16px rgba(var(--g), 0.45);
}
.fb-card:hover::before { opacity: 1; }

/* Sırayla belirme */
.fb-js .fb-card {
  opacity: 0;
  translate: 0 18px;
  transition:
    opacity 0.6s var(--fb-ease) var(--delay, 0s),
    translate 0.6s var(--fb-ease) var(--delay, 0s),
    transform 0.4s var(--fb-ease),
    border-color 0.3s ease,
    box-shadow 0.4s ease;
}
.fb-js .fb-card.is-in { opacity: 1; translate: none; }

.fb-card-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.fb-card-stars { font-size: 0.95rem; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.14); }
.fb-card-stars .on { color: var(--fb-gold); }
.fb-date { color: var(--fb-faint); font-size: 0.72rem; font-variant-numeric: tabular-nums; }

.fb-msg {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  color: rgba(228, 234, 246, 0.9);
  font-size: 0.9rem;
  line-height: 1.65;
  word-break: break-word;
}
.fb-msg.is-open,
.fb-reply-text.is-open { -webkit-line-clamp: unset; display: block; }

.fb-more {
  margin-top: 0.35rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--fb-accent);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.fb-more:hover { text-decoration: underline; }

/* Otomatik değerlendirme */
.fb-auto {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--fb-faint);
  font-size: 0.82rem;
  font-style: italic;
}
.fb-auto i { color: rgba(var(--g), 0.8); font-style: normal; }

/* Mağaza yanıtı */
.fb-reply {
  padding: 0.7rem 0.85rem;
  border-left: 2px solid var(--fb-accent);
  border-radius: 0 12px 12px 0;
  background: rgba(0, 212, 255, 0.05);
}
.fb-reply-by {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--fb-accent);
  font-size: 0.72rem;
  font-weight: 600;
}
.fb-reply-by img { border-radius: 4px; }
.fb-reply-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0.2rem 0 0;
  color: var(--fb-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

/* Alt satır */
.fb-card-foot {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--fb-line);
}
.fb-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid rgba(var(--g), 0.35);
  background: rgba(var(--g), 0.14);
  color: #fff;
  font-size: 0.72rem;
}
.fb-avatar img { width: 15px; height: 15px; object-fit: contain; }
.fb-product {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--fb-text);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.fb-product em { color: var(--fb-faint); font-style: normal; font-weight: 500; }
.fb-verified { color: #34d399; font-size: 0.85rem; }

.fb-empty {
  padding: 4rem 1rem;
  color: var(--fb-faint);
  text-align: center;
  column-span: all;
}
.fb-empty i { font-size: 2rem; color: var(--fb-gold); margin-bottom: 0.75rem; }

/* ============================================================
   Sayfalama
   ============================================================ */
.fb-pages { margin-top: 1.5rem; }
.fb-pages .text-muted { color: var(--fb-faint) !important; }
.fb-pages .fw-semibold { color: #fff; }
.fb-pages .pagination { gap: 0.3rem; }
.fb-pages .page-link {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 0.6rem !important;
  border: 1px solid var(--fb-line-strong) !important;
  border-radius: 10px !important;
  background: var(--fb-surface) !important;
  color: var(--fb-muted) !important;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: none !important;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.25s var(--fb-ease);
}
.fb-pages a.page-link:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-1px);
}
.fb-pages .page-item.active .page-link {
  border-color: transparent !important;
  background: #fff !important;
  color: #05101f !important;
  font-weight: 700;
}
.fb-pages .page-item.disabled .page-link { opacity: 0.35; }
.fb-pages .btn {
  height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--fb-line-strong);
  border-radius: 10px;
  color: #fff;
}

/* ============================================================
   Responsive & erişilebilirlik
   ============================================================ */
@media (max-width: 991.98px) {
  .fb-hero { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 576px) {
  .fb-toolbar { flex-direction: column; align-items: stretch; position: static; }
  .fb-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .fb-filters button { flex-shrink: 0; }
  .fb-count { display: none; }
  .fb-score-num { font-size: 2.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .fb-in, .fb-summary { animation: none !important; }
  .fb-js .fb-card { opacity: 1; translate: none; transition: none; }
}