/* ==========================================================================
   Go to Path: the showcase pieces of its landing page. The shared layout
   (hero, sections, download tiles) is in assets/css/project-page.css.
   ========================================================================== */

.gp-page {
  --accent: #5fc0f5;
  --accent-rgb: 0, 130, 201;
  --accent-fill: #00679e;                 /* Nextcloud's button blue */
  --accent-fill-hover: #0b76b0;
  --accent-line: rgba(95, 192, 245, 0.36);
  --gp-app-font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}

@media (min-width: 960px) {
  .gp-hero { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
}
.gp-page .pp-title { font-size: clamp(3.25rem, 7.2vw, 6.25rem); }

/* the title is a text field too: a caret after the last letter */
.gp-caret {
  display: inline-block;
  width: 0.06em;
  height: 0.86em;
  margin-left: 0.1em;
  vertical-align: -0.09em;
  background: var(--accent);
  animation: gp-blink 1.1s steps(1) infinite;
}
@keyframes gp-blink { 55% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .gp-caret { animation: none; } }

/* --- the demo: Files with the address bar ---------------------------------- */

.gp-demo { align-items: stretch; gap: 20px; min-width: 0; }
.gp-win {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 374px;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
  color: #222;
  font-family: var(--gp-app-font);
  font-size: 15px;
  letter-spacing: 0;
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.85), 0 0 90px -10px rgba(var(--accent-rgb), 0.45);
}
.gp-page .gp-win :focus-visible { outline-color: #00679e; }
.gp-win button { border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }

.gp-bar { position: relative; z-index: 1; height: 40px; }
.gp-crumbs { display: flex; align-items: center; height: 100%; padding-inline: 4px; cursor: text; }
.gp-crumbs__list { margin: 0; padding: 0; list-style: none; display: flex; align-items: center; min-width: 0; white-space: nowrap; }
.gp-crumbs__list li { display: flex; align-items: center; min-width: 0; }
.gp-crumbs__list li:last-child { font-weight: 600; }
.gp-crumbs__list li + li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin: 0 5px 0 2px;
  border: solid #767676;
  border-width: 1.5px 1.5px 0 0;
  transform: rotate(45deg);
}
.gp-crumb { overflow: hidden; padding: 5px 8px; border-radius: 8px; text-overflow: ellipsis; }
.gp-win button.gp-crumb:hover { background: #f0f0f0; }
.gp-pencil {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  margin-left: 4px;
  padding: 0;
  border-radius: 8px;
  opacity: 0.75;
}
.gp-pencil svg { width: 20px; height: 20px; }
.gp-win .gp-pencil:hover,
.gp-win .gp-pencil:focus-visible { opacity: 1; background: #f0f0f0; }

.gp-edit { position: absolute; inset: 0; }
.gp-edit__input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 2px solid #00679e;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  color: inherit;
  text-overflow: ellipsis;
}
/* iOS zooms the page into fields with smaller text */
@media (pointer: coarse) { .gp-edit__input { font-size: 16px; } }
.gp-page .gp-edit__input:focus-visible { outline: none; }
.gp-page .gp-edit__input::selection { background: #b7dcf2; color: #222; }
.gp-edit.is-error .gp-edit__input { border-color: #d91812; }
.gp-popup {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 270px;
  padding: 4px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}
.gp-popup li { padding: 7px 10px; }
.gp-popup__item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  border-radius: 4px;
  white-space: nowrap;
  cursor: pointer;
}
.gp-popup__item:hover,
.gp-popup__item.is-active { background: #f0f0f0; }
.gp-popup__item b { font-weight: 700; }
.gp-popup__item span { overflow: hidden; color: #6b6b6b; text-overflow: ellipsis; }
.gp-popup__msg { color: #6b6b6b; overflow-wrap: anywhere; }
.gp-edit.is-error .gp-popup__msg { color: #c01510; }
.gp-edit[hidden],
.gp-popup[hidden],
.gp-tries[hidden],
.gp-play[hidden] { display: none; }

.gp-cols {
  display: flex;
  justify-content: space-between;
  padding: 14px 12px 10px 48px;
  border-bottom: 1px solid #ededed;
  font-size: 14px;
  color: #6b6b6b;
}
.gp-list li { border-bottom: 1px solid #ededed; }
.gp-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  text-align: left;
}
.gp-win button.gp-row:hover { background: #f5f5f5; }
.gp-row svg { width: 22px; height: 22px; flex: none; color: #00679e; }
.gp-row.is-file svg { color: #8a8a8a; }
.gp-row.is-selected { background: #e5eff5; }
.gp-row__when { margin-left: auto; font-size: 14px; color: #6b6b6b; white-space: nowrap; }
.gp-list .gp-list__empty { padding: 48px 12px; border: 0; text-align: center; color: #6b6b6b; }

/* above the window's shadow */
.gp-tries { position: relative; }
.gp-tries ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 10px;
  margin-top: 14px;
}
.gp-try {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  padding: 11px 16px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(4, 7, 14, 0.5);
  font: inherit;
  text-align: left;
  color: var(--glow);
  cursor: pointer;
  transition: border-color 0.25s, background-color 0.25s;
}
.gp-try:hover { border-color: var(--accent-line); background: rgba(var(--accent-rgb), 0.16); }
.gp-try__what { font-size: 0.75rem; color: var(--fog); }
.gp-try__path { overflow: hidden; font-size: var(--fs-xs); white-space: nowrap; text-overflow: ellipsis; }

/* --- screenshots and the recording ------------------------------------------ */

.gp-shot { min-width: 0; margin: 0; }
.gp-shot img,
.gp-shot video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 70px -16px rgba(var(--accent-rgb), 0.4);
}
.gp-shot figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  font-size: var(--fs-xs);
  color: var(--fog);
}
.gp-play {
  min-width: 84px;
  padding: 6px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  font: inherit;
  color: var(--glow);
  cursor: pointer;
}
.gp-play:hover { border-color: var(--accent-line); }

.gp-watch { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) {
  .gp-watch { grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); }
}
.gp-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.gp-steps li {
  position: relative;
  padding: 20px 0 22px 44px;
  border-top: 1px solid var(--line);
  counter-increment: s;
}
.gp-steps li::before {
  content: counter(s);
  position: absolute;
  left: 4px;
  top: 20px;
  font-size: var(--fs-m);
  line-height: 1.5;
  color: var(--accent);
}
.gp-steps h3 { font-size: var(--fs-m); font-weight: 700; letter-spacing: -0.02em; }
.gp-steps p,
.gp-note { margin-top: 6px; font-size: var(--fs-s); line-height: 1.65; color: var(--fog); }
.gp-page code { font: inherit; color: var(--accent); }

/* --- what you can paste ------------------------------------------------------- */

.gp-map { width: 100%; border-collapse: collapse; font-size: var(--fs-s); line-height: 1.6; text-align: left; }
.gp-map th { padding: 0 24px 12px 0; font-size: var(--fs-xs); font-weight: 400; color: var(--fog); }
.gp-map td {
  padding: 16px 24px 16px 0;
  border-top: 1px solid var(--line);
  vertical-align: top;
  color: var(--fog);
  overflow-wrap: anywhere;
}
.gp-map td:first-child { width: 34%; color: var(--glow); }
.gp-map td:nth-child(2) { width: 28%; color: var(--accent); }
@media (max-width: 759px) {
  .gp-map thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .gp-map, .gp-map tbody, .gp-map tr, .gp-map td { display: block; }
  .gp-map tr { padding: 16px 0; border-top: 1px solid var(--line); }
  .gp-map td, .gp-map td:first-child, .gp-map td:nth-child(2) { width: auto; padding: 2px 0; border: 0; }
  .gp-map td:nth-child(2)::before { content: "→ "; color: var(--fog); }
}

/* --- text beside a screenshot -------------------------------------------------- */

.gp-pair { display: grid; gap: 44px; align-items: center; }
@media (min-width: 960px) {
  .gp-pair { grid-template-columns: minmax(0, 0.6fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); }
  .gp-pair--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr); }
  .gp-pair--flip > :first-child { order: 1; }
}
.gp-keys { margin: 28px 0 0; }
.gp-keys div { display: flex; align-items: center; gap: 20px; padding: 11px 0; border-top: 1px solid var(--line); }
.gp-keys dt { flex: 0 0 84px; }
.gp-keys dd { margin: 0; font-size: var(--fs-s); color: var(--fog); }
.gp-keys kbd {
  display: inline-block;
  min-width: 30px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-bottom-width: 3px;
  border-radius: 8px;
  background: rgba(10, 18, 34, 0.6);
  font: inherit;
  font-size: var(--fs-xs);
  text-align: center;
}
.gp-example {
  margin-top: 26px;
  padding: 16px 20px;
  border: 1px solid var(--accent-line);
  border-radius: 14px;
  background: rgba(4, 7, 14, 0.5);
  font-size: var(--fs-s);
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.gp-example__to { display: block; color: var(--fog); }
.gp-example__to b { font-weight: 400; color: var(--accent); }
.gp-note { margin-top: 20px; }

@media (min-width: 760px) {
  .gp-points { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(40px, 6vw, 80px); }
}
