/* GPUIndia — /gpu-compare/ : GPU vs GPU head-to-head compare page styles.
   Extends ../style.css + ../rental.css (nav, footer, card tables, prose).
   Reuses the calculator-page control/slider aesthetic, adds a 2-column
   compare grid + side-by-side cost table. Includes the horizontal gutter
   these calculator pages need in <main>. */

/* ---- Horizontal gutter for this calculator page's <main> ---- */
main {
  width:100%;
  max-width:1180px;
  margin:0 auto;
  padding:0 20px;
  box-sizing:border-box;
}
@media (max-width:400px){
  main { padding:0 14px; }
}

/* ---- Controls: same linear calculator feel as TCO/electricity ---- */
.control-group {
  display:flex;
  flex-direction:column;
  gap:7px;
  flex:1 1 220px;
  min-width:200px;
}
.control-group label {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-size:11.5px;
  font-weight:600;
  letter-spacing:.5px;
  text-transform:uppercase;
  color:var(--text-dim);
}
.control-group .ctrl-val {
  color:var(--green);
  font-weight:800;
  font-family:'JetBrains Mono',monospace;
  font-size:12.5px;
  white-space:nowrap;
  text-transform:none;
  letter-spacing:0;
}
.control-group input[type="range"] {
  -webkit-appearance:none;
  appearance:none;
  width:100%;
  height:6px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--green),var(--green) var(--fill,50%),#2a2a3c var(--fill,50%),#2a2a3c);
  outline:none;
  cursor:pointer;
}
.control-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance:none;
  appearance:none;
  width:18px;height:18px;
  border-radius:50%;
  background:#fff;
  border:3px solid var(--green);
  box-shadow:0 2px 6px rgba(0,0,0,.4);
  cursor:pointer;
}
.control-group input[type="range"]::-moz-range-thumb {
  width:18px;height:18px;border-radius:50%;
  background:#fff;border:3px solid var(--green);cursor:pointer;
}
.control-group select {
  width:100%;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid #2a2a3c;
  background:#14141f;
  color:var(--text);
  font-size:14px;
  cursor:pointer;
}
.hint {
  margin:0;
  font-size:11px;
  color:var(--text-dim);
  line-height:1.4;
}

/* ---- Side tags (A / B) ---- */
.side-tag {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px;height:18px;
  border-radius:5px;
  font-size:11px;
  font-weight:800;
  line-height:1;
}
.side-tag.gpu-a { background:rgba(10,207,110,.16); color:#0acf6e; border:1px solid rgba(10,207,110,.4); }
.side-tag.gpu-b { background:rgba(99,132,255,.16); color:#6384ff; border:1px solid rgba(99,132,255,.4); }

/* ---- 2-column compare grid ---- */
.compare-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin-top:14px;
}
.compare-card {
  border:1px solid #26263a;
  border-radius:14px;
  background:linear-gradient(180deg,#161624, #10101b);
  overflow:hidden;
}
.compare-card.gpu-a { border-top:3px solid #0acf6e; }
.compare-card.gpu-b { border-top:3px solid #6384ff; }
.compare-card .cc-head {
  display:flex;
  align-items:center;
  gap:10px;
  padding:14px 16px;
  border-bottom:1px solid #26263a;
  background:rgba(255,255,255,.02);
  flex-wrap:wrap;
}
.compare-card .cc-name { font-size:17px; font-weight:800; color:var(--text); }
.compare-card .cc-spec { font-size:11.5px; color:var(--text-dim); margin-left:auto; text-align:right; }
.compare-card .cc-rows { padding:6px 0; }
.cc-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:11px 16px;
  border-bottom:1px solid rgba(255,255,255,.03);
}
.cc-row:last-child { border-bottom:none; }
.cc-row .cr-label { font-size:12.5px; color:var(--text-dim); }
.cc-row .cr-val { font-size:14.5px; font-weight:700; color:var(--text); text-align:right; font-family:'JetBrains Mono',monospace; }
.cc-row .cr-val.best { color:var(--green); }
.cc-row .cr-val.worse { color:#ff6b6b; }
.cc-row .cr-sub { font-size:11px; color:var(--text-dim); display:block; text-align:right; }

/* ---- Cost table highlight ---- */
.rental-table td.gpu-a-strong { color:var(--green); font-weight:700; }
.rental-table td.gpu-b-strong { color:#6384ff; font-weight:700; }

/* ---- Responsive: cards stack on mobile ---- */
@media (max-width:720px){
  .compare-grid { grid-template-columns:1fr; }
  .compare-card .cc-spec { margin-left:0; text-align:left; width:100%; }
}

/* ---- FAQ accordion (semantic <details>) ---- */
.faq {
  max-width:720px;
  margin:6px 0 0;
}
details.qa summary {
  cursor:pointer;
  font-size:15px;
  font-weight:600;
  color:var(--text);
  padding:16px 0;
  border-bottom:1px solid #22222f;
  list-style:none;
  position:relative;
  padding-right:26px;
}
details.qa summary::-webkit-details-marker { display:none; }
details.qa summary::after {
  content:"+";
  position:absolute;
  right:2px;
  top:50%;
  transform:translateY(-50%);
  font-size:20px;
  font-weight:400;
  color:var(--green);
  transition:transform .2s ease;
}
details.qa[open] summary::after { content:"×"; transform:translateY(-50%) rotate(90deg); }
details.qa[open] summary { border:none; }
details.qa p.qa-body {
  margin:0;
  padding:0 0 18px;
  font-size:14px;
  line-height:1.65;
  color:var(--text-dim);
}
