/* hi nick! :D and anyone else who is peeking in here. <3 */

/* ── TOKENS ────────────────────────────────── */
:root {
  --bg:            #e0dde8;
  --fg:            #6b5b7d;
  --muted:         #9a8fb0;
  --card:          rgba(255,255,255,0.78);
  --card-border:   rgba(180,150,200,0.40);
  --accent:        #c8607a;
  --accent-hover:  #a84060;
  --gradient:      linear-gradient(135deg, #d4a0b8, #a8c9e3);
  --font-serif:    'Playfair Display', serif;
  --font-sans:     'DM Sans', sans-serif;
}
[data-theme="dark"] {
  --bg:          #18141e;
  --fg:          #c8bdd8;
  --muted:       #8878a0;
  --card:        rgba(28,20,38,0.92);
  --card-border: rgba(110,80,150,0.32);
}

/* ── RESET & BASE ──────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  padding: 28px 16px 48px;
  scrollbar-color: #c5b4d8 transparent;
  scrollbar-width: thin;
  transition: background .4s, color .4s;
}
::-webkit-scrollbar       { width: 5px; height: 5px; }
::-webkit-scrollbar-thumb { background: #c5b4d8; }
::selection               { background: #d5c6e8; color: #000; }

/* ── TYPOGRAPHY ────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--fg);
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: 16pt;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
h1::before {
  content: '';
  width: 4px; height: 20px;
  background: var(--gradient);
  border-radius: 10px; flex-shrink: 0;
}

h2 {
  font-size: 13pt;
  font-weight: 600;
  font-style: italic;
  letter-spacing: .2px;
  margin-bottom: 10px;
}

h3 {
  font-size: 10.5pt;
  font-weight: 500;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

p { margin-top: 0; margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
img { display: block; max-width: 100%; height: auto; }

b, strong {
  font-size: 14px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
i, em { color: #3b435a; font-family: var(--font-serif); }
[data-theme="dark"] i,
[data-theme="dark"] em { color: #a0aac0; }

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-hover); }

/* ── FORM ELEMENTS ─────────────────────────── */
input, textarea {
  padding: 8px; width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(220,170,190,0.6);
  background: rgba(255,255,255,0.9);
  color: #5f5a6b;
  font-family: var(--font-sans);
}
[data-theme="dark"] input,
[data-theme="dark"] textarea {
  background: rgba(30,22,40,0.8);
  color: var(--fg);
  border-color: rgba(140,100,160,0.5);
}
input::placeholder,
textarea::placeholder { color: #b890a8; }
input:focus,
textarea:focus { outline: none; border-color: var(--accent); }

button {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--gradient);
  border: none; color: #fff; cursor: pointer;
  font-family: var(--font-sans); font-size: 13px;
  box-shadow: 0 4px 15px rgba(200,160,190,0.35);
  transition: opacity .2s;
}
button:hover { opacity: .85; }

/* ── SITE WRAPPER ──────────────────────────── */
#site {
  max-width: 1400px;
  margin: 0 auto;
  border-radius: 22px;

  background: var(--card);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 4px 6px rgba(0,0,0,0.04),
    0 20px 60px rgba(160,120,190,0.18),
    0 0 0 1px rgba(200,170,220,0.25);
  transition: background .4s, box-shadow .4s;
  animation: rise .5s ease both;
}
[data-theme="dark"] #site {
  box-shadow:
    0 4px 6px rgba(0,0,0,0.18),
    0 20px 60px rgba(0,0,0,0.45),
    0 0 0 1px rgba(100,70,130,0.35);
}

/* ── HEADER ────────────────────────────────── */
#header {
  width: 100%; height: 600px;
  position: relative; overflow: hidden;
  background: url('/img/cyrene.png') center 30% / cover;
}
[data-theme="dark"] #header { background: url('/img/dahlia.png') center 40% / cover; }

#header::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(255,255,255,0.55) 100%);
  pointer-events: none;
}
[data-theme="dark"] #header::after {
  background: linear-gradient(to bottom, transparent 30%, rgba(28,20,38,0.75) 100%);
}

.site-brand {
  position: absolute; bottom: 16px; left: 20px; z-index: 2;
  background: rgba(255,255,255,0.42);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 12px; padding: 10px 18px;
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: 0 4px 20px rgba(180,140,210,0.20);
}
[data-theme="dark"] .site-brand {
  background: rgba(20,14,32,0.55);
  border-color: rgba(120,90,160,0.35);
}

.site-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.55rem; font-weight: 700; font-style: italic;
  color: #3a2848; line-height: 1;
}
[data-theme="dark"] .site-name { color: #ede0f8; }

.site-tagline {
  display: block; margin-top: 4px;
  font-size: 8.5px; font-weight: 500;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: #9a80a8;
}
[data-theme="dark"] .site-tagline { color: #8878a8; }

/* ── NAV ───────────────────────────────────── */
#topbar {
  position: absolute; top: 16px; left: 50%;
  transform: translateX(-50%);
  z-index: 10; padding: 9px 22px;
  display: flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,0.48);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.60);
  box-shadow: 0 6px 24px rgba(160,120,200,0.28);
  transition: background .4s;
}
[data-theme="dark"] #topbar {
  background: rgba(24,16,38,0.60);
  border-color: rgba(120,90,160,0.35);
  box-shadow: 0 6px 24px rgba(0,0,0,0.40);
}

#topmenu { display: flex; gap: 4px; align-items: center; }

#topmenu a {
  position: relative;
  font-size: 13.5px; font-weight: 500;
  letter-spacing: .4px; text-transform: lowercase;
  color: #5a4a6a; padding: 5px 12px;
  transition: color .2s;
}

#topmenu i {
    font-size: 13px;
}
[data-theme="dark"] #topmenu a { color: var(--fg); }

#topmenu a::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -4px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, #c5b4d8, #a8c9e3);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width .25s ease;
}
#topmenu a:hover              { color: #4f4a5f; }
[data-theme="dark"] #topmenu a:hover { color: #e0d4f0; }
#topmenu a:hover::after       { width: 100%; }

.theme-toggle {
  width: 28px; height: 28px;
  border-radius: 50%; padding: 0; margin-left: 6px;
  background: rgba(255,255,255,0.35);
  border: 1px solid rgba(200,170,220,0.45) !important;
  color: #9a6888; font-size: .82rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: none; flex-shrink: 0;
  transition: background .2s, color .2s, transform .2s;
}
[data-theme="dark"] .theme-toggle {
  background: rgba(20,14,30,0.5);
  border-color: rgba(120,90,160,0.40) !important;
  color: #b890c8;
}
.theme-toggle:hover { background: var(--accent); color: #fff; transform: rotate(18deg); opacity: 1; }

/* ── LAYOUT ────────────────────────────────── */
#content { padding: 22px 22px 26px; position: relative; z-index: 2; }

.layout {
  display: grid;
  grid-template-columns: 1fr 242px;
  gap: 20px; align-items: start;
}

/* ── CARD ──────────────────────────────────── */

.box {
  background: var(--card);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid var(--card-border);
  box-shadow:
    inset 0 0 8px rgba(210,185,215,0.18),
    0 12px 40px rgba(180,150,210,0.28);
  padding: 22px 24px;
  margin-bottom: 18px;
  transition: background .4s, border-color .4s;
}
[data-theme="dark"] .box {
  box-shadow:
    inset 0 0 8px rgba(80,50,120,0.14),
    0 12px 40px rgba(0,0,0,0.38);
}
.box:last-child { margin-bottom: 0; }


.pagination { display: flex; gap: 5px; margin-top: 14px; }
.pagination a,
.pagination .active {
  font-size: 11px; padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  color: var(--muted); background: rgba(255,255,255,0.55);
  text-decoration: none; transition: all .18s;
}
[data-theme="dark"] .pagination a { background: rgba(32,22,46,0.6); color: var(--muted); }
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .active { background: var(--gradient); color: #fff; border-color: transparent; }

/* ── SIDEBAR ───────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 14px; }

.widget-title {
  font-family: var(--font-serif);
  font-size: 10pt; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 10px; padding-bottom: 7px;
  border-bottom: 1px solid rgba(180,150,200,0.22);
}

.status-row {
  display: flex; justify-content: space-between;
  align-items: baseline; padding: 4.5px 0; gap: 6px;
  border-bottom: 1px solid rgba(180,150,200,0.10);
}
.status-row:last-child { border-bottom: none; }

.status-key {
  font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.2px;
  color: #b890a8; flex-shrink: 0;
}
.status-value { font-size: 10pt; color: var(--fg); text-align: right; }

/* ── LINK LIST ─────────────────────────────── */
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { border-bottom: 1px solid rgba(180,150,200,0.10); }
.link-list li:last-child { border-bottom: none; }

.link-list a {
  position: relative;
  display: block;
  padding: 6px 10px;
  font-size: 10pt; font-weight: 500;
  color: #7a6a8a;
  border-radius: 8px;
  overflow: hidden;
  z-index: 0;
  transition: color .22s, padding-left .22s;
}
[data-theme="dark"] .link-list a { color: #c0b0d8; }

.link-list a::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.30);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-radius: 8px;
  opacity: 0; z-index: -1;
  transition: opacity .22s;
}
[data-theme="dark"] .link-list a::before { background: rgba(180,150,220,0.10); }

.link-list a::after {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 3px; border-radius: 999px;
  background: var(--gradient);
  z-index: -1;
  transform: scaleY(0) translateX(-2px);
  transform-origin: center;
  transition: transform .22s cubic-bezier(.34,1.56,.64,1);
}

.link-list a:hover              { color: var(--accent); padding-left: 18px; }
[data-theme="dark"] .link-list a:hover { color: #e8d8f8; }
.link-list a:hover::before      { opacity: 1; }
.link-list a:hover::after       { transform: scaleY(1) translateX(0); }

/* ── NOW PLAYING ───────────────────────────── */
.nowplaying { display: flex; gap: 11px; align-items: center; }

.nowplaying-art {
  width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 3px 10px rgba(190,150,210,0.30);
}
.nowplaying-title  { font-size: .83rem; color: #4a3858; }
[data-theme="dark"] .nowplaying-title { color: #e8daf4; }

.nowplaying-artist {
  font-size: 9px; letter-spacing: 1px; text-transform: uppercase;
  color: #b890a8; margin-top: 2px;
}
.nowplaying-bars { display: flex; align-items: flex-end; gap: 2px; height: 12px; margin-top: 7px; }
.nowplaying-bar  { width: 3px; background: var(--accent); border-radius: 2px; animation: eq var(--d,.8s) ease-in-out infinite alternate; }

#listening { 
}

  #back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #333;
    color: #fff;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    
    /* Animation properties */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  #back-to-top:hover {
    background-color: #555;
    transform: translateY(-3px);
  }

  /* This class will be added by JS to show the button */
  #back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
  }
  
    /* The tooltip box */
  /* The tooltip box */
.custom-tooltip {
  /* Match your site's design tokens */
  padding: 8px 12px;
  background: var(--card);
  color: var(--fg);
  border-radius: 10px;
  font-size: 13px;
  white-space: nowrap;
  border: 1px solid var(--card-border);
  box-shadow:
    0 4px 12px rgba(0,0,0,0.18),
    0 0 0 1px rgba(200,170,220,0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity .2s ease, transform .2s ease;

  /* Essential for the positioning logic */
  position: fixed;      /* Ensures the tooltip follows your mouse */
  z-index: 9999;        /* Ensures it stays on top of other content */
  pointer-events: none; /* Prevents the tooltip from blocking mouse clicks */
        
  /* Starting state (Hidden) */
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
}

/* Dark theme adjustments (optional but explicit) */
[data-theme="dark"] .custom-tooltip {
  background: var(--card);
  color: var(--fg);
  border-color: var(--card-border);
  box-shadow:
    0 6px 20px rgba(0,0,0,0.45),
    0 0 0 1px rgba(100,70,130,0.35);
}

/* This class will be added by JS to show the tooltip */
.custom-tooltip.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.about-shell {
  max-width: 900px;
  margin: 0 auto 30px;
}

.about-maincard {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  background: rgba(49,81,109, 0.27);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5.8px);
  -webkit-backdrop-filter: blur(5.8px);
  border: 1px solid rgba(21,20,18, 0.81);
  border-radius: 10px;
  padding: 18px;
  color: #dcdcdc;
}

.about-avatar-wrap {
  flex: 0 0 260px;
  text-align: center;
}

.about-avatar {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #31516d;
  box-shadow: 0 10px 25px rgba(0,0,0,0.45);
  animation: float 6s ease-in-out infinite;
  animation-duration: 2.5s;
}

.about-avatar-tag {
  margin-top: 10px;
  font-size: 13px;
  color: #d0d0d0;
}

.about-avatar-name {
  display: block;
  font-weight: 600;
  font-size: 15px;
}

.about-avatar-alias {
  display: block;
  font-size: 12px;
  opacity: 0.8;
}

.about-maintext {
  flex: 1 1 260px;
  font-size: 14px;
  color: #dcdcdc;
}

.about-maintext p {
  margin-bottom: 0.8rem;
}

.about-section {
  margin-top: 1.4rem;
}

.about-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.about-list {
  padding-left: 1.1rem;
  margin: 0;
  list-style: disc;
  font-size: 13px;
}

.about-list li {
  margin-bottom: .35rem;
}

.about-outro {
  margin-top: 1.4rem;
  font-size: 13px;
  color: #b0b0b0;
}

/* extra section wrapper */
.about-extra {
  margin-top: 15px;
}

.about-extra summary {
  cursor: pointer;
  font-size: 13px;
  color: #dcdcdc;
}

.about-extra-inner {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(0,0,0,0.35);
  border: 1px solid #222;
  font-size: 13px;
}

/* responsive tweak to stack avatar + text */
@media (max-width: 700px) {
  .about-maincard {
    flex-direction: column;
    align-items: center;
  }

  .about-avatar-wrap,
  .about-maintext {
    flex: 1 1 auto;
  }

  .about-columns {
    grid-template-columns: 1fr;
  }
}

.header-status {
  position: absolute;
  bottom: 16px; right: 20px;
  z-index: 2;
  background: rgba(255,255,255,0.42);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 12px; padding: 10px 16px;
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: 0 4px 20px rgba(180,140,210,0.20);
 max-width: 240px;
}
[data-theme="dark"] .header-status {
  background: rgba(20,14,32,0.55);
  border-color: rgba(120,90,160,0.35);
}

.header-status-title {
  display: block;
  font-size: 8px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: #9a80a8; margin-bottom: 7px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(180,150,200,0.25);
}

.header-status-row {
  display: flex; justify-content: space-between;
  align-items: baseline; gap: 10px;
  padding: 2.5px 0;
}

.header-status-key {
  font-size: 8px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: #b890a8; flex-shrink: 0;
  font-family: var(--font-sans);
}

.header-status-val {
  font-size: 9pt; color: #3a2848;
  text-align: right;
  font-family: var(--font-sans);
}
[data-theme="dark"] .header-status-val { color: #ede0f8; }

/* ── FOOTER ────────────────────────────────── */
#footer {
  padding: 14px 22px; text-align: center;
  background: linear-gradient(180deg, rgba(230,225,245,0.80), rgba(210,220,245,0.80));
  color: var(--fg); font-size: 11.5px; letter-spacing: .4px;
  border-top: 1px solid rgba(180,150,200,0.22);
  transition: background .4s;
}
[data-theme="dark"] #footer {
  background: linear-gradient(180deg, rgba(28,20,42,0.90), rgba(22,16,34,0.90));
  border-color: rgba(100,70,140,0.28);
}
#footer a     { color: var(--accent); font-size: 11.5px; }
#footer a:hover { color: var(--accent-hover); }
.heart        { color: var(--accent); }

/* ── KEYFRAMES ─────────────────────────────── */
@keyframes pulse { 0%,100%{opacity:1}  50%{opacity:.4} }
@keyframes eq    { from{height:2px}    to{height:12px} }
@keyframes rise  { from{opacity:0;} to{opacity:1;} }

/* ── RESPONSIVE ────────────────────────────── */
@media (max-width: 700px) {
  body { padding: 0 0 40px; }
  #site { border-radius: 0; }
  .layout { grid-template-columns: 1fr; }
  .entry  { grid-template-columns: 1fr; }
  .entry-cover { aspect-ratio: 16/7; border-right: none; border-bottom: 1px solid rgba(180,150,200,0.22); }
  #topbar { left: 50%; padding: 7px 14px; }
  #topmenu a { font-size: 12px; padding: 4px 8px; }
}