/* ===================================================
   Awareness Project Stylesheet
   Organized for clarity and maintainability.
   Uses CSS variables for theme consistency.
   =================================================== */

/* =================== Layout & Panel =================== */
.wrap { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 28px; background-color: var(--bg-color); background: transparent !important; box-shadow: none !important; }
.panel { width: min(96%, var(--panel-width)); max-width: var(--panel-width); background: transparent !important; border-radius: 14px; box-shadow: none !important; padding: 34px; box-sizing: border-box; text-align: center; color: var(--text-color); }

/* =================== Typography =================== */
h1 { margin: 0 0 18px 0; font-weight: 400; color: var(--text-color); font-size: 22px; }
p.lead { margin: 0 0 18px 0; color: var(--text-secondary-color); font-size: 15px; line-height: 1.45; }
#questionText { font-size: 24px; line-height: 1.5; margin: 6px 0 14px 0; text-align: center; word-break: break-word; color: var(--text-secondary-color); }
footer.note { margin-top: 14px; color: var(--text-secondary-color); font-size: 13px; }

/* =================== Form Controls =================== */
.row { display: flex; justify-content: center; gap: 12px; align-items: center; margin-bottom: 20px; }
select { padding: 8px 12px; font-size: 15px; border-radius: 8px; border: 1px solid var(--border-color, #e6e6e6); background: var(--bg-color); color: var(--text-color); }

/* =================== Sliders =================== */
/* Increase spacing between sliders and between slider elements */
.fixed-slider-wrap {
  width: 680px;
  max-width: 680px;
  margin: 28px auto 18px auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.fixed-track { width: 680px; }
input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 12px;
  border-radius: 10px;
  background: var(--border-color, #e6e6e6);
  outline: none;
  margin: 0 0 18px 0;
  padding: 0;
}
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--link-color); box-shadow: 0 6px 18px var(--shadow-color, rgba(102,100,64,0.24)); border: none; margin-top: 0%; cursor: pointer; transition: background-color 0.3s ease, box-shadow 0.3s ease; }
input[type="range"]::-webkit-slider-thumb:hover {
  background-color: var(--link-color);
}
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--link-color); box-shadow: 0 6px 18px var(--shadow-color, rgba(102,100,64,0.24)); border: none; margin-top: -2px; cursor: pointer; transition: background-color 0.3s ease, box-shadow 0.3s ease; }
input[type="range"]::-moz-range-thumb:hover {
  background-color: var(--link-color);
}

.slider-labels {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  margin-top: 0.3rem;
  margin-bottom: 10px;
  color: var(--text-secondary-color);
  user-select: none;
  box-sizing: border-box;
}

/* =================== Buttons =================== */
.btn, .enter-button, #restartBtn, #startBtn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 28px;
  background: transparent !important;
  color: var(--text-color) !important;
  border: 1px solid var(--text-secondary-color);
  box-shadow: none !important;
  font-size: 16px;
  cursor: pointer;
  margin-top: 34px;
  transition: none;
}
.btn:hover, .enter-button:hover, #restartBtn:hover, #startBtn:hover, .btn:active, .enter-button:active, #restartBtn:active, #startBtn:active { background: transparent !important; color: var(--text-color) !important; box-shadow: none !important; border: 1px solid var(--text-secondary-color); }

.hidden { display: none; }

/* =================== Result Stage =================== */
.result-grid { margin-top: 12px; color: var(--text-color); font-size: 15px; display: flex; gap: 12px; justify-content: space-between; align-items: center; }
.result-stage { font-weight: 700; flex: 1; padding: 10px; background: transparent !important; border-radius: 10px; cursor: pointer; position: relative; transition: background 0.2s ease; box-shadow: none !important; color: var(--text-color); }
.result-stage:hover { background: var(--link-hover-color); color: var(--bg-color); box-shadow: 0 4px 14px var(--shadow-color, rgba(0,0,0,0.1)); }
.result-score { font-size: 18px; color: var(--text-color); margin-top: 8px; font-weight: 600; }

/* =================== Stage Description =================== */
.stage-desc { padding: 12px 14px; margin-top: 8px; background: transparent !important; border-radius: 10px; text-align: left; font-size: 14px; line-height: 1.6; display: none; white-space: pre-wrap; color: var(--text-secondary-color); box-shadow: none !important; }

/* =================== Dominant Message =================== */
#dominantMessage { margin-top: 20px; background: transparent !important; border-radius: 12px; padding: 16px; color: var(--text-color); font-size: 15px; line-height: 1.4; box-shadow: none !important; }
#dominantMessage strong { color: var(--link-color); }

/* =================== RTL Support =================== */
:root[dir="rtl"] .panel, :root[dir="rtl"] .slider-labels { direction: rtl; }
:root[dir="rtl"] .stage-desc { direction: rtl; text-align: right; }

/* =================== Responsive =================== */
@media (max-width: 520px) {
  .panel { padding: 14px; }
  #questionText { font-size: 18px; }
  .btn, .enter-button { padding: 12px 18px; margin-top: 24px; font-size: 15px; }
  .fixed-slider-wrap {
    width: 96%;
    max-width: 100%;
    margin: 18px auto 10px auto;
    gap: 22px;
  }
  .slider-labels { font-size: 0.85rem; margin-top: 0.3rem; margin-bottom: 6px; }
  input[type="range"]::-webkit-slider-thumb, input[type="range"]::-moz-range-thumb { width: 28px; height: 16px; }
  input[type="range"] { margin-bottom: 10px; }
}
/* =================== Linear Question Indicator =================== */
#questionProgressBar { width: 92%; max-width: 680px; height: 4px; background: var(--border-color, #e6e6e6); border-radius: 3px; margin: 14px auto 8px auto; overflow: hidden; }
#questionProgressFill { width: 0%; height: 100%; background: var(--link-color); transition: width 0.3s ease; border-radius: 3px; }