/* ============================================= */
/* @satan - evil1.org social network             */
/* Hot Neon palette | Facebook-style profile     */
/* ============================================= */

/* ============================= */
/* COMPONENT: CSS Variables      */
/* ============================= */
:root {
  --sp-bg-page: #111114;
  --sp-bg-card: #1a1a1e;
  --sp-bg-card-hover: #1e1e24;
  --sp-bg-cover: linear-gradient(135deg, #1a1a1e 0%, #2a1520 50%, #1a1a1e 100%);
  --sp-accent: #ff3399;
  --sp-accent-dim: rgba(255, 51, 153, 0.33);
  --sp-accent-hot: #ff0066;
  --sp-accent-glow: rgba(255, 51, 153, 0.15);
  --sp-text-primary: #e8e8e8;
  --sp-text-secondary: #999;
  --sp-text-muted: #555;
  --sp-text-reveal: #666;
  --sp-border: #222;
  --sp-border-accent: rgba(255, 51, 153, 0.2);
  --sp-radius: 8px;
  --sp-max-width: 700px;

  /* Sod transition overrides - set by JS */
  --sp-accent-current: var(--sp-accent);
  --sp-saturation: 1;
}
/* /COMPONENT: CSS Variables     */

/* ============================= */
/* COMPONENT: Reset + Base       */
/* ============================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--sp-text-primary);
  background: var(--sp-bg-page);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--sp-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
/* /COMPONENT: Reset + Base      */

/* ============================= */
/* COMPONENT: Platform Header    */
/* ============================= */
.sp-platform-header {
  background: #0a0a0c;
  border-bottom: 1px solid var(--sp-border);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.sp-platform-inner {
  max-width: var(--sp-max-width);
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sp-platform-logo {
  font-weight: 800;
  font-size: 18px;
  color: var(--sp-accent);
  letter-spacing: -0.5px;
}
.sp-platform-logo:hover { text-decoration: none; opacity: 0.8; }

.sp-platform-tagline {
  color: var(--sp-text-muted);
  font-size: 11px;
  text-transform: lowercase;
  letter-spacing: 1px;
}

.sp-platform-nav {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.sp-platform-nav-link {
  font-size: 12px;
  color: var(--sp-text-muted);
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s;
}
.sp-platform-nav-link:hover { color: var(--sp-text-secondary); text-decoration: none; }
.sp-platform-nav-link--active { color: var(--sp-accent); }
.sp-platform-nav-link--stub { opacity: 0.4; cursor: default; }
.sp-platform-nav-link--stub:hover { color: var(--sp-text-muted); }

/* Notification badge and dropdown */
.sp-platform-nav-link { position: relative; }

.sp-notif-badge {
  display: none;
  position: absolute;
  top: -2px;
  right: -4px;
  background: #e74c3c;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  line-height: 16px;
  text-align: center;
}
.sp-notif-badge--visible { display: block; cursor: pointer; }

.sp-notif-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  width: 300px;
  background: var(--sp-bg-card);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 150;
  max-height: 400px;
  overflow-y: auto;
}
.sp-notif-dropdown--open { display: block; }

.sp-notif-header {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--sp-text-primary);
  border-bottom: 1px solid var(--sp-border);
}

.sp-notif-item {
  padding: 10px 14px;
  border-bottom: 1px solid var(--sp-border);
  font-size: 12px;
  color: var(--sp-text-secondary);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.sp-notif-item:last-child { border-bottom: none; }

.sp-notif-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #2a2a2e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.sp-notif-text { flex: 1; line-height: 1.4; }
.sp-notif-text strong { color: var(--sp-text-primary); }

.sp-notif-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}
.sp-notif-btn {
  background: none;
  border: 1px solid var(--sp-border);
  color: var(--sp-text-secondary);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-family: inherit;
  cursor: pointer;
}
.sp-notif-btn:hover { border-color: var(--sp-accent); color: var(--sp-accent); }
.sp-notif-btn--primary { background: var(--sp-accent); color: #fff; border-color: var(--sp-accent); }

.sp-notif-response {
  font-size: 11px;
  color: var(--sp-accent);
  margin-top: 4px;
  font-style: italic;
}
/* /COMPONENT: Platform Header   */

/* ============================= */
/* COMPONENT: Cover + Bio        */
/* ============================= */
.sp-cover {
  max-width: var(--sp-max-width);
  margin: 0 auto;
}

.sp-cover-image {
  background: var(--sp-bg-cover);
  height: 140px;
  border-radius: 0 0 var(--sp-radius) var(--sp-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.sp-now-playing {
  font-size: 11px;
  color: var(--sp-accent-dim);
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: color 0.8s ease;
}
.sp-now-playing-icon { margin: 0 6px; }

.sp-profile-header {
  display: flex;
  align-items: flex-end;
  padding: 0 20px;
  margin-top: -36px;
  gap: 16px;
}

.sp-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sp-accent), var(--sp-accent-hot));
  border: 4px solid var(--sp-bg-page);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: filter 1.5s ease;
  filter: saturate(var(--sp-saturation));
}
.sp-avatar-emoji { font-size: 42px; }

.sp-profile-info { padding-bottom: 6px; }

.sp-name {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.sp-verified {
  font-size: 12px;
  color: var(--sp-accent);
  font-weight: 400;
}

.sp-bio {
  font-size: 14px;
  color: var(--sp-text-secondary);
  margin-top: 4px;
  line-height: 1.5;
}

.sp-stats {
  margin-top: 8px;
  font-size: 13px;
  color: var(--sp-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.sp-stat strong { color: var(--sp-text-secondary); }
.sp-stat-dot { color: var(--sp-text-muted); }
/* /COMPONENT: Cover + Bio       */

/* ============================= */
/* COMPONENT: Source Paywall     */
/* ============================= */
.sp-paywall {
  max-width: var(--sp-max-width);
  margin: 16px auto 0;
  padding: 0 16px;
}
.sp-paywall-inner {
  background: linear-gradient(135deg, #1a1520, #1e1228);
  border: 1px solid var(--sp-accent-dim);
  border-radius: var(--sp-radius);
  padding: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.sp-paywall-badge {
  display: inline-block;
  background: var(--sp-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.sp-paywall-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.sp-paywall-subtitle {
  font-size: 13px;
  color: var(--sp-text-secondary);
  margin-top: 4px;
}
.sp-paywall-price {
  font-size: 32px;
  font-weight: 800;
  color: var(--sp-accent);
  margin: 12px 0;
}
.sp-paywall-btn {
  background: var(--sp-accent);
  color: #fff;
  border: none;
  padding: 10px 28px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}
.sp-paywall-btn:hover { background: var(--sp-accent-hot); }
.sp-paywall-fine {
  font-size: 10px;
  color: var(--sp-text-reveal);
  margin-top: 10px;
  font-style: italic;
}

/* Unlocked state: hide paywall */
body.sp-unlocked .sp-paywall { display: none; }
/* /COMPONENT: Source Paywall    */

/* ============================= */
/* COMPONENT: Network Search     */
/* ============================= */
.sp-search {
  max-width: var(--sp-max-width);
  margin: 12px auto 0;
  padding: 0 16px;
}
.sp-search-input {
  width: 100%;
  background: var(--sp-bg-card);
  border: 1px solid var(--sp-border);
  border-radius: 20px;
  padding: 10px 18px;
  font-size: 13px;
  font-family: inherit;
  color: var(--sp-text-primary);
  outline: none;
  transition: border-color 0.2s;
}
.sp-search-input:focus { border-color: var(--sp-accent-dim); }
.sp-search-input::placeholder { color: var(--sp-text-muted); }

.sp-search-hint {
  font-size: 11px;
  color: var(--sp-accent);
  text-align: center;
  margin-top: 6px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.sp-search-hint--visible { opacity: 1; }
/* /COMPONENT: Network Search    */

/* ============================= */
/* COMPONENT: Fruit Ad           */
/* ============================= */
.sp-ad {
  border-color: var(--sp-border);
  position: relative;
}
.sp-ad-label {
  font-size: 9px;
  color: var(--sp-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid var(--sp-border);
  padding: 2px 6px;
  border-radius: 3px;
}
.sp-ad-avatar {
  background: linear-gradient(135deg, #2d5a1b, #1a3a0f) !important;
  font-size: 16px !important;
}
.sp-ad-image {
  font-size: 36px;
  line-height: 1.2;
  text-align: center;
  padding: 16px;
  margin: 8px 0;
  background: linear-gradient(135deg, rgba(255, 51, 153, 0.05), rgba(45, 90, 27, 0.08));
  border-radius: var(--sp-radius);
  letter-spacing: 4px;
}
.sp-ad-headline {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-top: 2px;
}
.sp-ad-copy {
  font-size: 13px;
  color: var(--sp-text-secondary);
  margin-top: 4px;
  line-height: 1.5;
}
.sp-ad-fine {
  font-size: 10px;
  color: var(--sp-text-reveal);
  margin-top: 6px;
  line-height: 1.4;
}
.sp-ad-cta {
  display: inline-block;
  margin-top: 10px;
  background: linear-gradient(135deg, #c0392b, #a8281a);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.sp-ad-cta:hover {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  transform: scale(1.02);
}

/* After eating: ad transforms */
.sp-ad--eaten .sp-ad-headline { color: var(--sp-accent); }
.sp-ad--eaten .sp-ad-copy { color: var(--sp-text-primary); }
.sp-ad--eaten .sp-ad-cta { display: none; }
.sp-ad--eaten .sp-ad-image { letter-spacing: 0; }
/* /COMPONENT: Fruit Ad          */

/* ============================= */
/* COMPONENT: Source Citations    */
/* ============================= */
.sp-source {
  font-size: 11px;
  color: var(--sp-text-reveal);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--sp-border);
  line-height: 1.5;
  /* Hidden by default - blurred */
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
  transition: filter 0.6s ease, color 0.6s ease;
}
.sp-source::before {
  content: "SOURCE: ";
  font-weight: 700;
  color: var(--sp-text-muted);
  letter-spacing: 1px;
  font-size: 9px;
}

/* Unlocked: sources readable */
body.sp-unlocked .sp-source {
  filter: none;
  user-select: auto;
  pointer-events: auto;
  color: var(--sp-text-secondary);
}
/* /COMPONENT: Source Citations   */

/* ============================= */
/* COMPONENT: Tab Navigation     */
/* ============================= */
.sp-tabs {
  max-width: var(--sp-max-width);
  margin: 20px auto 0;
  display: flex;
  border-bottom: 1px solid var(--sp-border);
  padding: 0 16px;
}

.sp-tab {
  background: none;
  border: none;
  color: var(--sp-text-muted);
  font-size: 14px;
  font-family: inherit;
  padding: 12px 20px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.sp-tab:hover { color: var(--sp-text-secondary); }
.sp-tab--active {
  color: var(--sp-accent);
  border-bottom-color: var(--sp-accent);
}
.sp-tab-count {
  font-size: 11px;
  color: var(--sp-text-muted);
  margin-left: 4px;
}
/* /COMPONENT: Tab Navigation    */

/* ============================= */
/* COMPONENT: Tab Content        */
/* ============================= */
.sp-content {
  max-width: var(--sp-max-width);
  margin: 0 auto;
  padding: 16px;
}

.sp-panel { display: none; }
.sp-panel--active { display: block; }
/* /COMPONENT: Tab Content       */

/* ============================= */
/* COMPONENT: Posts               */
/* ============================= */
.sp-post {
  background: var(--sp-bg-card);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  padding: 16px;
  margin-bottom: 14px;
}
.sp-post:hover { background: var(--sp-bg-card-hover); }

.sp-post--pinned {
  border-color: var(--sp-border-accent);
}

.sp-post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.sp-post-author {
  display: flex;
  gap: 8px;
  align-items: center;
}

.sp-post-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sp-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.sp-post-meta {
  display: flex;
  flex-direction: column;
}
.sp-post-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--sp-text-primary);
}
.sp-post-time {
  font-size: 11px;
  color: var(--sp-text-muted);
}

.sp-post-pin {
  font-size: 9px;
  color: var(--sp-accent-dim);
  border: 1px solid var(--sp-border-accent);
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sp-post-body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--sp-text-primary);
}
.sp-post-body p { margin-bottom: 10px; }
.sp-post-body p:last-child { margin-bottom: 0; }

.sp-post-scripture {
  font-style: italic;
  color: var(--sp-text-secondary);
  border-left: 2px solid var(--sp-accent-dim);
  padding-left: 12px;
  margin: 8px 0;
}

.sp-post-cite {
  font-size: 12px;
  color: var(--sp-text-muted);
  font-style: normal;
}

.sp-post-actions {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--sp-border);
  display: flex;
  gap: 24px;
  font-size: 12px;
  color: var(--sp-text-muted);
}
.sp-post-action-likes { color: var(--sp-accent); }

.sp-post-comment {
  font-size: 11px;
  color: var(--sp-text-reveal);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--sp-border);
  font-style: italic;
}

.sp-post-small {
  font-size: 10px;
  color: var(--sp-text-reveal);
  margin-top: 6px;
  font-style: italic;
}

/* Repost format */
.sp-repost-header {
  font-size: 11px;
  color: var(--sp-text-muted);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--sp-border);
}
.sp-repost-source {
  background: var(--sp-bg-page);
  border: 1px solid var(--sp-border);
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 10px;
}
.sp-repost-quote {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}
.sp-repost-attribution {
  font-size: 11px;
  color: var(--sp-text-muted);
  margin-top: 4px;
}

/* Lonely posts (fewer likes = less visible) */
.sp-post--lonely { opacity: 0.85; }
.sp-post--lonely .sp-post-body { font-size: 14px; }
/* /COMPONENT: Posts              */

/* ============================= */
/* COMPONENT: Friends Grid       */
/* ============================= */
.sp-friends-header {
  font-size: 12px;
  font-weight: 700;
  color: var(--sp-text-secondary);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.sp-friends-header span { color: var(--sp-accent); }

.sp-friends-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.sp-friend {
  background: var(--sp-bg-card);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.sp-friend:hover {
  border-color: var(--sp-accent-dim);
  background: var(--sp-bg-card-hover);
}

.sp-friend-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #2a2a2e;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.sp-friend-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--sp-text-primary);
}

.sp-friend-tagline {
  font-size: 10px;
  color: var(--sp-text-muted);
  margin-top: 4px;
  line-height: 1.4;
}

.sp-friends-reveal {
  text-align: center;
  font-size: 12px;
  color: var(--sp-accent);
  margin-top: 20px;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.sp-friends-reveal--visible { opacity: 1; }
/* /COMPONENT: Friends Grid      */

/* ============================= */
/* COMPONENT: People You May Know */
/* ============================= */
.sp-pymk {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--sp-border);
}

.sp-pymk-header {
  font-size: 12px;
  font-weight: 700;
  color: var(--sp-text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.sp-pymk-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  margin-bottom: 8px;
  background: var(--sp-bg-card);
  transition: background 0.2s, border-color 0.2s;
}
.sp-pymk-card:hover {
  background: var(--sp-bg-card-hover);
  border-color: var(--sp-accent-dim);
}

.sp-pymk-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #2a2a2e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.sp-pymk-info { flex: 1; min-width: 0; }

.sp-pymk-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--sp-text-primary);
}

.sp-pymk-role {
  font-size: 11px;
  color: var(--sp-accent);
  margin-top: 1px;
}

.sp-pymk-bio {
  font-size: 12px;
  color: var(--sp-text-secondary);
  margin-top: 4px;
  line-height: 1.4;
}

.sp-pymk-mutual {
  font-size: 10px;
  color: var(--sp-text-muted);
  margin-top: 4px;
}

.sp-pymk-btn {
  background: none;
  border: 1px solid var(--sp-accent-dim);
  color: var(--sp-accent);
  padding: 5px 14px;
  border-radius: 4px;
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
  flex-shrink: 0;
  align-self: center;
  transition: background 0.2s;
}
.sp-pymk-btn:hover {
  background: var(--sp-accent-glow);
}
.sp-pymk-btn--followed {
  background: var(--sp-accent);
  color: #fff;
  border-color: var(--sp-accent);
}

.sp-pymk-divider {
  font-size: 10px;
  color: var(--sp-text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 16px 0 10px;
  padding-top: 12px;
  border-top: 1px solid var(--sp-border);
}

.sp-pymk-small {
  font-size: 9px;
  color: var(--sp-text-reveal);
  text-align: center;
  margin-top: 12px;
  font-style: italic;
}

@media (max-width: 600px) {
  .sp-pymk-bio { font-size: 11px; }
  .sp-pymk-btn { padding: 4px 10px; font-size: 10px; }
}
/* /COMPONENT: People You May Know */

/* ============================= */
/* COMPONENT: About / Work       */
/* ============================= */
.sp-about-section {
  margin-bottom: 24px;
}

.sp-about-heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--sp-text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--sp-border);
}

.sp-work-entry {
  background: var(--sp-bg-card);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  padding: 16px;
  margin-bottom: 12px;
}

.sp-work-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.sp-work-company {
  font-size: 13px;
  color: var(--sp-accent);
}

.sp-work-dates {
  font-size: 12px;
  color: var(--sp-text-muted);
  margin-top: 2px;
}

.sp-work-duties {
  list-style: none;
  margin-top: 10px;
}
.sp-work-duties li {
  font-size: 14px;
  color: var(--sp-text-secondary);
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}
.sp-work-duties li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: var(--sp-text-muted);
}

.sp-endorsement {
  font-size: 13px;
  color: var(--sp-text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid var(--sp-border);
}
.sp-endorsement:last-child { border-bottom: none; }
.sp-endorsement strong { color: var(--sp-text-primary); }
.sp-endorsement em { color: var(--sp-text-muted); font-size: 11px; }
/* /COMPONENT: About / Work      */

/* ============================= */
/* COMPONENT: Memories (Sod)     */
/* ============================= */
.sp-memories {
  max-width: var(--sp-max-width);
  margin: 40px auto;
  padding: 0 16px;
  transition: opacity 0.5s ease;
}

.sp-memories-card {
  background: var(--sp-bg-card);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  padding: 20px;
  transition: border-color 1.5s ease, background 1.5s ease;
}

.sp-memories-label {
  font-size: 11px;
  color: var(--sp-text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.sp-memories-date {
  font-size: 13px;
  color: var(--sp-text-muted);
  margin-bottom: 16px;
}

.sp-memories-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--sp-text-primary);
  transition: color 1.5s ease;
}
.sp-memories-body p { margin-bottom: 12px; }
.sp-memories-body p:last-child { margin-bottom: 0; }

/* Sod state - triggered by JS adding .sp-sod to body */
body.sp-sod .sp-memories-card {
  border-color: #333;
  background: #151517;
}
body.sp-sod .sp-memories-body { color: #aaa; }
body.sp-sod .sp-avatar { filter: saturate(0.1); }
body.sp-sod .sp-now-playing { color: rgba(153, 153, 153, 0.4); }
body.sp-sod .sp-friend-name { color: var(--sp-accent); }
/* /COMPONENT: Memories (Sod)    */

/* ============================= */
/* COMPONENT: Modal              */
/* ============================= */
.sp-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.sp-modal-overlay--open { display: flex; }

.sp-modal {
  background: var(--sp-bg-card);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  padding: 24px;
}

.sp-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--sp-text-muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}
.sp-modal-close:hover { color: var(--sp-text-primary); }

.sp-modal-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #2a2a2e;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.sp-modal-name {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-align: center;
}

.sp-modal-tagline {
  font-size: 12px;
  color: var(--sp-text-muted);
  text-align: center;
  margin-top: 4px;
}

.sp-modal-content {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--sp-text-secondary);
}
.sp-modal-content p { margin-bottom: 10px; }

.sp-modal-quote {
  font-style: italic;
  border-left: 2px solid var(--sp-accent-dim);
  padding-left: 12px;
  margin: 12px 0;
  color: var(--sp-text-primary);
  font-size: 15px;
}

.sp-modal-small {
  font-size: 10px;
  color: var(--sp-text-reveal);
  margin-top: 12px;
  font-style: italic;
}
/* /COMPONENT: Modal             */

/* ============================= */
/* COMPONENT: Satan DM Chat      */
/* ============================= */
.sp-chat {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 180;
  display: none;
}
body.sp-state-seeker .sp-chat,
body.sp-state-awake .sp-chat,
body.sp-state-witness .sp-chat { display: block; }

.sp-chat-toggle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sp-accent), var(--sp-accent-hot));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 51, 153, 0.3);
  position: relative;
  transition: transform 0.2s;
}
.sp-chat-toggle:hover { transform: scale(1.05); }
.sp-chat-toggle-icon { font-size: 24px; }
.sp-chat-toggle-dot {
  display: none;
  position: absolute;
  top: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  background: #e74c3c;
  border-radius: 50%;
  border: 2px solid var(--sp-bg-page);
}
.sp-chat-toggle-dot--active { display: block; }

.sp-chat-window {
  display: none;
  position: absolute;
  bottom: 58px;
  right: 0;
  width: 300px;
  background: var(--sp-bg-card);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  overflow: hidden;
}
.sp-chat-window--open { display: block; }

.sp-chat-header {
  padding: 10px 14px;
  background: linear-gradient(135deg, #1a1520, #1e1228);
  border-bottom: 1px solid var(--sp-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--sp-accent);
}

.sp-chat-minimize {
  background: none;
  border: none;
  color: var(--sp-text-muted);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}

.sp-chat-messages {
  padding: 14px;
  max-height: 300px;
  overflow-y: auto;
}

.sp-chat-typing {
  font-size: 12px;
  color: var(--sp-text-muted);
  font-style: italic;
}
.sp-chat-typing-dots {
  display: inline-block;
  animation: sp-typing 1.2s infinite;
}
@keyframes sp-typing {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60%, 100% { content: '...'; }
}

.sp-chat-msg {
  font-size: 13px;
  color: var(--sp-text-primary);
  line-height: 1.6;
  margin-bottom: 8px;
  opacity: 0;
  transform: translateY(8px);
  animation: sp-msg-in 0.4s ease forwards;
}
@keyframes sp-msg-in {
  to { opacity: 1; transform: translateY(0); }
}

.sp-chat-msg p { margin-bottom: 8px; }
.sp-chat-msg p:last-child { margin-bottom: 0; }

@media (max-width: 600px) {
  .sp-chat { bottom: 12px; right: 12px; }
  .sp-chat-window { width: 280px; }
}
/* /COMPONENT: Satan DM Chat     */

/* ============================= */
/* COMPONENT: Footer             */
/* ============================= */
.sp-footer {
  max-width: var(--sp-max-width);
  margin: 40px auto 20px;
  padding: 20px 16px;
  border-top: 1px solid var(--sp-border);
  text-align: center;
}

.sp-footer-text {
  font-size: 12px;
  color: var(--sp-text-muted);
}

.sp-footer-disclaimer {
  font-size: 10px;
  color: var(--sp-text-reveal);
  margin-top: 6px;
}
/* /COMPONENT: Footer            */

/* ============================= */
/* COMPONENT: Comment Threads    */
/* ============================= */
.sp-comment-thread {
  margin-top: 8px;
}

.sp-thread-comment {
  padding: 6px 0;
  border-top: 1px solid var(--sp-border);
  font-size: 12px;
  color: var(--sp-text-secondary);
  line-height: 1.5;
  display: none;
}
.sp-thread-comment strong { color: var(--sp-text-primary); font-size: 11px; }
.sp-thread-comment--reply { padding-left: 20px; font-size: 11px; }
.sp-thread-comment--empty strong { color: var(--sp-text-muted); }
.sp-thread-comment--empty .sp-thread-body { min-height: 16px; }

/* State visibility */
body.sp-state-curious .sp-thread-comment[data-min-state="curious"],
body.sp-state-seeker .sp-thread-comment[data-min-state="curious"],
body.sp-state-awake .sp-thread-comment[data-min-state="curious"],
body.sp-state-witness .sp-thread-comment[data-min-state="curious"],
body.sp-state-seeker .sp-thread-comment[data-min-state="seeker"],
body.sp-state-awake .sp-thread-comment[data-min-state="seeker"],
body.sp-state-witness .sp-thread-comment[data-min-state="seeker"],
body.sp-state-awake .sp-thread-comment[data-min-state="awake"],
body.sp-state-witness .sp-thread-comment[data-min-state="awake"] {
  display: block;
}
/* /COMPONENT: Comment Threads   */

/* ============================= */
/* COMPONENT: Photos Tab         */
/* ============================= */
.sp-photo-frame {
  background: var(--sp-bg-card);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  margin-bottom: 14px;
  overflow: hidden;
}

.sp-photo-image {
  background: linear-gradient(135deg, #1a1520, #0d0d0f);
  padding: 30px 20px;
  text-align: center;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--sp-text-muted);
  line-height: 1.5;
  font-style: italic;
  border-bottom: 1px solid var(--sp-border);
}

.sp-photo-image--mirror {
  background: linear-gradient(135deg, #111114, #1a1a1e, #111114);
  min-height: 120px;
  color: var(--sp-text-reveal);
}

.sp-photo-caption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--sp-text-secondary);
  line-height: 1.5;
}
.sp-photo-caption strong { color: var(--sp-text-primary); }

.sp-tab--new {
  position: relative;
}
.sp-tab--new::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 4px;
  width: 6px;
  height: 6px;
  background: var(--sp-accent);
  border-radius: 50%;
}
/* /COMPONENT: Photos Tab        */

/* ============================= */
/* COMPONENT: Visitor Counter    */
/* ============================= */
.sp-visitor-counter {
  font-size: 11px;
  color: var(--sp-text-muted);
  margin-bottom: 6px;
  transition: color 0.8s ease;
}
body.sp-state-witness .sp-visitor-counter { color: var(--sp-accent); }
/* /COMPONENT: Visitor Counter   */

/* ============================= */
/* COMPONENT: Responsive         */
/* ============================= */
@media (max-width: 600px) {
  .sp-platform-tagline { display: none; }
  .sp-platform-nav { gap: 4px; }
  .sp-platform-nav-link { font-size: 11px; padding: 4px 6px; }

  .sp-profile-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 16px;
    margin-top: -30px;
  }

  .sp-avatar { width: 72px; height: 72px; }
  .sp-avatar-emoji { font-size: 34px; }
  .sp-name { font-size: 20px; }

  .sp-tabs { overflow-x: auto; }
  .sp-tab { padding: 10px 14px; font-size: 13px; white-space: nowrap; }

  .sp-friends-grid { grid-template-columns: repeat(2, 1fr); }

  .sp-modal { max-height: 90vh; margin: 10px; }
}
/* /COMPONENT: Responsive        */
