/* A hasznaldfel.hu színvilága: szürke szöveg, türkiz kiemelés (logó, linkek), sötétvörös gombok, fehér háttér */
.hff {
  --hff-accent: #22AAA1;
  --hff-accent-dark: #1a8a83;
  --hff-cta: #A10101;
  --hff-cta-dark: #7d0101;
  --hff-text: #555555;
  --hff-heading: #555555;
  --hff-muted: #777777;
  --hff-bg: #ffffff;
  --hff-soft: #f7f7f7;
  --hff-border: #eaeaea;
  --hff-radius: 3px;
  max-width: 720px;
  margin: 0 auto;
  font-family: 'Roboto', sans-serif;
  color: var(--hff-text);
  line-height: 1.6;
}

.hff [hidden] { display: none !important; }

.hff-label,
.hff-result-title {
  display: block;
  font-family: 'Yanone Kaffeesatz', sans-serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 12px;
  color: var(--hff-heading);
}

.hff-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 16px;
  font: inherit;
  font-size: 17px;
  color: var(--hff-text);
  border: 2px solid #dddddd;
  border-radius: var(--hff-radius);
  background: var(--hff-bg);
  resize: vertical;
  transition: border-color .2s;
}
.hff-textarea:focus { outline: none; border-color: var(--hff-accent); }

.hff-meta { text-align: right; font-size: 13px; color: var(--hff-muted); margin: 4px 0 16px; }

.hff-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.hff-button,
.hff-again,
.hff-buy-button,
.hff-email-button {
  display: inline-block;
  padding: 14px 32px;
  font-family: 'Yanone Kaffeesatz', sans-serif;
  font-size: 24px;
  letter-spacing: .5px;
  color: #fff;
  background: var(--hff-cta);
  border: 0;
  border-radius: var(--hff-radius);
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, transform .1s;
}
.hff-button:hover,
.hff-buy-button:hover { background: var(--hff-cta-dark); color: #fff; }
/* A másodlagos (e-mail) gomb türkiz, hogy ne versenyezzen a vásárlással */
.hff-email-button { background: var(--hff-accent); }
.hff-email-button:hover { background: var(--hff-accent-dark); color: #fff; }
.hff-button:active { transform: scale(.98); }
.hff-button:disabled,
.hff-email-button:disabled { opacity: .6; cursor: wait; }

.hff-privacy { font-size: 13px; color: var(--hff-muted); margin-top: 16px; }
.hff-privacy strong { color: var(--hff-text); }

.hff-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  font-style: italic;
  color: var(--hff-muted);
}
.hff-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid var(--hff-border);
  border-top-color: var(--hff-accent);
  border-radius: 50%;
  animation: hff-spin 1s linear infinite;
}
@keyframes hff-spin { to { transform: rotate(360deg); } }

.hff-error,
.hff-email-error {
  margin: 16px 0;
  padding: 12px 16px;
  border-radius: 8px;
  background: #fff4f2;
  color: #a33a2a;
}

.hff-error-details { margin-top: 8px; font-size: 13px; font-family: monospace; word-break: break-word; }

/* ---- Eredmény ---- */

.hff-result {
  padding: 32px;
  border-radius: var(--hff-radius);
  background: var(--hff-soft);
  border-top: 4px solid var(--hff-accent);
}

/* A könyv bemutatása a fejezet fölött */
.hff-book {
  display: flex;
  gap: 20px;
  align-items: center;
  margin: 0 0 28px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--hff-border);
  border-radius: var(--hff-radius);
}
.hff-book-cover { flex: 0 0 110px; width: 110px; height: auto; border-radius: 2px; }
.hff-book-text { flex: 1 1 auto; }
.hff-book-badge {
  display: inline-block;
  padding: 2px 10px;
  font-family: 'Yanone Kaffeesatz', sans-serif;
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  background: var(--hff-cta);
  border-radius: 2px;
}
.hff-book-title {
  margin: 6px 0 4px;
  font-family: 'Yanone Kaffeesatz', sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--hff-heading);
}
.hff-book-intro { margin: 0; font-size: 15px; line-height: 1.5; }
.hff-reason p { font-size: 18px; margin: 0 0 14px; }
.hff-signature {
  font-family: 'Yanone Kaffeesatz', sans-serif;
  font-size: 22px;
  color: var(--hff-accent-dark);
  text-align: right;
  margin: 0 0 24px;
}

.hff-crisis {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
  padding: 16px;
  border-radius: var(--hff-radius);
  background: #fff;
  border: 2px solid #e0795f;
}
.hff-crisis a { color: #b84a30; font-weight: 700; }

/* A fejezet: fehér „könyvlap” */
.hff-chapter {
  background: #fff;
  border-radius: var(--hff-radius);
  border: 1px solid var(--hff-border);
  padding: 28px 32px;
}
.hff-chapter-section {
  margin: 0 0 4px;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--hff-muted);
}
.hff-chapter-title {
  font-family: 'Yanone Kaffeesatz', sans-serif;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 20px;
  color: var(--hff-accent-dark);
}
.hff-line {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 10px;
  font-size: 17px;
}
/* A könyv jelölői: kéz = Gábor, mancs = Lord (mindkettő szürke, mint a nyomtatott kiadásban) */
.hff-who {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: .55;
}
.hff-who-inline { display: inline-block; width: 16px; height: 16px; margin: 0 0 -3px; }
.hff-line-gabor .hff-who,
.hff-who-gabor {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232b2b2b'%3E%3Cpath d='M9 2.2c-.7 0-1.2.5-1.2 1.2v8.1h-.6V4.6c0-.7-.5-1.2-1.2-1.2S4.8 3.9 4.8 4.6v9.9l-1.6-2.1c-.5-.6-1.3-.7-1.8-.3-.5.4-.6 1.1-.2 1.7l3.4 5.2c1.2 1.9 3.1 3 5.4 3h2.3c3.3 0 5.9-2.6 5.9-5.9V6.6c0-.7-.5-1.2-1.2-1.2s-1.2.5-1.2 1.2v4.9h-.6V3.4c0-.7-.5-1.2-1.2-1.2s-1.2.5-1.2 1.2v8.1h-.6V3.4c0-.7-.5-1.2-1.2-1.2z'/%3E%3C/svg%3E");
}
.hff-line-lord .hff-who,
.hff-who-lord {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232b2b2b'%3E%3Cellipse cx='5' cy='10' rx='2.2' ry='3'/%3E%3Cellipse cx='19' cy='10' rx='2.2' ry='3'/%3E%3Cellipse cx='9' cy='5.5' rx='2.4' ry='3.2'/%3E%3Cellipse cx='15' cy='5.5' rx='2.4' ry='3.2'/%3E%3Cpath d='M12 10c-3.2 0-5.2 2.6-6.4 5.1-.9 1.9.1 3.9 2.1 3.9 1.3 0 2.3-.8 4.3-.8s3 .8 4.3.8c2 0 3-2 2.1-3.9C17.2 12.6 15.2 10 12 10z'/%3E%3C/svg%3E");
}
.hff-chapter-source { margin: 20px 0 0; font-size: 13px; color: var(--hff-muted); }

/* Hasonló írások (csak címek) */
.hff-similar { margin: 28px 0 0; }
.hff-similar-title { font-weight: 700; margin: 0 0 8px; }
.hff-similar-list { margin: 0 0 6px; padding-left: 22px; }
.hff-similar-list li { margin: 0 0 4px; font-family: 'Yanone Kaffeesatz', sans-serif; font-size: 22px; color: var(--hff-accent-dark); }
.hff-similar-note { margin: 0; font-size: 14px; color: var(--hff-muted); }

/* Vásárlás */
.hff-buy { margin: 28px 0 8px; text-align: center; }
.hff-buy-button { font-size: 26px; padding: 16px 40px; }
.hff-buy-note { margin: 12px 0 0; font-size: 15px; color: var(--hff-muted); }
.hff-buy-note a { color: var(--hff-accent-dark); font-weight: 700; }

/* E-mail: második fejezet */
.hff-email {
  margin: 32px 0 0;
  padding: 20px 24px;
  border-top: 1px solid var(--hff-border);
}
.hff-email-title {
  font-family: 'Yanone Kaffeesatz', sans-serif;
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--hff-heading);
}
.hff-email-text { margin: 0 0 14px; font-size: 16px; }
.hff-email-row { display: flex; gap: 10px; flex-wrap: wrap; }
.hff-email-input {
  flex: 1 1 240px;
  padding: 12px 16px;
  font: inherit;
  font-size: 16px;
  border: 2px solid #dddddd;
  color: var(--hff-text);
  border-radius: var(--hff-radius);
  background: #fff;
}
.hff-email-input:focus { outline: none; border-color: var(--hff-accent); }
.hff-email-button { font-size: 20px; padding: 10px 26px; }
.hff-email-privacy { margin: 10px 0 0; font-size: 13px; color: var(--hff-muted); }
.hff-email-done { margin: 24px 0 0; padding: 14px 18px; border-radius: var(--hff-radius); background: #fff; border: 2px solid var(--hff-accent); }

.hff-again { margin-top: 20px; font-size: 18px; padding: 8px 22px; background: #999; }

@media (max-width: 600px) {
  .hff-label, .hff-result-title { font-size: 26px; }
  .hff-result { padding: 20px 14px; }
  .hff-chapter { padding: 20px 16px; }
  .hff-chapter-title { font-size: 28px; }
  .hff-line { font-size: 16px; }
  .hff-reason p { font-size: 17px; }
  .hff-book { flex-direction: column; text-align: center; }
  .hff-book-cover { width: 120px; flex-basis: auto; }
}