/* public/css/shapka-respect.css */

/* ---------- shared helpers ---------- */

.ytfp-user-badge {
  background: #edf2f7;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  color: #4a5568;
  border: 1px solid #e2e8f0;
}

/* ---------- shapka ---------- */

.ytfp-shapka {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.ytfp-shapka__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ytfp-shapka__left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.ytfp-shapka__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.ytfp-shapka__logo {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}

.ytfp-shapka__title {
  color: #1a202c;
  font-weight: 700;
  line-height: 1.15;
  min-width: 0;
  flex: 1 1 auto;
  font-size: clamp(18px, 2.4vw, 28px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ytfp-shapka__title--multiline {
  white-space: normal;
  overflow: hidden;
  text-overflow: unset;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.2;
  max-height: 2.4em;
}

.ytfp-shapka__right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.ytfp-back-btn {
  background: #334155;
  color: white;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.ytfp-lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  background: #edf2f7;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
}

.ytfp-lang-switcher__btn {
  border: none;
  background: transparent;
  color: #475569;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.ytfp-lang-switcher__btn.is-active {
  background: white;
  color: #111827;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.ytfp-respect-bar {
  width: 100%;
  border-top: 1px solid #e2e8f0;
  padding-top: 10px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.4;
}

.ytfp-respect-bar__link {
  color: #334155;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
  cursor: pointer;
}

.ytfp-brand-full {
  display: inline;
}

.ytfp-brand-short {
  display: none;
}

/* ---------- respect page ---------- */

.respect-wrap {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.respect-hero {
  text-align: center;
  padding: 10px 0 2px;
}

.respect-hero__title {
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.18;
  font-weight: 800;
  color: #111827;
  margin-bottom: 16px;
}

.respect-hero__quote {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.55;
  color: #475569;
  max-width: 760px;
  margin: 0 auto;
}

.respect-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.respect-card__title {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 18px;
}

.respect-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: #1f2937;
  line-height: 1.7;
  font-size: 16px;
}

.respect-item__title {
  font-weight: 800;
  color: #111827;
  margin-bottom: 4px;
}

.respect-item__text {
  color: #1f2937;
}

.respect-copy-link {
  color: #334155;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 700;
  cursor: pointer;
  word-break: break-all;
}

.respect-copy-note {
  margin-top: 8px;
  font-size: 14px;
  color: #16a34a;
  min-height: 22px;
}

.respect-hint {
  margin-top: 6px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

.respect-stats {
  text-align: center;
  padding: 28px 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  border: 1px solid #e2e8f0;
}

.respect-stats__lead {
  color: #334155;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.7;
  max-width: 760px;
  margin: 0 auto 12px;
}

.respect-stats__numbers {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-top: 18px;
}

.respect-stat {
  min-width: 180px;
}

.respect-stat__value {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

.respect-stat__label {
  margin-top: 6px;
  font-size: 14px;
  color: #64748b;
}

/* ---------- mobile ---------- */

@media (max-width: 640px) {
  .ytfp-shapka__top {
    align-items: flex-start;
  }

  .ytfp-shapka__title {
    font-size: clamp(16px, 4.8vw, 22px);
  }

  .ytfp-brand-full {
    display: none;
  }

  .ytfp-brand-short {
    display: inline;
  }

  .ytfp-back-btn {
    padding: 8px 12px;
    font-size: 13px;
  }

  .ytfp-respect-bar {
    font-size: 12px;
  }

  .respect-card {
    padding: 18px;
    border-radius: 20px;
  }

  .respect-list {
    font-size: 15px;
  }

  .respect-stats {
    padding: 22px 16px;
  }
}