/* Public watch profile — layout and page-specific styles */

/* ── Header ─────────────────────────────────────────────────────────────── */

.public-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.public-header__logo {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  text-decoration: none;
}

.public-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── Page container ──────────────────────────────────────────────────────── */

.public-watch {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* ── Photo gallery ───────────────────────────────────────────────────────── */

.public-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.public-gallery__cover {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.public-gallery__cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-height: 480px;
}

.public-gallery__thumbs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.public-gallery__thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.public-gallery__thumb--active {
  border-color: var(--color-accent);
}

.public-gallery__thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.public-gallery__placeholder {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ── Identity ────────────────────────────────────────────────────────────── */

.public-watch__identity {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.public-identity__brand {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.public-identity__model {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.public-identity__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.public-identity__ref,
.public-identity__year {
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* ── Sections ────────────────────────────────────────────────────────────── */

.public-watch__section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
}

.public-watch__section-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.public-watch__fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.public-watch__field {
  display: flex;
  gap: 0.75rem;
}

.public-watch__field-label {
  font-size: 0.85rem;
  color: var(--color-muted);
  min-width: 120px;
  flex-shrink: 0;
}

.public-watch__field-value {
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.public-watch__empty {
  font-size: 0.875rem;
  color: var(--color-muted);
}

/* ── CTA ─────────────────────────────────────────────────────────────────── */

.public-watch__cta {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
  display: flex;
  justify-content: center;
}

/* ── Unavailable state ───────────────────────────────────────────────────── */

.public-unavailable {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 6rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.public-unavailable__headline {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 400;
  color: var(--color-text);
}

.public-unavailable__body {
  font-size: 0.95rem;
  color: var(--color-muted);
  max-width: 420px;
  line-height: 1.65;
}

/* ── Mobile ──────────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .public-header { padding: 0.875rem 1rem; }
  .public-watch { padding: 1.5rem 1rem 3rem; gap: 2rem; }
  .public-gallery__cover { max-height: 300px; }
  .public-gallery__cover-img { max-height: 300px; }
}

@media (max-width: 360px) {
  .public-watch__field { flex-direction: column; gap: 0.25rem; }
  .public-watch__field-label { min-width: 0; }
}
