/* =====================
   COLOR SYSTEM
===================== */
:root {
  --bg: #0b0c11;
  --bg-soft: #141620;
  --panel: rgba(25, 28, 40, 0.75);
  --text: #e6e8f2;
  --accent: #ff77bb;
  --accent-soft: rgba(255, 119, 187, 0.15);
  --border: #2a2d3a;
  --glow: rgba(255, 119, 187, 0.25);
}
.light {
  --bg: #f3f4fb;
  --bg-soft: #ffffff;
  --panel: rgba(255, 255, 255, 0.8);
  --text: #242436;
  --accent: #ff5ca8;
  --accent-soft: rgba(255, 92, 168, 0.15);
  --border: #dedff0;
  --glow: rgba(255, 92, 168, 0.25);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, sans-serif;
  scroll-behavior: smooth;
}
body {
  display: flex;
  background: radial-gradient(circle at 20% 10%, rgba(255, 119, 187, 0.08), transparent 40%), radial-gradient(circle at 80% 90%, rgba(120, 160, 255, 0.08), transparent 40%), var(--bg);
  color: var(--text);
  min-height: 100vh;
  transition: background 0.5s ease, color 0.5s ease;
}
/* tech grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  background: radial-gradient(circle at center, rgba(255, 110, 246, 0), #00c3ff1c 60%);
  pointer-events: none;
  z-index: -10;
  /*
  animation: fanSpin 20s linear infinite;
  width: 200vw;
  height: 200vw;
  */
}
/* =====================
   SIDEBAR
===================== */
.sidebar {
  width: 260px;
  background: var(--panel);
  backdrop-filter: blur(14px);
  border-right: 1px solid var(--border);
  padding: 30px 20px;
  position: fixed;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.logo {
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 30px;
}
.sidebar a,
.nav a,
.socials a {
  display: block;
  padding: 10px 14px;
  margin-bottom: 8px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  transition: 0.25s ease;
}
.nav a:hover,
.socials a {
  background: var(--accent-soft);
  transform: translateX(6px);
}
.paw {
  opacity: 0;
  margin-right: 6px;
  transform: translateX(-6px);
  transition: 0.25s;
}
.nav a:hover .paw {
  opacity: 1;
  transform: translateX(0);
}
.toggle {
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
}
/* =====================
   CONTENT
===================== */
.content {
  margin-left: 260px;
  padding: 60px;
  max-width: 1000px;
}
section {
  margin-bottom: 100px;
  transform: translateY(20px);
  transition: 0.8s ease;
}
section.visible {
  opacity: 1;
  transform: translateY(0);
}
h2 {
  color: var(--accent);
  margin-bottom: 20px;
}
h3 {
  padding-top: 10px;
  margin-bottom: 10px;
}
p {
  white-space: pre-line;
}
#more-info ul li {
  margin-left: 2em;
}
#more-info ul li ul li {
  margin-left: 2em;
}
/* =====================
   CHARACTER SHEET
===================== */
.sheet {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
  background: var(--panel);
  backdrop-filter: blur(10px);
  border-radius: 22px;
  padding: 25px;
  border: 1px solid var(--border);
  box-shadow: 0 0 25px var(--glow);
}
.avatar-wrapper {
  position: relative;
}
.avatar {
  width: 100%;
  border-radius: 16px;
  border: 2px solid var(--accent);
}
/* tail wag */
.tail {
  position: absolute;
  bottom: 10px;
  right: -10px;
  font-size: 28px;
  transform-origin: left center;
}
.wag {
  animation: wag 0.6s ease 4;
}
@keyframes wag {
  0% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(20deg);
  }
  100% {
    transform: rotate(0deg);
  }
}
/* stickers */
.sticker {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-soft), rgba(255, 255, 255, 0.05));
  border: 1px solid var(--border);
  margin: 4px 6px 0 0;
  transition: 0.3s;
}
.sticker:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px var(--glow);
}
/* =====================
   GALLERY
===================== */
.slider {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--border);
}
.slides {
  display: flex;
  transition: transform 0.5s ease;
}
.slides img {
  width: 100%;
  flex-shrink: 0;
}
.slider-buttons {
  margin-top: 10px;
  text-align: center;
}
/* =====================
   SOCIALS
===================== */
.socials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}
.socials a {
  text-decoration: none;
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--border);
}
/* =====================
   SLEEP MODE
===================== */
.sleep {
  filter: brightness(0.7) saturate(0.9);
}
.sleep::after {
  content: "sleep mode...";
  position: fixed;
  bottom: 20px;
  right: 25px;
  font-size: 0.8rem;
  opacity: 0.4;
}
@keyframes fanSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.modal-view {
  display: block;
  width: 100%;
  height: 100%;
  position: fixed;
  z-index: 5000;
  background-color: #00000069;
  overflow: hidden;
}
.modal-view .modal-text {
  width: 800px;
  margin: auto;
  background-color: var(--panel);
  height: 100%;
  overflow-y: scroll;
}
/* =====================
   TERMINAL BOOT SCREEN
===================== */
/* =====================
   ADVANCED BOOT SCREEN
===================== */
#boot {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #141620, #0b0c11);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.boot-terminal,
.shutdown-terminal {
  font-family: monospace;
  font-size: 14px;
  color: #ff77bb;
  width: min(90%, 650px);
  line-height: 1.6;
  min-height: 180px;
}
#boot-output,
#shutdown-output {
  white-space: pre-wrap;
  /*min-height: 180px;*/
}
.boot-stats {
  margin-top: 10px;
  font-size: 12px;
  opacity: 0.8;
  display: flex;
  gap: 20px;
}
.led {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #300;
  box-shadow: 0 0 5px #000;
  transition: 0.1s;
}
.led.active {
  background: #ff4d88;
  box-shadow: 0 0 8px #ff77bb;
}
.boot-cursor {
  display: inline-block;
  margin-left: 4px;
  animation: blink 1s steps(2, start) infinite;
}
@keyframes blink {
  to {
    visibility: hidden;
  }
}
.shutdown-btn {
  margin-top: 10px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
}
#shutdown-screen {
  position: fixed;
  inset: 0;
  background: #0b0c11;
  color: #ff77bb;
  font-family: monospace;
  font-size: 14px;
  padding: 40px;
  display: none;
  z-index: 99999;
  opacity: 0;
  transition: opacity 1s ease;
  align-items: center;
  justify-content: center;
}
#shutdown-screen.active {
  display: flex;
  opacity: 1;
  transition: opacity 1s ease;
}
.shutdown-message {
  margin-top: 40px;
  opacity: 0.7;
  font-size: 13px;
}
.power-button {
  margin-top: 30px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #333;
  background: #111;
  color: #ff77bb;
  cursor: pointer;
}
.blogging .content {
  max-width: 1200px;
}
.blogging .content .breadcrumbs a,
.blogging .content .breadcrumbs a:visited {
  color: var(--text);
}
.blogging .content .blog-container {
  display: flex;
  gap: 50px;
  padding: 60px;
}
.blogging .content .blog-container .blog {
  min-width: 800px;
}
.blogging .content .blog-container .blog .title_bg {
  width: 100%;
  box-sizing: unset;
  max-width: 1200px;
  position: relative;
  height: 150px;
}
.blogging .content .blog-container .blog .title_bg img {
  width: calc(100% + 40px);
  position: absolute;
  z-index: -1;
  -webkit-mask-image: -webkit-gradient(linear, left top, left bottom, from(#000000), to(rgba(0, 0, 0, 0)));
  mask-image: linear-gradient(to bottom, #000000, rgba(0, 0, 0, 0));
  min-height: 150px;
  margin: 0 -20px;
  border: 1px solid var(--border);
}
.blogging .content .blog-container .blog p {
  padding-bottom: 10px;
  text-align: justify;
}
.blogging .content .blog-container .blog blockquote {
  margin: 10px;
  border-left: 5px solid var(--accent);
  padding-left: 10px;
}
.blogging .content .blog-container .toc-box {
  position: relative;
  width: 225px;
  flex-shrink: unset;
  flex-shrink: 0;
}
.blogging .content .blog-container .toc-box .toc {
  width: 225px;
  border: 1px solid var(--border);
  padding: 5px;
  position: fixed;
  background: var(--panel);
  font-size: 12px;
  padding: 10px;
  list-style: none;
}
.blogging .content .blog-container .toc-box .toc a,
.blogging .content .blog-container .toc-box .toc a:visited {
  color: var(--text);
}
.blogging .content .blog-container .toc-box .toc > li > ul > li {
  padding-left: 10px;
  list-style: none;
}
.blogging .content .related_tags {
  padding: 10px 60px;
  margin-top: 10px;
  background-image: linear-gradient(292deg, rgba(255, 255, 255, 0) 0%, var(--glow) 50%, rgba(255, 255, 255, 0) 100%);
  text-transform: uppercase;
  font-size: smaller;
}
.blogging .content .related_tags div {
  display: inline;
}
.blogging .content .related_tags div span.tag a {
  color: var(--accent);
  text-transform: uppercase;
  margin-right: 1em;
}
.blogging .content .related_posts {
  padding: 30px 60px;
  border-top: 1px solid var(--text);
  margin-top: 30px;
}
.blogging .content .related_posts ul {
  list-style: none;
  color: var(--text);
}
.blogging .content .related_posts ul li a {
  color: var(--text);
}
.entry {
  padding: 5px;
  border: 1px solid var(--accent-soft);
  margin: 10px 0px;
  color: var(--text);
  text-decoration: none;
  position: relative;
}
.entry .date {
  position: absolute;
  right: 0;
  top: 0;
  background-image: linear-gradient(to right, rgba(255, 0, 0, 0), var(--accent));
  width: 9em;
  text-align: right;
  padding: 5px;
}
.tag-clusters {
  display: grid;
  gap: 2rem;
}
.tag-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.youtube {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}
/* Videos layout */
.video-layout {
  display: flex;
  border: 1px solid var(--border);
  box-shadow: 3px 3px 3px 0px rgba(0, 0, 0, 0.9);
}
.video-list {
  width: 220px;
  background: var(--panel);
  padding: 10px;
}
.video-item {
  padding: 10px;
  cursor: pointer;
  transition: 0.2s;
}
.video-item:hover {
  background: var(--soft);
}
.video-player {
  flex: 1;
}
.emoji {
  width: 24px;
  height: 24px;
  display: inline-block;
}
.musical-link {
  display: inline-block;
  position: relative;
  text-decoration: none;
  font-weight: bold;
  color: var(--accent);
  /* Spotify green for the vibe */
  transition: transform 0.2s ease;
}
.musical-link span {
  font-size: 0.5rem;
  line-height: 1em;
  text-align: justify;
  position: absolute;
  margin-top: -5px;
}
/* 1. The Bounce Effect */
.musical-link:hover {
  animation: bounce 0.4s infinite alternate;
}
@keyframes bounce {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-5px);
  }
}
/* 2. The Music Notes */
.musical-link::before,
.musical-link::after {
  content: '♪';
  position: absolute;
  top: 0;
  opacity: 0;
  pointer-events: none;
}
.musical-link::after {
  content: '♫';
  right: -10px;
}
.musical-link::before {
  left: -10px;
}
/* 3. The "Floating Away" Animation */
.musical-link:hover::before {
  animation: float-note 1s ease-out infinite;
}
.musical-link:hover::after {
  animation: float-note 1.2s ease-out infinite 0.2s;
  /* Slight delay */
}
@keyframes float-note {
  0% {
    transform: translateY(0) scale(0.5);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: translateY(-40px) translateX(10px) rotate(20deg);
    opacity: 0;
  }
}
/* === Neon Pink CodeHilite Theme === */
.codehilite {
  background: #0b0c11;
  color: #f8f8f2;
  padding: 1em;
  border: 1px solid rgba(255, 20, 147, 0.25);
  box-shadow: 0 0 20px rgba(255, 20, 147, 0.12);
  overflow-x: auto;
  font-family: "Fira Code", monospace;
  line-height: 1.5;
}
/* Optional line numbers */
.codehilite .linenodiv {
  padding-right: 10px;
  color: #44475a;
}
/* === Comments === */
.codehilite .c,
.codehilite .cm,
.codehilite .c1 {
  color: #6a6f85;
  font-style: italic;
}
/* === Keywords === */
.codehilite .k,
.codehilite .kd,
.codehilite .kn,
.codehilite .kp,
.codehilite .kr {
  color: #ff2ea6;
  text-shadow: 0 0 6px rgba(255, 46, 166, 0.7);
}
/* === Operators === */
.codehilite .o {
  color: #ff2ea6;
}
/* === Strings === */
.codehilite .s,
.codehilite .sb,
.codehilite .sc,
.codehilite .s2 {
  color: #ff9cd6;
}
/* === Numbers === */
.codehilite .m,
.codehilite .mi,
.codehilite .mf {
  color: #ff4db8;
}
/* === Functions === */
.codehilite .nf {
  color: #ff6ec7;
  text-shadow: 0 0 6px rgba(255, 110, 199, 0.6);
}
/* === Classes === */
.codehilite .nc {
  color: #ff79c6;
}
/* === Variables / Names === */
.codehilite .n {
  color: #ffd6f5;
}
/* Builtins */
.codehilite .nb {
  color: #ff85d1;
}
/* Constants */
.codehilite .no {
  color: #ff85d1;
}
/* Attributes */
.codehilite .na {
  color: #ff79c6;
}
/* Tags (HTML/XML) */
.codehilite .nt {
  color: #ff2ea6;
}
/* Attribute values */
.codehilite .nv {
  color: #ffb3e6;
}
/* === Errors === */
.codehilite .err {
  background: #ff2ea6;
  color: #0b0c11;
}
/* === Generic (diffs etc.) === */
.codehilite .gd {
  color: #ff4d6d;
}
/* deleted */
.codehilite .gi {
  color: #5cffb3;
}
/* inserted */
/* === Selection === */
.codehilite ::selection {
  background: rgba(255, 20, 147, 0.3);
}
