/* -----------------------------------------------------------------------
   Inline Notes UI — front-end styles  v1.1.0
   ----------------------------------------------------------------------- */

/* Side panel */
#cn-inline-comments-panel {
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.icui-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.icui-panel-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #f5f7ff;
}

.icui-panel-close {
  background: none;
  border: none;
  color: #9aa3d1;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}

.icui-panel-close:hover {
  color: #fff;
}

.icui-panel-empty p {
  color: #9aa3d1;
  font-size: 0.875rem;
  text-align: center;
  margin-top: 1.5rem;
}

/* Thread header */
.icui-thread-header {
  margin-bottom: 1rem;
}

.icui-anchor-quote {
  background: rgba(106, 180, 255, 0.08);
  border-left: 3px solid #6ab4ff;
  border-radius: 0 6px 6px 0;
  margin: 0 0 0.5rem;
  padding: 0.5rem 0.75rem;
  color: #c8d0ff;
  font-size: 0.875rem;
  font-style: italic;
}

.icui-new-label {
  font-size: 0.8rem;
  color: #9aa3d1;
  margin: 0;
}

/* Individual comments */
.icui-comment {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.icui-reply {
  margin-left: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-style: dashed;
}

.icui-comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.icui-comment-author {
  font-weight: 700;
  font-size: 0.8rem;
  color: #f5f7ff;
}

.icui-comment-date {
  font-size: 0.75rem;
  color: #9aa3d1;
}

.icui-comment-text {
  font-size: 0.875rem;
  color: #e2e6ff;
  line-height: 1.55;
  white-space: pre-wrap;
}

.icui-comment-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.4rem;
}

.icui-flag-btn {
  background: none;
  border: none;
  color: #9aa3d1;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0;
}

.icui-flag-btn:hover {
  color: #ff7f6e;
}

/* Replies container */
.icui-replies {
  margin-top: 0.5rem;
}

/* Reply toggle */
.icui-reply-toggle {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: #9aa3d1;
  font-size: 0.75rem;
  padding: 2px 10px;
  cursor: pointer;
  margin-top: 0.4rem;
}

.icui-reply-toggle:hover {
  color: #f5f7ff;
  border-color: rgba(255, 255, 255, 0.35);
}

/* Add comment button at thread bottom */
.icui-add-comment-btn {
  width: 100%;
  background: none;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #9aa3d1;
  font-size: 0.8rem;
  padding: 0.6rem;
  cursor: pointer;
  margin-top: 0.5rem;
}

.icui-add-comment-btn:hover {
  color: #f5f7ff;
  border-color: rgba(106, 180, 255, 0.5);
}

/* Honeypot field — hidden from humans, visible to naive bots. */
.icui-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Composer */
.icui-composer {
  margin-top: 1rem;
}

.icui-composer textarea.icui-comment-input,
.icui-composer input.icui-guest-name,
.icui-composer input.icui-guest-email {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #f5f7ff;
  padding: 0.6rem 0.75rem;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  resize: vertical;
  font-family: inherit;
}

.icui-composer input.icui-guest-name,
.icui-composer input.icui-guest-email {
  margin-bottom: 0.5rem;
}

.icui-composer textarea.icui-comment-input:focus,
.icui-composer input:focus {
  outline: none;
  border-color: rgba(106, 180, 255, 0.6);
  background: rgba(255, 255, 255, 0.09);
}

.icui-composer-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icui-submit-btn {
  background: linear-gradient(135deg, #2a5cdb, #6a40b8);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 120ms;
}

.icui-submit-btn:hover:not(:disabled) {
  opacity: 0.9;
}

.icui-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.icui-cancel-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: #9aa3d1;
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
}

.icui-submit-status {
  font-size: 0.8rem;
  color: #9aa3d1;
}

.icui-login-prompt {
  font-size: 0.8rem;
  color: #9aa3d1;
  margin-bottom: 0.5rem;
}

.icui-login-prompt a {
  color: #6ab4ff;
}

.icui-guidelines-note {
  font-size: 0.75rem;
  color: #9aa3d1;
  margin: 0 0 0.5rem;
}

.icui-guidelines-note a {
  color: #6ab4ff;
}

/* Active highlight on anchor span */
.cn-inline-anchor-highlight.icui-anchor-active {
  background: linear-gradient(120deg, rgba(106, 180, 255, 0.35), rgba(151, 108, 255, 0.55));
  box-shadow: 0 0 0 2px rgba(106, 180, 255, 0.5);
}

/* -----------------------------------------------------------------------
   Login wall
   ----------------------------------------------------------------------- */

.icui-login-wall {
  padding: 0.75rem 0;
}

.icui-login-wall-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #f5f7ff;
  margin: 0 0 1rem;
  text-align: center;
}

.icui-social-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

/* Social login button */
.icui-social-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 120ms, transform 80ms;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  color: #f5f7ff;
}

.icui-social-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  text-decoration: none;
}

/* Provider-specific tints */
.icui-social-btn--google   { background: rgba(234, 67, 53, 0.18); border-color: rgba(234, 67, 53, 0.35); }
.icui-social-btn--linkedin { background: rgba(0, 119, 181, 0.2);  border-color: rgba(0, 119, 181, 0.4); }
.icui-social-btn--twitter  { background: rgba(15, 15, 15, 0.35);  border-color: rgba(255, 255, 255, 0.18); }
.icui-social-btn--email    { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.15); }

/* Inline SVG icons in social buttons */
.icui-social-btn .icui-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

.icui-login-wall-terms {
  font-size: 0.72rem;
  color: #9aa3d1;
  text-align: center;
  margin: 0;
}

.icui-login-wall-terms a { color: #6ab4ff; }

/* -----------------------------------------------------------------------
   Note author profile display
   ----------------------------------------------------------------------- */

/* Updated comment header layout to accommodate avatar + details */
.icui-comment-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  gap: 0.5rem;
}

.icui-author-info {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
}

/* Avatar image */
.icui-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Fallback initials avatar */
.icui-author-avatar--initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(106, 180, 255, 0.2);
  color: #c8d0ff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.icui-author-details {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.icui-author-subtitle {
  font-size: 0.72rem;
  color: #9aa3d1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Profile links row (LinkedIn, Twitter) */
.icui-profile-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.2rem;
}

.icui-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  padding: 1px 6px 1px 4px;
  border-radius: 4px;
  transition: opacity 120ms;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.icui-profile-link:hover { opacity: 0.78; text-decoration: none; }

.icui-profile-link .icui-icon {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.icui-profile-link--linkedin {
  color: #7ec8ff;
  background: rgba(0, 119, 181, 0.15);
  border-color: rgba(0, 119, 181, 0.3);
}

.icui-profile-link--twitter {
  color: #d0d0d0;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}
