/* ─── FOTO (PHOTO DETAIL) PAGE ───────────────────────────── */

.foto-hero {
  position: relative;
  width: 100%;
  background: var(--bg3);
  overflow: hidden;
}
.foto-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}
.foto-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 50%);
  pointer-events: none;
}
.foto-hero-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
}
.hero-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(0,0,0,.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  border: .5px solid rgba(255,255,255,.15);
  transition: background .2s;
}
.hero-btn:active { background: rgba(0,0,0,.65); }
.hero-btn svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero-btn.liked svg { fill: rgba(232,160,32,.5); stroke: var(--amber); }

/* ─── FOTO BODY ──────────────────────────────────────────── */
.foto-body {
  padding: 18px 16px 0;
}

.foto-location {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
}
.foto-location svg { width: 12px; height: 12px; fill: none; stroke: var(--amber); stroke-width: 1.5; stroke-linecap: round; }
.foto-location span { font-size: 12px; color: var(--amber-txt); }

.foto-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 22px;
  color: var(--t1);
  line-height: 1.3;
  margin-bottom: 8px;
  letter-spacing: -.02em;
}

.foto-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.foto-tag {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 10px;
  background: var(--bg3);
  color: var(--t3);
  border: .5px solid var(--border);
}
.foto-tag.location {
  background: var(--amber-dim);
  color: var(--amber-txt);
  border-color: transparent;
}

.foto-desc {
  font-size: 14px;
  color: var(--t2);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* ─── USER ROW ───────────────────────────────────────────── */
.foto-user-row {
  display: flex;
  align-items: center;
  padding: 14px 0;
  border-top: .5px solid var(--border);
  border-bottom: .5px solid var(--border);
  margin-bottom: 16px;
  gap: 10px;
}
.foto-user-info { flex: 1; min-width: 0; }
.foto-user-info .name {
  font-size: 14px;
  font-weight: 500;
  color: var(--t1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.foto-user-info .handle {
  font-size: 12px;
  color: var(--t3);
}
.follow-btn {
  font-size: 11px;
  color: var(--amber);
  border: .5px solid var(--amber);
  border-radius: 20px;
  padding: 5px 13px;
  background: var(--amber-dim);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .2s;
  text-decoration: none;
  display: inline-block;
}
.follow-btn:active { background: rgba(232,160,32,.25); }

/* ─── STATS ──────────────────────────────────────────────── */
.foto-stats {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.foto-stat {
  flex: 1;
  background: var(--bg3);
  border-radius: 12px;
  padding: 10px 0;
  text-align: center;
  border: .5px solid var(--border);
  transition: background .25s;
}
.foto-stat .sv {
  font-size: 17px;
  font-weight: 600;
  color: var(--t1);
  display: block;
  letter-spacing: -.02em;
}
.foto-stat .sk {
  font-size: 9px;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: .06em;
  display: block;
  margin-top: 1px;
}

/* ─── ACTION BUTTONS ─────────────────────────────────────── */
.foto-actions {
  display: flex;
  gap: 8px;
  padding-bottom: 4px;
}
.foto-actions .btn-secondary {
  flex: 1;
}

/* ─── RELATED / NEXT ─────────────────────────────────────── */
.related-section {
  margin-top: 28px;
  padding: 0 16px;
}
.section-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--t3);
  margin-bottom: 12px;
}
.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.related-card {
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg3);
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.related-card img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.related-card:hover img { transform: scale(1.04); }
.related-card .rc-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent);
}
.related-card .rc-user {
  position: absolute; bottom: 7px; left: 8px;
  font-size: 9px; color: rgba(255,255,255,.8);
  display: flex; align-items: center; gap: 3px;
}
.rc-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--amber); }
