/* ==========================================================================
   PAJANDY.CZ — SOCIAL PROOF, CUSTOMER TRUST & REVIEW ARCHITECTURE
   Component: 'Spokojení čeští kutilové a zákazníci'
   Scoped under .pjy-trust-social-proof
   Colors: Dark Slate #0f172a, Navy #1e293b, Accent Yellow #ffc500, Amber #f59e0b,
           Success Green #16a34a, Crisp White #ffffff, Subtle Gray #f8fafc / #e2e8f0
   ========================================================================== */

:root {
  --pjy-trust-bg: #f8fafc;
  --pjy-trust-card-bg: #ffffff;
  --pjy-trust-dark: #0f172a;
  --pjy-trust-dark-sub: #334155;
  --pjy-trust-primary: #ffc500;
  --pjy-trust-primary-hover: #eab308;
  --pjy-trust-accent-green: #16a34a;
  --pjy-trust-accent-green-bg: #dcfce7;
  --pjy-trust-star: #f59e0b;
  --pjy-trust-border: #e2e8f0;
  --pjy-trust-border-strong: #cbd5e1;
  --pjy-trust-text-muted: #64748b;
  --pjy-trust-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --pjy-trust-shadow-md: 0 6px 18px rgba(15, 23, 42, 0.08);
  --pjy-trust-shadow-lg: 0 14px 34px rgba(15, 23, 42, 0.12);
  --pjy-trust-radius-sm: 8px;
  --pjy-trust-radius-md: 14px;
  --pjy-trust-radius-lg: 20px;
}

/* Master Component Container */
.pjy-trust-social-proof {
  font-family: -apple-system, BlinkMacSystemFont, "Nunito", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--pjy-trust-dark);
  background: var(--pjy-trust-bg);
  border: 1px solid var(--pjy-trust-border);
  border-radius: var(--pjy-trust-radius-lg);
  padding: 32px 28px;
  margin: 32px 0;
  box-shadow: var(--pjy-trust-shadow-sm);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.pjy-trust-social-proof * {
  box-sizing: border-box;
}

/* Header Section */
.pjy-tsp-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 28px auto;
}

.pjy-tsp-badge-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.pjy-tsp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.pjy-tsp-badge-dot {
  width: 7px;
  height: 7px;
  background: #16a34a;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}

.pjy-tsp-title {
  font-size: 26px;
  font-weight: 900;
  color: var(--pjy-trust-dark);
  line-height: 1.25;
  margin: 0 0 8px 0;
  letter-spacing: -0.3px;
}

.pjy-tsp-subtitle {
  font-size: 15px;
  color: var(--pjy-trust-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* --------------------------------------------------------------------------
   TRUST BAR HIGHLIGHT (4 Core Pillars)
   -------------------------------------------------------------------------- */
.pjy-tsp-trustbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 30px;
}

.pjy-tsp-trust-item {
  background: var(--pjy-trust-card-bg);
  border: 1px solid var(--pjy-trust-border);
  border-radius: var(--pjy-trust-radius-md);
  padding: 16px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: var(--pjy-trust-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.pjy-tsp-trust-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--pjy-trust-shadow-md);
  border-color: #cbd5e1;
}

.pjy-tsp-trust-item--highlight {
  border-left: 4px solid var(--pjy-trust-primary);
}

.pjy-tsp-trust-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.pjy-tsp-trust-content {
  flex: 1;
  min-width: 0;
}

.pjy-tsp-trust-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--pjy-trust-dark);
  line-height: 1.3;
  margin-bottom: 3px;
}

.pjy-tsp-trust-desc {
  font-size: 11.5px;
  color: var(--pjy-trust-text-muted);
  line-height: 1.35;
}

.pjy-tsp-trust-phone-link {
  color: #0284c7;
  font-weight: 700;
  text-decoration: none;
}
.pjy-tsp-trust-phone-link:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   RATING SCORE CARD & SUMMARY OVERVIEW
   -------------------------------------------------------------------------- */
.pjy-tsp-scorecard {
  background: var(--pjy-trust-card-bg);
  border: 1px solid var(--pjy-trust-border);
  border-radius: var(--pjy-trust-radius-md);
  padding: 22px 24px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  box-shadow: var(--pjy-trust-shadow-sm);
}

.pjy-tsp-score-main {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 250px;
}

.pjy-tsp-score-big {
  font-size: 46px;
  font-weight: 900;
  color: var(--pjy-trust-dark);
  line-height: 1;
  letter-spacing: -1px;
}

.pjy-tsp-score-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pjy-tsp-stars {
  display: inline-flex;
  gap: 2px;
  color: var(--pjy-trust-star);
  font-size: 19px;
  line-height: 1;
}

.pjy-tsp-score-meta {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--pjy-trust-dark);
}

.pjy-tsp-score-sub {
  font-size: 12px;
  color: var(--pjy-trust-text-muted);
}

.pjy-tsp-bars-wrapper {
  flex: 1;
  min-width: 260px;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pjy-tsp-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--pjy-trust-text-muted);
}

.pjy-tsp-bar-label {
  width: 22px;
  font-weight: 700;
  text-align: right;
  color: var(--pjy-trust-dark);
}

.pjy-tsp-bar-track {
  flex: 1;
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.pjy-tsp-bar-fill {
  height: 100%;
  background: var(--pjy-trust-star);
  border-radius: 999px;
  transition: width 0.6s ease;
}

.pjy-tsp-bar-percent {
  width: 32px;
  font-size: 11.5px;
  font-weight: 600;
  text-align: right;
  color: var(--pjy-trust-text-muted);
}

.pjy-tsp-guarantees-mini {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-left: 1px solid var(--pjy-trust-border);
  padding-left: 20px;
  min-width: 210px;
}

.pjy-tsp-mini-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--pjy-trust-dark);
  font-weight: 600;
}

.pjy-tsp-mini-item-icon {
  color: var(--pjy-trust-accent-green);
  font-weight: 900;
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   CUSTOMER REVIEWS GRID (AUTHENTIC VERIFIED CARDS)
   -------------------------------------------------------------------------- */
.pjy-tsp-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}

.pjy-tsp-review-card {
  background: var(--pjy-trust-card-bg);
  border: 1px solid var(--pjy-trust-border);
  border-radius: var(--pjy-trust-radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--pjy-trust-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.pjy-tsp-review-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--pjy-trust-shadow-md);
  border-color: #cbd5e1;
}

.pjy-tsp-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.pjy-tsp-author-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pjy-tsp-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.pjy-tsp-author-meta {
  display: flex;
  flex-direction: column;
}

.pjy-tsp-author-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--pjy-trust-dark);
  line-height: 1.2;
}

.pjy-tsp-author-loc {
  font-size: 11.5px;
  color: var(--pjy-trust-text-muted);
  line-height: 1.2;
  margin-top: 2px;
}

.pjy-tsp-verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--pjy-trust-accent-green-bg);
  color: var(--pjy-trust-accent-green);
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.pjy-tsp-card-rating-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.pjy-tsp-card-date {
  font-size: 11.5px;
  color: var(--pjy-trust-text-muted);
}

.pjy-tsp-product-tag {
  display: inline-block;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 12px;
  line-height: 1.3;
}

.pjy-tsp-product-tag span {
  color: var(--pjy-trust-text-muted);
  font-weight: 400;
}

.pjy-tsp-review-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: #334155;
  margin: 0 0 16px 0;
  flex: 1;
}

.pjy-tsp-review-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  margin-top: auto;
}

.pjy-tsp-helpful {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--pjy-trust-text-muted);
}

.pjy-tsp-vote-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.pjy-tsp-vote-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.pjy-tsp-vote-btn.active {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1d4ed8;
}

/* --------------------------------------------------------------------------
   REASSURING FAQ MODULE (ACCORDION)
   -------------------------------------------------------------------------- */
.pjy-tsp-faq-section {
  background: var(--pjy-trust-card-bg);
  border: 1px solid var(--pjy-trust-border);
  border-radius: var(--pjy-trust-radius-md);
  padding: 26px 28px;
  box-shadow: var(--pjy-trust-shadow-sm);
}

.pjy-tsp-faq-header {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.pjy-tsp-faq-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--pjy-trust-dark);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pjy-tsp-faq-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--pjy-trust-text-muted);
}

.pjy-tsp-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pjy-tsp-faq-item {
  border: 1px solid var(--pjy-trust-border);
  border-radius: var(--pjy-trust-radius-sm);
  background: #ffffff;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pjy-tsp-faq-item.active {
  border-color: var(--pjy-trust-primary);
  box-shadow: 0 2px 8px rgba(255, 197, 0, 0.15);
}

.pjy-tsp-faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 15px 18px;
  font-size: 15px;
  font-weight: 800;
  color: var(--pjy-trust-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.pjy-tsp-faq-question:hover {
  background: #f8fafc;
  color: #0284c7;
}

.pjy-tsp-faq-toggle-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #475569;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
  flex-shrink: 0;
}

.pjy-tsp-faq-item.active .pjy-tsp-faq-toggle-icon {
  transform: rotate(180deg);
  background: var(--pjy-trust-primary);
  color: #0f172a;
}

.pjy-tsp-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
  padding: 0 18px;
  font-size: 14px;
  line-height: 1.6;
  color: #334155;
  background: #ffffff;
}

.pjy-tsp-faq-item.active .pjy-tsp-faq-answer {
  max-height: 300px;
  padding: 0 18px 18px 18px;
}

.pjy-tsp-faq-answer p {
  margin: 0;
}

.pjy-tsp-faq-answer strong {
  color: var(--pjy-trust-dark);
}

.pjy-tsp-faq-cta-bar {
  margin-top: 18px;
  padding: 14px 18px;
  background: #f8fafc;
  border: 1px dashed var(--pjy-trust-border-strong);
  border-radius: var(--pjy-trust-radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

.pjy-tsp-faq-cta-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--pjy-trust-dark);
}

.pjy-tsp-faq-cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--pjy-trust-primary);
  color: #0f172a;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.pjy-tsp-faq-cta-phone:hover {
  background: var(--pjy-trust-primary-hover);
  text-decoration: none;
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   RESPONSIVENESS & BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .pjy-tsp-trustbar {
    grid-template-columns: repeat(2, 1fr);
  }
  .pjy-tsp-reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pjy-tsp-guarantees-mini {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--pjy-trust-border);
    padding-top: 14px;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }
}

@media (max-width: 767px) {
  .pjy-trust-social-proof {
    padding: 22px 14px;
    margin: 20px 0;
    border-radius: var(--pjy-trust-radius-md);
  }
  .pjy-tsp-title {
    font-size: 21px;
  }
  .pjy-tsp-subtitle {
    font-size: 13.5px;
  }
  .pjy-tsp-trustbar {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .pjy-tsp-trust-item {
    padding: 12px;
  }
  .pjy-tsp-reviews-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .pjy-tsp-scorecard {
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
  }
  .pjy-tsp-bars-wrapper {
    max-width: 100%;
    width: 100%;
  }
  .pjy-tsp-faq-section {
    padding: 18px 14px;
  }
  .pjy-tsp-faq-title {
    font-size: 18px;
  }
  .pjy-tsp-faq-cta-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .pjy-tsp-faq-cta-phone {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   PDP BUYBOX INLINE TRUST STRIP (COMPACT TRUST CHIPS)
   Targeted right below .p-final-price-wrapper
   ========================================================================== */
.pjy-pdp-trust-strip {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px 8px !important;
  margin: 12px 0 16px 0 !important;
  padding: 10px 12px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

.pjy-trust-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  padding: 4px 9px !important;
  font-size: 11.5px !important;
  line-height: 1.35 !important;
  color: #334155 !important;
  flex: 1 1 calc(50% - 6px) !important;
  min-width: 140px !important;
  box-sizing: border-box !important;
  transition: all 0.15s ease !important;
}

.pjy-trust-chip:hover {
  border-color: #94a3b8 !important;
  background: #f1f5f9 !important;
  transform: translateY(-1px) !important;
}

.pjy-trust-chip .pjy-chip-icon {
  font-size: 14px !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
}

.pjy-trust-chip .pjy-chip-text {
  font-size: 11.5px !important;
  color: #334155 !important;
}

.pjy-trust-chip .pjy-chip-text strong {
  color: #0f172a !important;
  font-weight: 700 !important;
}

.pjy-trust-chip .pjy-chip-sub {
  color: #16a34a !important;
  font-weight: 700 !important;
}

@media (max-width: 480px) {
  .pjy-pdp-trust-strip {
    padding: 8px 10px !important;
    gap: 6px !important;
    margin: 10px 0 14px 0 !important;
  }
  .pjy-trust-chip {
    flex: 1 1 100% !important;
    padding: 5px 8px !important;
    font-size: 11.5px !important;
  }
}

