/* ── Diagnostic (אבחון) page styles ── */

.page-title {
  font-size: 1.7rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
  letter-spacing: 0.1em;
}

.page-subtitle {
  font-size: 1rem;
  color: #999;
  margin-bottom: 2rem;
  letter-spacing: 0.1em;
}

/* ── Timer bar ── */
.timer-bar {
  position: sticky;
  top: 0;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0 1.2rem;
  border-bottom: 1px solid #eee;
  margin-bottom: 1.5rem;
  z-index: 5;
}

.timer-label {
  font-size: 0.9rem;
  color: #999;
  letter-spacing: 0.1em;
}

.timer-value {
  font-size: 1.3rem;
  font-weight: 700;
  direction: ltr;
}

.timer-value.warning { color: #c0392b; }

/* ── Question block ── */
.d-question {
  padding: 1.5rem 0;
  border-top: 1px solid #000;
}
.d-question:first-of-type { border-top: none; padding-top: 0; }

.d-q-number {
  font-size: 0.85rem;
  color: #aaa;
  margin-bottom: 0.4rem;
  letter-spacing: 0.1em;
}

.d-q-text {
  direction: rtl;
  text-align: right;
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
  line-height: 1.8;
  unicode-bidi: plaintext;
  letter-spacing: 0.04em;
  font-family: 'David Libre', serif;
}

.d-choices {
  display: table;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.45rem;
  direction: rtl;
  letter-spacing: 0.04em;
  font-family: 'David Libre', serif;
}

.d-choice-row { display: table-row; cursor: pointer; }

.d-choice-label {
  display: table-cell;
  white-space: nowrap;
  padding-left: 0.7rem;
  vertical-align: top;
  direction: ltr;
  text-align: right;
  width: 2.2rem;
  font-size: 1rem;
  font-family: 'David Libre', serif;
}

.d-choice-text {
  display: table-cell;
  direction: rtl;
  text-align: right;
  vertical-align: top;
  width: 100%;
  font-size: 1rem;
  font-family: 'David Libre', serif;
}

.d-choice-row:hover .d-choice-label,
.d-choice-row:hover .d-choice-text { opacity: 0.55; }

.d-choice-row.selected .d-choice-label,
.d-choice-row.selected .d-choice-text {
  font-weight: 700;
}
.d-choice-row.selected .d-choice-text::before { content: ''; }
.d-choice-row:not(.selected) .d-choice-text::before { content: ''; }

/* ── Footer / submit ── */
.diag-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0 0.5rem;
}

.diag-progress {
  font-size: 0.9rem;
  color: #999;
  direction: ltr;
}

.submit-btn {
  font-family: inherit;
  font-size: 0.95rem;
  background: #1a1a1a;
  color: #fff;
  border: none;
  padding: 0.6rem 1.6rem;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.1em;
  transition: background 0.1s;
}
.submit-btn:hover { background: #333; }

/* ── Intro box ── */
.diag-intro {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  max-width: 560px;
  padding-top: 2.5rem;
}

.diag-intro-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
}

.diag-intro-sub {
  font-size: 1rem;
  line-height: 1.8;
  color: #444;
}

.diag-intro-box {
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 2rem 2.4rem;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  max-width: 560px;
}

.diag-intro-text {
  font-size: 1rem;
  line-height: 1.8;
  color: #444;
}

.diag-start-btn {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  background: #1a1a1a;
  color: #fff;
  border: none;
  padding: 0.65rem 2rem;
  border-radius: 4px;
  cursor: pointer;
  align-self: flex-start;
  letter-spacing: 0.05em;
  transition: background 0.12s;
}
.diag-start-btn:hover { background: #333; }

/* ── Single question view ── */
#diag-question-wrap, #kt-question-wrap {
  padding-top: 2.5rem;
}

.submit-btn:disabled {
  background: #ccc;
  cursor: default;
}

/* ── Empty state ── */
.empty-state {
  padding: 3rem 0;
  color: #aaa;
  font-size: 1rem;
  text-align: center;
  border-top: 1px solid #f0f0ee;
}

/* ── Avchon tab switcher ── */
.avchon-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid #eee;
  margin-bottom: 2rem;
}

.avchon-tab {
  font-family: inherit;
  font-size: 1.05rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  padding: 0.6rem 0.2rem;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  letter-spacing: 0.05em;
  transition: color 0.1s, border-color 0.1s;
}

.avchon-tab:hover { color: #555; }

.avchon-tab.active {
  color: #1a1a1a;
  font-weight: 700;
  border-bottom-color: #1a1a1a;
}
