/* ============================================================
   Pantech Automation — offline-tools.css
   Offline Tools download page. Uses the variables from style.css.
   ============================================================ */

/* Visible keyboard focus for everything interactive on this page */
.ot-hero a:focus-visible,
.ot-thumb:focus-visible,
.ot-feature-open:focus-visible,
.ot-os-tabs button:focus-visible,
.ot-nav:focus-visible,
.ot-lightbox .modal-close:focus-visible,
.faq-question:focus-visible,
.ot-panel a:focus-visible,
.ot-steps a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Hero ---------- */
.ot-hero { padding-bottom: 3.5rem; }
.ot-hero-icon {
  display: block; width: 112px; height: 112px;
  margin: 0 auto 1.25rem;
  border-radius: 24px;
}
.ot-hero h1 span { color: var(--accent); }
.ot-downloads {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem;
  margin: 2rem 0 1.25rem;
}
.ot-downloads a { justify-content: center; }
.ot-hero .ot-meta { font-size: 0.85rem; color: var(--text2); max-width: 640px; margin: 0.35rem auto 0; }
.ot-meta a { color: var(--accent); font-weight: 600; }
.ot-meta a:hover { text-decoration: underline; }
.ot-hero .ot-mobile-note {
  max-width: 480px; margin: 1.25rem auto 0; padding: 0.85rem 1rem;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.9rem; color: var(--text);
}

/* ---------- Screenshots ---------- */
.ot-feature { margin: 0 auto; max-width: 980px; }
.ot-feature-open {
  display: block; width: 100%; padding: 0;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-md); cursor: zoom-in;
}
.ot-feature-open img { display: block; width: 100%; height: auto; }
.ot-feature figcaption {
  margin-top: 0.85rem; text-align: center;
  font-size: 0.92rem; color: var(--text2);
}
.ot-thumbs {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.75rem;
  max-width: 980px; margin: 1.5rem auto 0;
}
.ot-thumb {
  display: block; padding: 0.35rem;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color var(--transition);
}
.ot-thumb:hover { border-color: var(--text-muted); }
.ot-thumb[aria-current="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.ot-thumb img { display: block; width: 100%; height: auto; border-radius: 4px; }
.ot-thumb span {
  display: block; padding: 0.45rem 0.15rem 0.15rem;
  font-size: 0.75rem; font-weight: 600; color: var(--text); line-height: 1.3;
}

/* ---------- Why offline ---------- */
.ot-why { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ot-why .service-card a { color: var(--accent); font-weight: 600; }

/* ---------- Tools ---------- */
.ot-category + .ot-category { margin-top: 2.25rem; }
.ot-category h3 {
  font-family: var(--font-primary);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text2); margin-bottom: 0.85rem;
  padding-bottom: 0.6rem; border-bottom: 1px solid var(--border);
}
.ot-tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.ot-tool {
  padding: 1.25rem;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
}
.ot-tool h4 {
  font-family: var(--font-primary);
  font-size: 1.02rem; font-weight: 700; color: var(--primary-dark);
  margin-bottom: 0.4rem;
}
.ot-tool p { font-size: 0.88rem; color: var(--text2); line-height: 1.6; }
.ot-tool .ot-tool-note {
  margin-top: 0.6rem; padding-top: 0.6rem;
  border-top: 1px dashed var(--border);
  font-size: 0.8rem; color: var(--text2);
}
.ot-coming {
  margin-top: 2rem; padding: 0.9rem 1.1rem;
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.9rem; color: var(--text2);
}
.ot-coming strong { color: var(--text); }

/* ---------- Install ---------- */
.ot-os-tabs {
  display: flex; justify-content: center; gap: 0.25rem;
  width: max-content; margin: 0 auto 2rem; padding: 0.25rem;
  background: var(--bg-dark); border-radius: var(--radius-sm);
}
.ot-os-tabs button {
  padding: 0.55rem 1.5rem; border: none; border-radius: 6px;
  background: transparent; color: var(--text2);
  font-size: 0.9rem; font-weight: 600;
}
.ot-os-tabs button[aria-selected="true"] { background: var(--bg); color: var(--primary); box-shadow: var(--shadow-sm); }
.ot-os-panel + .ot-os-panel { margin-top: 3rem; }
.ot-os-tabs:not([hidden]) ~ .ot-os-panel + .ot-os-panel { margin-top: 0; }
.ot-os-title {
  font-family: var(--font-primary);
  text-align: center; font-size: 1rem; font-weight: 700;
  color: var(--text); margin-bottom: 1.5rem;
}
.ot-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.ot-steps::before { left: 16%; right: 16%; }
.ot-steps .process-step { padding: 0 0.5rem; }
.ot-steps .process-step h4 { font-size: 1rem; margin-bottom: 0.5rem; }
.ot-steps .process-step p { font-size: 0.88rem; line-height: 1.65; }
.ot-steps a { color: var(--accent); font-weight: 600; }
.ot-steps code, .ot-code code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }
.ot-steps code { font-size: 0.85em; }

/* ---------- Check download + privacy ---------- */
.ot-two-col { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.ot-panel {
  padding: 1.75rem;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
}
.ot-panel h2 {
  font-family: var(--font-primary);
  font-size: 1.3rem; font-weight: 700; color: var(--primary-dark);
  margin-bottom: 0.85rem;
}
.ot-optional { font-size: 0.85rem; font-weight: 500; color: var(--text-muted); }
.ot-panel p { font-size: 0.92rem; color: var(--text2); line-height: 1.7; }
.ot-panel p + p { margin-top: 0.75rem; }
.ot-panel a { color: var(--accent); font-weight: 600; }
.ot-panel a:hover { text-decoration: underline; }
.ot-panel .ot-code-label { margin-top: 1rem; font-size: 0.78rem; font-weight: 600; color: var(--text); }
.ot-code {
  margin-top: 0.4rem; padding: 0.75rem 1rem; overflow-x: auto;
  background: var(--primary-dark); color: #e2e8f0;
  border-radius: var(--radius-sm); font-size: 0.85rem;
}

/* ---------- Screenshot viewer ---------- */
.ot-lightbox {
  position: relative; width: 100%; max-width: 1180px;
  background: var(--bg-card); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-xl);
}
.ot-lightbox .modal-close { position: absolute; top: 0.5rem; right: 0.5rem; margin: 0; }
.ot-lightbox img { display: block; width: 100%; height: auto; max-height: calc(90vh - 70px); object-fit: contain; background: var(--bg-alt); }
.ot-lightbox-bar {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem; border-top: 1px solid var(--border);
}
.ot-lightbox-bar p { flex: 1; font-size: 0.9rem; color: var(--text); }
.ot-count { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; }
.ot-nav {
  width: 38px; height: 38px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: 50%;
}
.ot-nav:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .ot-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ot-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .ot-why, .ot-tool-grid, .ot-two-col { grid-template-columns: minmax(0, 1fr); }
  .ot-steps { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .ot-steps .process-step { padding: 0; }
  .ot-downloads a { width: 100%; max-width: 320px; }
}
@media (max-width: 480px) {
  .ot-thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ot-panel { padding: 1.25rem; }
  .ot-lightbox-bar { flex-wrap: wrap; }
  .ot-lightbox-bar p { order: -1; flex-basis: 100%; }
  .ot-count { flex: 1; text-align: center; }
}
