@charset "UTF-8";
/* styles.v7.css — Wave C part 2
 * Subscribe button on tags, notifications bell, public profile page.
 */

/* ── #15 — Subscribe star on tag chips ──────────────────────────────── */

.tag-chip { gap: 6px; }

.v7-sub-btn {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-left: 2px;
  padding: 0;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: rgba(200, 185, 161, 0.55);
  cursor: pointer;
  transition: color 160ms cubic-bezier(.22,1,.36,1), transform 160ms cubic-bezier(.22,1,.36,1);
}
.v7-sub-btn:hover {
  color: #ffd99c;
  transform: scale(1.18);
}
.v7-sub-btn.is-on {
  color: #ffc171;
  filter: drop-shadow(0 0 6px rgba(255, 193, 113, 0.4));
}

/* ── #19 — Notifications bell ───────────────────────────────────────── */

.v7-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-right: 6px;
}
.v7-bell-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 244, 222, 0.08);
  background: rgba(255, 244, 222, 0.04);
  color: var(--text, #f6efe2);
  cursor: pointer;
  transition: all 160ms cubic-bezier(.22,1,.36,1);
}
.v7-bell-btn:hover {
  border-color: rgba(255, 244, 222, 0.18);
  background: rgba(255, 244, 222, 0.08);
}
.v7-bell.has-unread .v7-bell-btn {
  border-color: rgba(216, 74, 99, 0.42);
  color: #ffd0d8;
}
@keyframes v7-bell-pulse {
  0%, 100% { transform: rotate(0); }
  10%, 30% { transform: rotate(-12deg); }
  20%, 40% { transform: rotate(12deg); }
  50% { transform: rotate(0); }
}
.v7-bell.has-unread .v7-bell-btn svg {
  animation: v7-bell-pulse 2.4s ease-in-out infinite;
  transform-origin: top center;
}
.v7-bell-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff6685, #b73a52);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px -4px rgba(216, 74, 99, 0.6);
}

.v7-bell-dd {
  position: absolute;
  top: calc(100% + 8px);
  right: -8px;
  width: min(360px, calc(100vw - 32px));
  max-height: 480px;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid rgba(255, 244, 222, 0.08);
  background: rgba(28, 24, 19, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 28px 56px -20px rgba(0, 0, 0, 0.75);
  overflow: hidden;
  z-index: 50;
  animation: v7-dd-in 200ms cubic-bezier(.22,1,.36,1);
}
@keyframes v7-dd-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.v7-bell-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 244, 222, 0.08);
}
.v7-bell-head strong {
  font-size: 0.92rem;
  font-weight: 700;
}
.v7-bell-readall {
  border: 0;
  background: transparent;
  color: rgba(200, 185, 161, 0.78);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 160ms cubic-bezier(.22,1,.36,1);
}
.v7-bell-readall:hover { color: #ffd99c; }

.v7-bell-list {
  flex: 1;
  overflow-y: auto;
  display: grid;
  gap: 2px;
  padding: 6px;
}
.v7-bell-empty,
.v7-bell-msg {
  padding: 28px 14px;
  text-align: center;
  color: rgba(200, 185, 161, 0.78);
  font-size: 0.86rem;
}
.v7-notif {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  background: transparent;
  color: var(--text, #f6efe2);
  text-decoration: none;
  transition: background 160ms cubic-bezier(.22,1,.36,1);
}
.v7-notif:hover { background: rgba(255, 244, 222, 0.06); }
.v7-notif.is-unread {
  background: rgba(216, 74, 99, 0.08);
  border-left: 2px solid rgba(216, 74, 99, 0.42);
  padding-left: 10px;
}
.v7-notif-title {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.v7-notif-body {
  font-size: 0.82rem;
  color: rgba(200, 185, 161, 0.86);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.v7-notif-meta {
  font-size: 0.72rem;
  color: rgba(200, 185, 161, 0.55);
}

/* ── #16 — Public profile page ──────────────────────────────────────── */

.v7-profile-view { padding-top: 12px; }

.v7-profile {
  display: grid;
  gap: 18px;
  max-width: 760px;
}

.v7-profile-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid rgba(255, 244, 222, 0.08);
  background: rgba(28, 24, 19, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 244, 222, 0.05) inset, 0 10px 26px -12px rgba(0, 0, 0, 0.55);
}
.v7-profile-avatar {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(216, 74, 99, 0.45), rgba(200, 151, 63, 0.45));
  color: #fff;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: 0 10px 26px -12px rgba(216, 74, 99, 0.5);
}
.v7-profile-info { min-width: 0; }
.v7-profile-name {
  margin: 0 0 4px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}
.v7-profile-handle {
  margin: 0 0 10px;
  color: rgba(200, 185, 161, 0.78);
  font-size: 0.82rem;
}
.v7-profile-bio {
  margin: 0 0 12px;
  color: rgba(246, 239, 226, 0.86);
  line-height: 1.55;
  white-space: pre-wrap;
}
.v7-profile-bio.v7-no-bio {
  color: rgba(200, 185, 161, 0.55);
  font-style: italic;
}
.v7-edit-bio {
  margin-top: 4px;
  padding: 6px 12px;
  min-height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 244, 222, 0.12);
  background: rgba(255, 244, 222, 0.05);
  color: var(--text, #f6efe2);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.v7-edit-bio:hover {
  background: rgba(255, 244, 222, 0.1);
}

.v7-profile-section {
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(255, 244, 222, 0.08);
  background: rgba(28, 24, 19, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.v7-profile-section h3 {
  margin: 0 0 14px;
  font-size: 0.95rem;
  font-weight: 700;
}

.v7-comment-list { display: grid; gap: 6px; }
.v7-comment-item {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(14, 12, 9, 0.4);
  border: 1px solid rgba(255, 244, 222, 0.05);
  color: var(--text, #f6efe2);
  text-decoration: none;
  transition: all 160ms cubic-bezier(.22,1,.36,1);
}
.v7-comment-item:hover {
  border-color: rgba(200, 151, 63, 0.32);
  background: rgba(20, 16, 12, 0.55);
}
.v7-comment-text {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.v7-comment-meta {
  font-size: 0.74rem;
  color: rgba(200, 185, 161, 0.55);
}

.v7-empty {
  margin: 0;
  padding: 18px;
  color: rgba(200, 185, 161, 0.62);
  text-align: center;
}

/* Skeleton */
.v7-skel .v7-profile-avatar {
  background: rgba(255, 244, 222, 0.05);
  box-shadow: none;
}
.v7-skel-line {
  height: 14px;
  margin-bottom: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(255,244,222,0) 0%, rgba(255,244,222,0.07) 50%, rgba(255,244,222,0) 100%),
              rgba(28,24,19,0.55);
  background-size: 480px 100%, 100% 100%;
  background-repeat: no-repeat, no-repeat;
  background-position: -480px 0, 0 0;
  animation: v7-shimmer 1.4s linear infinite;
}
@keyframes v7-shimmer { 0% { background-position: -480px 0,0 0; } 100% { background-position: 480px 0,0 0; } }

/* Bio modal */
.v7-bio-modal .modal-panel { gap: 12px; }
.v7-bio-text {
  width: 100%;
  resize: vertical;
  border-radius: 10px;
  border: 1px solid rgba(255, 244, 222, 0.12);
  background: rgba(14, 12, 9, 0.55);
  color: var(--text, #f6efe2);
  padding: 12px;
  min-height: 100px;
}
.v7-bio-text:focus {
  outline: none;
  border-color: rgba(200, 151, 63, 0.42);
  box-shadow: 0 0 0 1px rgba(200, 151, 63, 0.32);
}

.v7-profile-error {
  padding: 36px 22px;
  text-align: center;
}
.v7-profile-error p {
  font-size: 1.05rem;
  color: rgba(200, 185, 161, 0.86);
  margin-bottom: 18px;
}

/* Author link in comments */
.v7-author-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed rgba(200, 151, 63, 0.32);
  transition: color 160ms cubic-bezier(.22,1,.36,1), border-color 160ms cubic-bezier(.22,1,.36,1);
}
.v7-author-link:hover {
  color: #ffd99c;
  border-bottom-color: rgba(200, 151, 63, 0.6);
}

@media (max-width: 600px) {
  .v7-profile-card { grid-template-columns: 72px 1fr; padding: 16px; }
  .v7-profile-avatar { width: 72px; height: 72px; font-size: 1.8rem; }
  .v7-bell-dd { right: -64px; }
}
