/* detail.css — Vue détail d'une fiche et cartes de sortie */

/* ===== DETAIL VIEW ===== */
.detail-hero {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-500));
  color: var(--white); padding: 16px;
  box-shadow: 0 4px 14px rgba(15,23,42,.16);
}
.detail-hero-type {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.detail-hero-badge {
  font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 20px;
  letter-spacing: .04em;
}
.detail-hero-name { font-size: 1.3rem; font-weight: 800; margin-bottom: 4px; line-height: 1.2; }
.detail-hero-sub { font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 4px; }
.detail-hero-loc { font-size: .78rem; color: rgba(255,255,255,.55); }
.detail-edit-btn {
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
  color: var(--white); border-radius: 8px; padding: 6px 12px; font-size: .8rem;
  cursor: pointer; transition: background .15s; white-space: nowrap;
}
.detail-edit-btn:active { background: rgba(255,255,255,.25); }

/* Info card */
.info-card {
  background: var(--color-card); border-radius: var(--radius);
  margin: 12px; padding: 14px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--color-border);
}
.info-card h3 {
  font-size: .72rem; font-weight: 700; color: var(--color-muted);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px;
}
.info-grid {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: baseline;
}
.info-label { font-size: .78rem; color: var(--color-light); }
.info-value { font-size: .82rem; font-weight: 600; color: var(--color-text); word-break: break-word; }
.info-gps {
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 0; border-top: 1px solid var(--color-border);
}
.info-gps:first-of-type { border-top: none; padding-top: 8px; margin-top: 6px; border-top: 1px solid var(--color-border); }
.gps-coords {
  font-family: monospace; font-size: .75rem; color: var(--blue-600); cursor: pointer;
}
.gps-coords:active { opacity: .7; }

/* Voies escalade — vue détail */
.voie-groups { display: flex; flex-direction: column; gap: 10px; padding: 0 12px 12px; }
.voie-group-card {
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 12px;
}
.voie-group-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.voie-group-title-wrap { min-width: 0; flex: 1; }
.voie-group-title-line { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.voie-group-title { font-size: .92rem; font-weight: 800; color: var(--color-text); line-height: 1.25; }
.voie-group-grade { display: inline-flex; margin-top: 4px; font-size: .78rem; font-weight: 800; color: var(--blue-700); }
.voie-group-count { flex-shrink: 0; border-radius: 999px; padding: 3px 8px; font-size: .7rem; font-weight: 800; }
.voie-group-last { margin-top: 5px; font-size: .74rem; color: var(--color-muted); }
.voie-realisation-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.voie-realisation-row {
  border: 1px solid var(--color-border); border-radius: 10px; padding: 8px 9px;
  background: var(--slate-50); cursor: pointer;
}
.voie-realisation-row:active { background: var(--blue-50); }
.voie-realisation-main { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.voie-realisation-date { font-size: .8rem; font-weight: 800; color: var(--color-text); }
.voie-realisation-status { font-size: .74rem; color: var(--color-muted); font-weight: 700; }
.voie-realisation-comment { margin-top: 5px; font-size: .78rem; color: var(--color-muted); }
.voie-group-empty { margin-top: 10px; font-size: .78rem; color: var(--color-light); }

/* Photo strip */
.photo-strip { display: flex; gap: 6px; overflow-x: auto; padding: 0 12px 12px; -webkit-overflow-scrolling: touch; }
.photo-strip img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; flex-shrink: 0; cursor: pointer; }

/* Topo display */
.topo-display {
  margin: 0 12px 12px;
}
.topo-display img {
  width: 100%; max-height: 240px; object-fit: contain;
  border-radius: var(--radius); cursor: pointer;
  background: var(--slate-50); border: 1px solid var(--color-border);
}
.topo-display a {
  display: flex; align-items: center; gap: 8px;
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 12px 16px;
  color: var(--blue-600); text-decoration: none; font-size: .88rem; font-weight: 500;
}

/* Commentaire */
.comment-box {
  margin: 0 12px 12px; background: var(--color-card);
  border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: 12px; font-size: .85rem; color: var(--color-muted); line-height: 1.5;
  overflow-wrap: anywhere;
}

.richtext-content p,
.richtext-content div {
  margin: 0 0 .4em;
}
.richtext-content p:last-child,
.richtext-content div:last-child {
  margin-bottom: 0;
}
.richtext-content ul,
.richtext-content ol {
  margin: 0 0 .4em 1.1em;
  padding: 0;
}

/* Section title */
.section-title {
  font-size: .72rem; font-weight: 700; color: var(--color-muted);
  text-transform: uppercase; letter-spacing: .06em;
  padding: 12px 12px 6px; display: flex; align-items: center; justify-content: space-between;
}
.add-outing-btn {
  background: var(--color-primary); color: var(--white);
  border: none; border-radius: 20px; padding: 5px 14px;
  font-size: .75rem; font-weight: 700; cursor: pointer;
  transition: opacity .15s;
}
.add-outing-btn:active { opacity: .8; }

/* ===== OUTING CARDS ===== */
.outing-card {
  background: var(--color-card); border-radius: 10px;
  margin: 0 12px 8px; padding: 12px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--color-border);
  cursor: pointer; transition: transform .1s;
  display: flex; align-items: flex-start; gap: 10px;
}
.outing-card:active { transform: scale(.99); }
.outing-card-left { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.outing-card-date { font-weight: 800; font-size: .9rem; color: var(--color-text); }
.outing-card-cotation {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--teal-200);
  border-radius: 999px;
  background: var(--teal-100);
  color: var(--teal-700);
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.2;
  padding: 3px 9px;
  white-space: nowrap;
}
.outing-card-cotation--easy { color: var(--green-800); background: var(--green-100); border-color: var(--green-300); }
.outing-card-cotation--medium { color: var(--yellow-700); background: var(--amber-100); border-color: var(--amber-300); }
.outing-card-cotation--hard { color: var(--orange-700); background: var(--orange-100); border-color: var(--orange-300); }
.outing-card-cotation--extreme { color: var(--red-700); background: var(--red-100); border-color: var(--red-300); }
.outing-card-meta { font-size: .78rem; color: var(--color-muted); }
.outing-card-comment {
  font-size: .78rem;
  color: var(--color-light);
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.outing-card-photos { display: flex; gap: 4px; margin-top: 6px; }
.outing-card-photos img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; }
.outing-card-more { width: 44px; height: 44px; border-radius: 6px; background: var(--color-bg); display: flex; align-items: center; justify-content: center; font-size: .72rem; color: var(--color-muted); font-weight: 600; }
.outing-card-chevron { color: var(--color-border); flex-shrink: 0; margin-top: 2px; }
