/* cap-profile.html — Cap detail/profile page
   Depends on: base.css
   ─────────────────────────────────────────────────────────────────────────── */

/* ── Secondary topbar (surface background, not gradient) ─────────────────── */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  height: 70px;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 50;
  overflow: visible;
}

.nav-logo {
  flex-shrink: 0;
  align-self: flex-start;
  text-decoration: none;
  transition: transform .2s ease;
}
.nav-logo:hover { transform: translateY(-3px) rotate(-1deg) }
.nav-logo img {
  height: 150px;
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.5));
}

.back-btn {
  background: none; border: 1px solid var(--border); color: var(--muted);
  padding: .4rem .9rem; border-radius: 6px; cursor: pointer; font-size: .85rem;
  text-decoration: none; display: inline-flex; align-items: center; gap: .4rem;
}
.back-btn:hover { color: var(--text); border-color: var(--accent) }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: .8rem }

.topbar-link {
  background: none; border: 1px solid var(--border); color: var(--muted);
  padding: .4rem .9rem; border-radius: 6px; font-size: .85rem;
  text-decoration: none; display: inline-flex; align-items: center; gap: .4rem;
  transition: border-color .15s, color .15s;
}
.topbar-link:hover { color: var(--text); border-color: var(--accent) }
.share-wrap { position: relative }
.share-btn { background: none; border: 1px solid var(--border); color: var(--muted); padding: .4rem .9rem; border-radius: 6px; font-size: .85rem; transition: all .2s; cursor: pointer }
.share-btn:hover, .share-btn.open { border-color: var(--accent); color: var(--accent) }
.share-menu { display: none; position: absolute; top: calc(100% + 6px); right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: .3rem; min-width: 170px; z-index: 200; flex-direction: column; gap: 1px; box-shadow: 0 8px 24px rgba(0,0,0,.4) }
.share-menu.open { display: flex }
.share-option { display: flex; align-items: center; gap: .55rem; padding: .5rem .75rem; border-radius: 7px; font-size: .82rem; color: var(--text); text-decoration: none; background: none; border: none; cursor: pointer; width: 100%; text-align: left; transition: background .15s }
.share-option:hover { background: var(--surface2) }

/* ── Layout ───────────────────────────────────────────────────────────────── */
.logo-spacer  { height: 80px }
.container    { max-width: 860px; margin: 0 auto; padding: 2rem 1.5rem }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 1.5rem }

/* ── Cap image / carousel ────────────────────────────────────────────────── */
.cap-img-frame {
  position: relative; width: 100%; height: 420px;
  border-radius: 12px; overflow: hidden; border: 1px solid var(--border);
}
.cap-img-placeholder { width: 100%; aspect-ratio: 1; background: var(--surface2); border-radius: 12px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 5rem }

.carousel-track {
  display: flex; height: 100%;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.carousel-track::-webkit-scrollbar { display: none }
.carousel-slide {
  flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always;
  position: relative; height: 100%;
  background: none; border: none; padding: 0;
  cursor: zoom-in; overflow: hidden;
}
.carousel-slide-bg {
  position: absolute; inset: -12%; width: 124%; height: 124%;
  object-fit: cover; filter: blur(20px) brightness(.5); pointer-events: none;
}
.carousel-slide-fg {
  position: relative; width: 100%; height: 100%; object-fit: cover; display: block;
}
.carousel-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.5); border: none; color: #fff;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  font-size: 1.4rem; line-height: 1;
  opacity: .85; transition: opacity .15s, background .15s;
}
.carousel-nav:hover    { background: rgba(0,0,0,.75); opacity: 1 }
.carousel-nav:disabled { opacity: .25; cursor: not-allowed }
.carousel-nav.prev { left: .5rem }
.carousel-nav.next { right: .5rem }
.carousel-dots {
  position: absolute; bottom: .6rem; left: 0; right: 0;
  display: flex; justify-content: center; gap: .35rem; z-index: 2;
}
.carousel-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.45); border: none; padding: 0;
  cursor: pointer; transition: background .15s, transform .15s;
}
.carousel-dot.active { background: #fff; transform: scale(1.3) }
.carousel-caption {
  position: absolute; bottom: .6rem; left: .6rem;
  background: rgba(0,0,0,.55); color: #fff;
  font-size: .72rem; padding: .25rem .55rem;
  border-radius: 999px; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  z-index: 2; max-width: calc(100% - 4rem);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.carousel-caption a       { color: inherit; text-decoration: none }
.carousel-caption a:hover { text-decoration: underline }
.cap-img-frame.single .carousel-nav,
.cap-img-frame.single .carousel-dots { display: none }

/* ── Cap info ─────────────────────────────────────────────────────────────── */
.cap-name  { font-size: 1.6rem; font-weight: 700; color: var(--text); margin-bottom: .3rem; line-height: 1.2 }
.cap-owner { font-size: .85rem; color: var(--muted); margin-bottom: .8rem }
.cap-owner a       { color: var(--teal); text-decoration: none }
.cap-owner a:hover { text-decoration: underline }

/* ── Badges ──────────────────────────────────────────────────────────────── */
.badges    { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem }
.badge     { padding: .25rem .7rem; border-radius: 20px; font-size: .75rem; font-weight: 600 }
.badge-cat      { background: rgba(200,169,110,.15); color: var(--accent);  border: 1px solid rgba(200,169,110,.3) }
.badge-style    { background: rgba(124,185,168,.12); color: var(--teal);    border: 1px solid rgba(124,185,168,.25) }
.badge-verified { background: rgba(52,199,89,.1);   color: #34c759;        border: 1px solid rgba(52,199,89,.3) }

/* Season badge variants */
.sp-spring    { background: rgba(120,190,100,.15); color: #78be64; border: 1px solid rgba(120,190,100,.3) }
.sp-summer    { background: rgba(230,180,50,.15);  color: #e6b432; border: 1px solid rgba(230,180,50,.3) }
.sp-fall      { background: rgba(210,120,50,.15);  color: #d27832; border: 1px solid rgba(210,120,50,.3) }
.sp-winter    { background: rgba(100,160,220,.15); color: #64a0dc; border: 1px solid rgba(100,160,220,.3) }
.sp-all-season{ background: rgba(124,185,168,.15); color: var(--teal); border: 1px solid rgba(124,185,168,.3) }

/* ── Sections ─────────────────────────────────────────────────────────────── */
.section       { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1.2rem; margin-bottom: 1rem }
.section-title { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .8rem; font-weight: 600 }
.desc          { font-size: .9rem; color: #ccc; line-height: 1.6; white-space: pre-wrap }

/* ── Detail rows ──────────────────────────────────────────────────────────── */
.detail-row       { display: flex; justify-content: space-between; font-size: .85rem; padding: .35rem 0; border-bottom: 1px solid var(--border) }
.detail-row:last-child { border-bottom: none }
.detail-label     { color: var(--muted) }
.detail-val       { color: var(--text); font-weight: 500 }

/* ── Color chips ──────────────────────────────────────────────────────────── */
.color-chips { display: flex; gap: .6rem; flex-wrap: wrap }
.color-chip  { display: flex; align-items: center; gap: .5rem; background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; padding: .3rem .6rem; font-size: .8rem }
.color-dot   { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); flex-shrink: 0 }

/* ── Shirt recommendations ────────────────────────────────────────────────── */
.shirt-recs        { display: flex; flex-direction: column; gap: .8rem }
.shirt-group-label { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-bottom: .5rem }
.shirt-swatches    { display: flex; gap: .6rem; flex-wrap: wrap }
.shirt-swatch      { display: flex; flex-direction: column; align-items: center; gap: .3rem }
.shirt-circle      { width: 42px; height: 42px; border-radius: 50%; border: 2px solid rgba(255,255,255,.1); box-shadow: 0 2px 8px rgba(0,0,0,.4) }
.shirt-name        { font-size: .62rem; color: var(--muted); text-align: center; max-width: 52px; line-height: 1.2 }

/* ── Collectors ───────────────────────────────────────────────────────────── */
.collectors-list { display: flex; flex-wrap: wrap; gap: .4rem }
.collector-chip  { background: var(--surface2); border: 1px solid var(--border); border-radius: 20px; padding: .2rem .65rem; font-size: .78rem; color: var(--text); text-decoration: none; transition: border-color .15s, color .15s }
.collector-chip:hover      { border-color: var(--accent); color: var(--accent) }
.collector-chip.anon       { color: var(--muted); cursor: default }

/* ── Community photos ─────────────────────────────────────────────────────── */
.community-photos { display: flex; gap: .75rem; overflow-x: auto; padding-bottom: .5rem; scrollbar-width: thin; scrollbar-color: var(--border) transparent }
.community-photos::-webkit-scrollbar        { height: 4px }
.community-photos::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px }
.community-photo-item     { flex-shrink: 0; width: 130px; text-align: center }
.community-photo-btn      { background: none; border: none; padding: 0; cursor: pointer; display: block; border-radius: 8px; width: 130px }
.community-photo-btn img  { width: 130px; height: 130px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); transition: border-color .15s; display: block }
.community-photo-btn:hover img { border-color: var(--accent) }
.community-photo-name     { font-size: .68rem; color: var(--muted); margin-top: .3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.community-photo-name a   { color: var(--teal); text-decoration: none }
.community-photo-name a:hover { text-decoration: underline }

/* ── Photo lightbox ───────────────────────────────────────────────────────── */
.modal-overlay            { position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 500; display: flex; align-items: center; justify-content: center; padding: 1rem }
.modal-overlay.hidden     { display: none }
.lightbox-close           { position: fixed; top: 1rem; right: 1rem; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #fff; font-size: 1rem; cursor: pointer; padding: .3rem .6rem; border-radius: 6px; transition: background .15s }
.lightbox-close:hover     { background: rgba(255,255,255,.22) }
.lightbox-inner           { display: flex; flex-direction: column; align-items: center; gap: .9rem; max-width: 90vw }
.lightbox-img             { max-width: 90vw; max-height: 75vh; object-fit: contain; border-radius: 10px; border: 1px solid rgba(255,255,255,.1); display: block }
.lightbox-footer          { text-align: center; font-size: .88rem }
.lightbox-footer a        { color: var(--teal); text-decoration: none; font-weight: 500 }
.lightbox-footer a:hover  { text-decoration: underline }
.lightbox-footer span     { color: var(--muted) }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.link-btn { display: inline-flex; align-items: center; gap: .4rem; color: var(--teal); font-size: .85rem; text-decoration: none; border: 1px solid rgba(124,185,168,.3); padding: .4rem .8rem; border-radius: 6px }
.link-btn:hover { background: rgba(124,185,168,.1) }

.add-btn { background: var(--accent); color: #111; border: none; padding: .55rem 1.2rem; border-radius: 8px; font-size: .88rem; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; transition: opacity .15s; text-decoration: none }
.add-btn:hover    { opacity: .85 }
.add-btn:disabled { opacity: .4; cursor: default }
.add-btn.added    { background: var(--teal) }
.add-btn.guest    { background: rgba(200,169,110,.15); color: var(--accent); border: 1px solid rgba(200,169,110,.3) }

/* ── Crown button ────────────────────────────────────────────────────────────
   Positive-only one-tap endorsement on a cap profile. Distinct from the
   primary "+ Add to Collection" CTA (full gold) — uses an outlined style so
   it reads as a secondary action and doesn't compete for the primary intent.
   Hover lifts the crown icon slightly; .crowned state inverts to filled gold. */
.crown-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  background: transparent; color: var(--accent);
  border: 1px solid rgba(200,169,110,.4);
  padding: .55rem 1rem; border-radius: 8px;
  font-size: .88rem; font-weight: 600; font-family: inherit;
  cursor: pointer; text-decoration: none;
  transition: background .15s, transform .15s, border-color .15s;
}
.crown-btn:hover           { background: rgba(200,169,110,.1); border-color: var(--accent) }
.crown-btn:hover .crown-icon { transform: translateY(-2px) }
.crown-btn:disabled        { opacity: .55; cursor: default }
.crown-btn .crown-icon     { font-size: 1.05rem; transition: transform .2s }
.crown-btn .crown-label    { letter-spacing: .01em }
.crown-btn .crown-label-small { font-size: .72rem; color: var(--muted); margin-left: .25rem }
.crown-btn .crown-count    {
  background: rgba(200,169,110,.15); color: var(--accent);
  font-size: .76rem; font-weight: 700; min-width: 22px; text-align: center;
  padding: .1rem .45rem; border-radius: 999px;
}
.crown-btn.crowned         { background: var(--accent); color: #111; border-color: var(--accent) }
.crown-btn.crowned .crown-count { background: rgba(0,0,0,.2); color: #111 }
.crown-btn.guest           { background: rgba(200,169,110,.08); cursor: pointer }
.crown-btn.owned           { cursor: default; border-style: dashed }
.crown-btn.owned .crown-count { background: rgba(200,169,110,.2) }

/* ── Spinner / loading / error ────────────────────────────────────────────── */
.spinner { width: 14px; height: 14px; border: 2px solid rgba(0,0,0,.2); border-top-color: #111; border-radius: 50%; animation: spin .6s linear infinite; display: inline-block; vertical-align: middle }
@keyframes spin { to { transform: rotate(360deg) } }

.loading     { text-align: center; padding: 4rem; color: var(--muted); font-size: 1.1rem }
.error-state { text-align: center; padding: 4rem; color: var(--danger) }

/* ── Gated content (guest users) ───────────────────────────────────────── */
.gated-section { position: relative; text-align: center }
.gated-blur {
  filter: blur(6px);
  -webkit-filter: blur(6px);
  opacity: .5;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  overflow: hidden;
  max-height: 120px;
}
.gated-cta {
  display: inline-block;
  margin-top: .8rem;
  padding: .5rem 1.2rem;
  background: rgba(200,169,110,.12);
  border: 1px solid rgba(200,169,110,.3);
  border-radius: 8px;
  color: var(--accent);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s;
}
.gated-cta:hover { background: rgba(200,169,110,.2) }

/* ── Comments ─────────────────────────────────────────────────────────────── */
.comment-item   { padding: .75rem; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; margin-bottom: .6rem }
.comment-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: .4rem }
.comment-author { font-size: .78rem; font-weight: 600; color: var(--accent) }
.comment-time   { font-size: .68rem; color: var(--muted) }
.comment-body   { font-size: .82rem; color: var(--text); line-height: 1.5; word-break: break-word }
.comment-del    { background: none; border: none; color: var(--muted); cursor: pointer; font-size: .7rem; padding: .1rem .3rem; border-radius: 3px }
.comment-del:hover { color: var(--danger) }

.comment-photo          { width: 100%; max-width: 320px; border-radius: 8px; border: 1px solid var(--border); margin-top: .5rem; cursor: pointer; display: block; transition: border-color .15s }
.comment-photo:hover    { border-color: var(--accent) }

.comment-attach-btn       { background: none; border: 1px solid var(--border); color: var(--muted); border-radius: 6px; padding: .2rem .5rem; cursor: pointer; font-size: .85rem; transition: border-color .15s, color .15s }
.comment-attach-btn:hover { border-color: var(--accent); color: var(--accent) }

.comment-photo-preview   { margin: .4rem 0; position: relative; display: inline-block }
.comment-preview-img     { max-width: 160px; max-height: 120px; border-radius: 6px; border: 1px solid var(--border); object-fit: cover; display: block }
.comment-preview-remove  { position: absolute; top: -6px; right: -6px; background: var(--danger); border: none; color: #fff; border-radius: 50%; width: 18px; height: 18px; font-size: .65rem; cursor: pointer; display: flex; align-items: center; justify-content: center }

.comment-form textarea { width: 100%; background: var(--surface2); border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: .6rem .8rem; font-size: .82rem; font-family: inherit; resize: vertical; min-height: 70px; margin-bottom: .5rem; transition: border-color .15s }
.comment-form textarea:focus { outline: none; border-color: var(--accent) }
.comment-form-footer { display: flex; justify-content: space-between; align-items: center }
.char-count   { font-size: .68rem; color: var(--muted) }
.submit-comment { background: var(--accent); color: #111; border: none; padding: .4rem .9rem; border-radius: 6px; font-size: .78rem; font-weight: 700; cursor: pointer; transition: opacity .15s }
.submit-comment:hover    { opacity: .85 }
.submit-comment:disabled { opacity: .4; cursor: default }

.guest-notice   { font-size: .82rem; color: var(--muted); text-align: center; padding: .75rem }
.guest-notice a { color: var(--teal); text-decoration: none }
.no-comments    { text-align: center; padding: 2rem; color: var(--muted); font-size: .82rem }

/* ── SSR-rendered SEO block ──────────────────────────────────────────────── */
/* Server inserts this after the loading spinner so crawlers see rich content
   (cap name, stats, milestones, comments) in the initial HTML. JS overwrites
   #container once it boots, so this is invisible to most users almost
   immediately. Kept readable in case the JS fails to load. */
.ssr-seo { padding: 1.25rem; max-width: 720px; margin: 0 auto; color: var(--text2); font-size: .9rem; line-height: 1.5 }
.ssr-seo h1 { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--text); margin-bottom: .5rem }
.ssr-seo h2 { font-size: .9rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-top: 1.25rem; margin-bottom: .5rem }
.ssr-seo .ssr-brand { color: var(--muted); margin-bottom: .65rem }
.ssr-seo .ssr-desc  { margin-bottom: .85rem }
.ssr-seo .ssr-stats { color: var(--text); padding: .5rem 0 ; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border) }
.ssr-seo .ssr-milestones { list-style: none; padding: 0; margin: 0 }
.ssr-seo .ssr-milestones li { padding: .35rem 0; border-bottom: 1px dotted var(--border) }
.ssr-seo .ssr-thread article { margin-bottom: .85rem; padding: .55rem .65rem; background: var(--surface2); border-radius: 8px }
.ssr-seo .ssr-thread header { color: var(--accent); font-size: .8rem; margin-bottom: .25rem }
.ssr-seo .ssr-thread time   { color: var(--muted); font-size: .7rem; margin-left: .35rem }
.ssr-seo .ssr-reply { margin-top: .55rem; margin-left: .85rem; padding: .35rem .55rem; border-left: 2px solid var(--border); background: var(--surface) }

/* ── Timeline (Activity) ─────────────────────────────────────────────────── */
.section-title-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .65rem }
.timeline-filter   { display: inline-flex; gap: .15rem; background: var(--surface2); border: 1px solid var(--border); border-radius: 999px; padding: 2px }
.tl-filter         { background: none; border: none; color: var(--muted); font-size: .72rem; padding: .25rem .65rem; border-radius: 999px; cursor: pointer; font-family: inherit; transition: all .15s }
.tl-filter.active  { background: var(--accent); color: #111; font-weight: 600 }
.tl-filter:hover:not(.active) { color: var(--text2) }

.tl-loading, .tl-empty { text-align: center; padding: 1.5rem; color: var(--muted); font-size: .82rem }
.tl-guest-cta          { text-align: center; padding: .85rem; font-size: .82rem; color: var(--muted); border: 1px dashed var(--border2); border-radius: 8px; margin-top: .75rem }
.tl-guest-cta a        { color: var(--accent); text-decoration: underline }

.tl-item { display: flex; gap: .65rem; padding: .65rem .55rem; border-bottom: 1px solid var(--border); align-items: flex-start }
.tl-item:last-child { border-bottom: none }
.tl-icon { font-size: 1.05rem; line-height: 1.2; flex-shrink: 0; width: 22px; text-align: center }
.tl-body { flex: 1; min-width: 0 }
.tl-line { font-size: .82rem; color: var(--text); line-height: 1.4 }
.tl-actor { color: var(--accent); font-weight: 600; text-decoration: none }
a.tl-actor:hover { text-decoration: underline }
.tl-verb { color: var(--text2) }
.tl-time { font-size: .68rem; color: var(--muted) }
.tl-text { font-size: .82rem; color: var(--text); margin-top: .3rem; line-height: 1.5; word-break: break-word; white-space: pre-wrap }
.tl-photo { width: 100%; max-width: 280px; border-radius: 8px; border: 1px solid var(--border); margin-top: .45rem; cursor: pointer; display: block; transition: border-color .15s }
.tl-photo:hover { border-color: var(--accent) }
.tl-del { background: none; border: none; color: var(--muted); cursor: pointer; font-size: .7rem; padding: 0 .25rem; margin-left: .3rem }
.tl-del:hover { color: var(--danger) }

.tl-milestone .tl-icon { color: var(--accent) }
.tl-milestone .tl-line strong { color: var(--accent) }

.tl-replies { margin-top: .55rem; padding-left: .75rem; border-left: 2px solid var(--border) }
.tl-reply   { padding: .4rem 0 }
.tl-reply + .tl-reply { border-top: 1px dotted var(--border) }
.tl-reply-btn { background: none; border: none; color: var(--muted); cursor: pointer; font-size: .72rem; margin-top: .3rem; padding: .15rem .35rem; border-radius: 4px; transition: color .15s }
.tl-reply-btn:hover { color: var(--accent) }
.tl-reply-form        { margin-top: .45rem }
.tl-reply-input       { width: 100%; background: var(--surface2); border: 1px solid var(--border); color: var(--text); border-radius: 6px; padding: .45rem .6rem; font-size: .8rem; font-family: inherit; resize: vertical; min-height: 50px }
.tl-reply-input:focus { outline: none; border-color: var(--accent) }
.tl-reply-actions     { display: flex; gap: .5rem; justify-content: flex-end; margin-top: .35rem }
.tl-reply-cancel,
.tl-reply-send        { background: none; border: 1px solid var(--border); color: var(--muted); padding: .25rem .65rem; border-radius: 5px; font-size: .72rem; cursor: pointer; font-family: inherit; transition: all .15s }
.tl-reply-send        { background: var(--accent); color: #111; border-color: var(--accent); font-weight: 600 }
.tl-reply-cancel:hover { border-color: var(--text2); color: var(--text2) }

.tl-more { display: block; width: 100%; background: none; border: 1px solid var(--border); color: var(--muted); padding: .5rem; border-radius: 6px; cursor: pointer; font-size: .78rem; font-family: inherit; margin-top: .65rem; transition: all .15s }
.tl-more:hover { border-color: var(--accent); color: var(--accent) }

/* Pulse highlight when a comment is opened from a notification deep-link
   (#comment-<id>). ~2s of background color so the user's eye finds it. */
.tl-highlight {
  animation: tl-highlight-pulse 2s ease-out;
  border-radius: 6px;
}
@keyframes tl-highlight-pulse {
  0%   { background: rgba(200,169,110,.18); box-shadow: 0 0 0 4px rgba(200,169,110,.18) }
  100% { background: transparent;            box-shadow: 0 0 0 0   rgba(200,169,110,0)   }
}

/* ── @-mentions (inline link in comment body) ───────────────────────────── */
.mention            { color: var(--teal); font-weight: 600; text-decoration: none; padding: 0 1px; border-radius: 3px; transition: background .12s, color .12s }
.mention:hover      { background: rgba(124,185,168,.12); color: var(--accent) }

/* ── Autocomplete dropdown for @-mentions ────────────────────────────────── */
.mention-dropdown {
  position: absolute;
  left: 0; right: 0;
  top: calc(100% + 4px);
  z-index: 50;
  background: #161616;
  border: 1px solid var(--border2);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  padding: .25rem 0;
  max-height: 240px;
  overflow-y: auto;
}
.mention-item {
  display: flex; align-items: center; gap: .65rem;
  padding: .45rem .75rem;
  cursor: pointer;
  transition: background .12s;
}
.mention-item:hover,
.mention-item.active { background: rgba(200,169,110,.1) }
.mention-item img,
.mention-item .mention-init {
  width: 28px; height: 28px; border-radius: 50%;
  flex-shrink: 0; object-fit: cover;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  color: #111; font-weight: 700; font-size: .82rem;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border2);
}
.mention-name { font-size: .85rem; color: var(--text); font-weight: 500; line-height: 1.2 }
.mention-slug { font-size: .72rem; color: var(--muted); line-height: 1.2; margin-top: 2px }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-logo img    { height: 80px !important }
  .logo-spacer     { height: 24px }
  .topbar          { padding: 0 1rem !important; height: 56px }
  .profile-grid    { grid-template-columns: 1fr }
  .container       { padding: 1.25rem 1rem; margin-top: 0 }
  .cap-name        { font-size: 1.25rem }

  /* Bottom tab bar */
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)) }

  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 56px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: #111;
    border-top: 1px solid var(--border);
    z-index: 150;
  }
  .bottom-nav-item {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 3px; color: var(--muted);
    text-decoration: none; -webkit-tap-highlight-color: transparent; transition: color .15s;
  }
  .bottom-nav-item.active { color: var(--accent) }
  .bottom-nav-icon  { font-size: 1.25rem; line-height: 1 }
  .bottom-nav-label { font-size: .6rem; font-weight: 500; letter-spacing: .02em }
}

.bottom-nav { display: none }
.more-drawer { display: none }
.more-overlay { display: none }

/* 'More from [Brand]' cross-link — appears below details on cap profiles.
   Topical-cluster internal link for SEO; drives users to the brand hub. */
.more-from-brand { padding: 0 }
.more-from-brand-link {
  display: block; padding: .85rem 1rem;
  background: linear-gradient(135deg, rgba(200,169,110,.08), rgba(124,185,168,.04));
  border: 1px solid rgba(200,169,110,.25); border-radius: 10px;
  color: var(--text); text-decoration: none;
  font-size: .92rem; font-weight: 500;
  transition: border-color .15s, transform .15s;
}
.more-from-brand-link:hover {
  border-color: var(--accent); transform: translateY(-1px);
  color: var(--accent);
}
.more-from-brand-link strong { color: var(--accent) }
.ssr-more-brand a { color: var(--accent); text-decoration: none }
.ssr-more-brand a:hover { text-decoration: underline }


.more-from-brand-all {
  display: block; text-align: center;
  margin-top: .55rem;
  color: var(--muted); font-size: .8rem; text-decoration: none;
  padding: .35rem .55rem; border-radius: 6px;
  transition: color .15s, background .15s;
}
.more-from-brand-all:hover { color: var(--accent); background: rgba(200,169,110,.06) }

