/*
  Cleaned and reorganized stylesheet for Monitor Selector
  Sections: Reset, Typography, Forms, Rulers, Visual Comparison,
  Checklist, Warnings/Rationale, CTA, Results/Cards, FAQ, SEO
*/

/* Reset / Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  background: #0f1419;
  color: #e8eaed;
  line-height: 1.6;
  font-size: 16px;
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Typography */

h1 {
  font-size: 2.5rem;
  margin: 2rem 0 1rem;
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  font-size: 1.5rem;
  margin: 1.5rem 0 0.75rem;
  color: #e8eaed;
  font-weight: 600;
}

h3 {
  font-size: 1.25rem;
  margin: 1rem 0 0.5rem;
  color: #fff;
  font-weight: 600;
}

h4 {
  font-size: 1rem;
  margin: 1rem 0 0.5rem;
  color: #ccc;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
  color: #bcc0c6;
}

a {
  color: #8ab4f8;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #aecbfa;
  text-decoration: underline;
}

/* Forms / Inputs */

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #e8eaed;
}

input[type="text"], input[type="number"], select, button {
  font-size: 1rem;
  padding: 0.75rem;
  border-radius: 4px;
  background: #2c3142;
  border: none;
  color: #e8eaed;
  transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
  outline: none;
  border-color: #8ab4f8;
  box-shadow: 0 0 0 2px rgba(138, 180, 248, 0.1);
}

input::placeholder {
  color: #9ca3af;
}

button:hover {
  transform: translateY(-2px);
}

button:active {
  transform: translateY(0);
}

/* form-select: merged rules + custom SVG arrow for dark theme */
.form-select {
  background-color: #2c3142 !important;
  color: #fff !important;
  cursor: pointer;
  border: none;
  padding: 0.75rem 2.5rem 0.75rem 0.75rem;
  font-size: 1rem;
  border-radius: 4px;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%23e8eaed' d='M0 0l5 6 5-6z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px 6px;
}

/* Ruler controls */

.ruler-control {
  position: relative;
  padding: 0.5rem 0;
}

.ruler-control input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, #2c3142, #2c3142);
  border-radius: 6px;
  border: none;
  outline: none;
}

.ruler-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #8ab4f8;
  border: 3px solid #0f1419;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.ruler-control input[type="range"]::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #8ab4f8;
  border: 3px solid #0f1419;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.ruler-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ruler-row * {
  margin: 0;
}

.ruler-ticks {
  height: 55px;
  position: relative;
  margin: 0 14px;
}

.ruler-ticks .tick-label-inch {
  position: absolute;
  transform: translateX(-50%);
  top: 0;
  font-size: 10px;
  line-height: 15px;
  height: 15px;
  color: #9ca3af;
  pointer-events: none;
}

.ruler-ticks .tick-large {
  position: absolute;
  bottom: 15px;
  width: 1px;
  height: 25px;
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(-50%);
  border-radius: 1px;
}

.ruler-ticks .tick {
  position: absolute;
  bottom: 15px;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-50%);
  height: 15px;
}

.ruler-ticks .tick-label {
  position: absolute;
  transform: translateX(-50%);
  bottom: 0;
  font-size: 10px;
  height: 15px;
  line-height: 15px;
  color: #9ca3af;
  pointer-events: none;
}

.ruler-values {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.5rem;
}

.ruler-values input[type="number"] {
  width: 6.5rem;
  padding: 0.5rem;
}

/* Language flag icons (from flagcdn) */
.flag { width: 24px; height: auto; vertical-align: middle; display: inline-block }
.lang-nav { display: flex; gap: 0.5rem; align-items: center }
.lang-nav .lang-link { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 24px; padding: 2px; border-radius: 4px; background: transparent }
.lang-nav .lang-link:hover { background: rgba(138,180,248,0.06) }
.lang-nav .lang-link img.flag { filter: none; display: block }

.ruler-values .unit {
  color: #9ca3af;
}

/* Visual comparison (monitor bars) */
.visual-comparison {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  overflow-x: hidden;
  padding-top: 2rem;
}

.vc-bar {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.vc-bar[data-size="24"] {
  width: clamp(100px, 18vw, 130px);
}

.vc-bar[data-size="27"] {
  width: clamp(115px, 21vw, 155px);
}

.vc-bar[data-size="32"] {
  width: clamp(140px, 25vw, 185px);
}

.vc-bar[data-size="34"] {
  width: clamp(155px, 28vw, 215px);
}

.vc-bar .bar {
  width: 100%;
  border-radius: 12px;
  transition: transform 200ms ease, box-shadow 200ms;
  background: linear-gradient(180deg, #2b3446, #1a2030);
  border: 4px solid #2f3a4a;
  aspect-ratio: 16 / 9;
}

.vc-bar .label {
  margin-top: 8px;
  font-size: 0.95rem;
  color: #cbd5e1;
}

.vc-bar.selected .bar {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.6);
  border-color: #8ab4f8;
}

.vc-note {
  margin-top: 0.5rem;
  color: #9ca3af;
  font-size: 0.9rem;
}

.monitor-svg {
  width: auto;
  height: 100%;
  max-height: 140px;
  display: block;
}

/* Checklist / rationale */

.checklist-section i.bi,
ul.list-unstyled li i.bi {
  font-size: 1.25rem;
  line-height: 1;
}

.checklist-section span.text-success,
ul.list-unstyled li span.text-success {
  color: #198754;
  font-weight: 600;
}

.resultsChoice ul.list-unstyled li,
.checklist-section ul.list-unstyled li {
  line-height: 1.15;
}

.resultsChoice .small,
.resultsChoice .small.mb-1,
.resultsChoice .text-white {
  line-height: 1.15;
}

/* Warnings, rationale and tradeoffs */

.warnings {
  background: #441f0f;
  border-left: 3px solid #d97706;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 4px;
}

.warning {
  color: #fed7aa;
  margin: 0.5rem 0;
}

.warning:last-child {
  margin-bottom: 0;
}

.rationale,
.tradeoffs {
  background: #2c3142;
  padding: 1rem;
  border-radius: 4px;
  margin: 1rem 0;
}

.rationale strong,
.tradeoffs strong {
  color: #8ab4f8;
}

/* CTA */

.cta-button {
  display: inline-block;
  background: #FF9900;
  color: #000;
  padding: .5rem 1rem;
  margin: 0 auto;
  border-radius: .5rem;
  font-weight: 600;
  font-size: 1.1rem;
  text-align: center;
  opacity: .8;
}

.cta-button:hover {
  opacity: 1;
  text-decoration: none;
}

/* Results / Cards */

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 1rem;
  border-radius: 4px;
}

.affiliate-disclaimer {
  background: #1a1f26;
  border: 1px solid #3c4454;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  font-size: 0.9rem;
}

.affiliate-disclaimer h3 {
  color: #8ab4f8;
  margin-top: 0;
}

.affiliate-disclaimer p {
  color: #9ca3af;
  margin-bottom: 0;
}

/* FAQ */

.faq-section {
  margin: 3rem 0;
}

.faq-section h2 {
  margin-bottom: 1.5rem;
}

.faq-item {
  background: #1a1f26;
  border-left: 3px solid #8ab4f8;
  border-radius: 4px;
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.faq-item details {
  cursor: pointer;
}

.faq-item summary {
  font-weight: 600;
  color: #e8eaed;
  outline: none;
  user-select: none;
}

.faq-item summary:hover {
  color: #8ab4f8;
}

.faq-item summary::marker {
  color: #8ab4f8;
}

.faq-item p {
  margin-top: 1rem;
  color: #bcc0c6;
}

/* SEO content */

.seo-content {
  margin: 2rem 0;
}

.seo-content p {
  text-align: justify;
  color: #bcc0c6;
  line-height: 1.8;
}

/* Result card variants */

.resultsChoice {
  padding: 1.5rem;
  border-width: 6px;
  border-style: solid;
  border-radius: 1rem;
  margin: .5rem;
}

.resultsChoice.firstChoice {
  background-color: rgba(255,255,255,1);
  border-color: rgba(17,187,102);
}

.resultsChoice.firstChoice h3 {
  color: #000;
}

.resultsChoice.secondChoice {
  background-color: rgba(255,255,255,.4);
  border-color: rgba(255,255,255,.6);
}

.resultsChoice.secondChoice h3 {
  color: #000;
}

/* Make entire results card feel clickable with subtle zoom + shadow */
.resultsChoice {
  transition: transform 180ms ease, box-shadow 180ms ease;
  will-change: transform, box-shadow;
}

.resultsChoice[tabindex] {
  cursor: pointer;
}

.resultsChoice:focus {
  outline: none;
  box-shadow: 0 10px 28px rgba(138,180,248,0.12), 0 6px 12px rgba(0,0,0,0.35);
  transform: translateY(-6px) scale(1.02);
}

.resultsChoice:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 14px 36px rgba(0,0,0,0.55);
}

.resultsChoice .btn {
  z-index: 2; /* keep CTA above the card surface */
}

