/* The profile (dashboard.html) and the notices (notice/notice_list.html, notice/notice_detail.html), built on the
   shared ui-* pieces of static/site/site.css and the theme variables of layout/base.html. */

/* ================================================================ page header */
.pg-hero {
  padding: 22px 0 20px; margin-bottom: 20px; border-bottom: 1px solid var(--border);
  background: radial-gradient(90% 140% at 100% 0%, color-mix(in srgb, var(--accent) 16%, transparent) 0%, transparent 60%),
              radial-gradient(70% 120% at 0% 100%, color-mix(in srgb, var(--accent-2) 12%, transparent) 0%, transparent 60%), var(--bg-soft);
}
.pg-title { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.pg-title h1 { margin: 0; font-size: 28px; font-weight: 900; color: var(--text); }
.pg-count { padding: 3px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-muted); font-size: 12px; font-weight: 800; }
.pg-intro { max-width: 720px; margin: 6px 0 0; color: var(--text-muted); font-size: 14px; line-height: 2; }

/* ================================================================ profile */
.pf .pg-hero { margin-bottom: 0; border-bottom: 0; }
.pf-hero { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.pf-av {
  flex: none; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; color: #fff; font-size: 30px; font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 16px 34px -18px color-mix(in srgb, var(--accent) 80%, transparent);
}
.pf-who { flex: 1; min-width: 0; }
.pf-who h1 { margin: 0; overflow: hidden; font-size: 24px; font-weight: 900; color: var(--text); text-overflow: ellipsis; white-space: nowrap; }
.pf-who p { margin: 2px 0 0; color: var(--text-soft); font-size: 13px; font-weight: 600; }
.pf-stats { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pf-stats li { min-width: 88px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); text-align: center; }
.pf-stats b { display: block; font-size: 20px; font-weight: 900; line-height: 1.3; color: var(--text); }
.pf-stats small { color: var(--text-muted); font-size: 11px; font-weight: 700; }
.pf-tabs { margin-top: 0; overflow-x: auto; scrollbar-width: none; }
.pf-tabs::-webkit-scrollbar { display: none; }
.pf-tabs a { white-space: nowrap; }

/* notifications */
.pf-day { margin: 0; padding: 12px 16px 4px; color: var(--text-soft); font-size: 12px; font-weight: 800; }
.pf-notes { margin: 0; padding: 0 6px 6px; list-style: none; }
.pf-note { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 10px; border-radius: 14px; color: var(--text); text-decoration: none; transition: background .15s; }
a.pf-note:hover { background: var(--surface-2); }
.pf-note.is-new { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.pf-note-ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--surface-2); color: var(--text-muted); }
.pf-note-ic svg { width: 18px; height: 18px; }
.pf-note-ic.is-release { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.pf-note-ic.is-reply { background: color-mix(in srgb, var(--accent-2) 14%, transparent); color: var(--accent-2); }
.pf-note-text { flex: 1; min-width: 0; }
.pf-note-text b { display: block; font-size: 14px; font-weight: 700; line-height: 1.8; }
.pf-note.is-new .pf-note-text b { font-weight: 900; }
.pf-note-text q { display: block; margin-top: 6px; padding: 6px 10px; border-right: 3px solid var(--border-strong); border-radius: 8px; background: var(--surface-2); color: var(--text); font-size: 13px; line-height: 1.9; overflow-wrap: anywhere; quotes: none; }
.pf-note-text q.is-mine { border-right-color: var(--border); color: var(--text-muted); font-size: 12px; }
.pf-note-text time { display: block; margin-top: 4px; color: var(--text-soft); font-size: 11px; }
.pf-new { flex: none; padding: 1px 8px; border-radius: 999px; background: var(--accent-2); color: #fff; font-size: 10px; font-weight: 800; font-style: normal; }

/* empty states */
.pf-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 44px 20px; text-align: center; }
.pf-empty svg { width: 40px; height: 40px; color: var(--text-soft); opacity: .6; }
.pf-empty b { margin-top: 4px; font-size: 15px; font-weight: 800; color: var(--text); }
.pf-empty p { max-width: 420px; margin: 0 0 8px; color: var(--text-muted); font-size: 13px; line-height: 2; }

/* followed series */
.pf-follow { position: relative; }
.pf-next { margin: 4px 0 0; color: var(--accent-2); font-size: 11px; font-weight: 700; }
.pf-next b { font-weight: 800; }
.pf-unfollow { position: absolute; top: 6px; left: 6px; z-index: 2; margin: 0; }
.pf-unfollow button {
  display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 10px; cursor: pointer;
  background: rgba(8, 10, 15, .66); color: #fff; opacity: 0; transition: opacity .15s, background .15s;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.pf-unfollow button svg { width: 15px; height: 15px; }
.pf-follow:hover .pf-unfollow button, .pf-unfollow button:focus-visible { opacity: 1; }
.pf-unfollow button:hover { background: #e5484d; }
@media (hover: none) { .pf-unfollow button { opacity: 1; } }

/* own comments */
.pf-cms { margin: 0; padding: 6px; list-style: none; }
.pf-cm { display: flex; align-items: flex-start; gap: 12px; padding: 10px; border-radius: 14px; color: var(--text); text-decoration: none; transition: background .15s; }
.pf-cm:hover { background: var(--surface-2); }
.pf-cm img, .pf-cm .ph { flex: none; width: 42px; height: 56px; border-radius: 9px; object-fit: cover; background: var(--surface-2); }
.pf-cm-text { flex: 1; min-width: 0; }
.pf-cm-text b { display: block; font-size: 13px; font-weight: 800; }
.pf-cm-text b small { color: var(--text-soft); font-weight: 700; }
.pf-cm-text p { margin: 2px 0 0; font-size: 14px; line-height: 1.9; white-space: pre-line; overflow-wrap: anywhere; }
.pf-cm-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 4px; color: var(--text-soft); font-size: 11px; font-weight: 600; }
.pf-cm-meta .is-wait { color: var(--accent-3); }

/* settings */
.pf-settings { display: grid; gap: 16px; max-width: 760px; }
.pf-dl { margin: 0; padding: 6px 16px 10px; }
.pf-dl div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.pf-dl div:last-child { border-bottom: 0; }
.pf-dl dt { color: var(--text-muted); font-size: 13px; }
.pf-dl dd { margin: 0; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.pf-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px 16px; }
.pf-row b { font-size: 14px; font-weight: 800; }
.pf-row p { margin: 2px 0 0; color: var(--text-muted); font-size: 13px; line-height: 1.9; }
.pf-row form { margin: 0; }
.ui-btn.is-danger { border-color: color-mix(in srgb, #e5484d 45%, transparent); background: color-mix(in srgb, #e5484d 10%, transparent); color: #e5484d; }
.ui-btn.is-danger:hover { border-color: #e5484d; background: #e5484d; color: #fff; }

@media (max-width: 679px) {
  .pf-av { width: 56px; height: 56px; border-radius: 18px; font-size: 24px; }
  .pf-who h1 { font-size: 20px; }
  .pf-stats { width: 100%; }
  .pf-stats li { flex: 1; min-width: 0; padding: 8px 6px; }
  .pf-stats b { font-size: 18px; }
}

/* ================================================================ notices */
.no-feat {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); overflow: hidden; border: 1px solid var(--border); border-radius: 24px;
  background: var(--surface); color: var(--text); text-decoration: none; transition: box-shadow .18s, border-color .18s;
}
.no-feat:hover { border-color: var(--border-strong); box-shadow: 0 20px 44px -26px var(--shadow-ink); }
.no-feat-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.no-feat-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.no-feat:hover .no-feat-img img { transform: scale(1.03); }
.no-feat-text { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; padding: 24px; }
.no-feat-text em { padding: 2px 10px; border-radius: 999px; background: var(--accent-2); color: #fff; font-size: 11px; font-weight: 800; font-style: normal; }
.no-feat-text b { font-size: 22px; font-weight: 900; line-height: 1.6; }
.no-feat-text time { color: var(--text-soft); font-size: 13px; }
.no-feat-text .ui-btn { margin-top: 6px; }

.no-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 20px 0 0; padding: 0; list-style: none; }
.no-card { display: block; height: 100%; overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); color: var(--text); text-decoration: none; transition: transform .18s, box-shadow .18s; }
.no-card:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -22px var(--shadow-ink); }
.no-card-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.no-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.no-card b { display: -webkit-box; margin: 12px 14px 0; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 15px; font-weight: 800; line-height: 1.7; }
.no-card time { display: block; margin: 4px 14px 14px; color: var(--text-soft); font-size: 12px; }

.no-detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; padding-top: 22px; }
.no-detail.is-single { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.no-article h1 { margin: 12px 0 0; font-size: 28px; font-weight: 900; line-height: 1.5; color: var(--text); }
.no-meta { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; color: var(--text-soft); font-size: 13px; }
.no-meta svg { width: 16px; height: 16px; }
.no-figure { margin: 18px 0 0; overflow: hidden; border: 1px solid var(--border); border-radius: 20px; background: var(--surface-2); }
.no-figure a { display: block; cursor: zoom-in; }
.no-figure img { display: block; width: 100%; height: auto; }
.no-pn { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.no-pn a { display: block; padding: 12px 14px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .15s; }
.no-pn a:hover { border-color: var(--accent); }
.no-pn a.is-older { text-align: left; }
.no-pn small { display: block; color: var(--text-soft); font-size: 11px; font-weight: 700; }
.no-pn b { display: block; overflow: hidden; font-size: 14px; font-weight: 800; white-space: nowrap; text-overflow: ellipsis; }
.no-back { margin-top: 18px; }
.no-side { position: sticky; top: 76px; }
.no-list { margin: 0; padding: 6px; list-style: none; }
.no-list a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; color: var(--text); text-decoration: none; }
.no-list a:hover { background: var(--surface-2); }
.no-list-img { flex: none; width: 96px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: var(--surface-2); }
.no-list-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.no-list b { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 13px; font-weight: 800; line-height: 1.7; }
.no-list small { color: var(--text-soft); font-size: 11px; }

@media (max-width: 899px) {
  .no-feat { grid-template-columns: minmax(0, 1fr); }
  .no-feat-text { padding: 16px 18px 20px; }
  .no-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .no-detail { grid-template-columns: minmax(0, 1fr); }
  .no-side { position: static; }
}
@media (max-width: 679px) {
  .pg-title h1, .no-article h1 { font-size: 22px; }
  .no-feat-text b { font-size: 18px; }
  .no-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .no-pn { grid-template-columns: minmax(0, 1fr); }
  .no-pn a.is-older { text-align: right; }
}
@media (prefers-reduced-motion: reduce) {
  .no-feat-img img, .no-card, .pf-unfollow button { transition: none !important; }
}
