/* ---------- palette pulled from the sketch of how I want my page to look like ---------- */
:root{
  --red: #ee0000;
  --pink: #ea00a7;
  --sidebar-bg: #0c0000;
  --sidebar-bg-2: #180000;
  --card-bg: #171111;
  --olive-bg: #1b2700;
  --charcoal: #201b1a;
  --text-soft: #cfc6b8;

  --rb1: #f30000; /* red     */
  --rb2: #f46c00; /* orange  */
  --rb3: #f4bd00; /* gold    */
  --rb4: #63e600; /* green   */
  --rb5: #02e8ac; /* teal    */
  --rb6: #1c4bf2; /* blue    */
  --rb7: #8300f2; /* purple  */
  --rb8: #f200cf; /* magenta */

  --font-script: 'Lobster', cursive;
  --font-marker: 'Permanent Marker', cursive;
  --font-body: 'Nunito', sans-serif;

  --sidebar-w: 320px;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: #000;
  font-family: var(--font-body);
  color: var(--text-soft);
}

a{ text-decoration: none; }
button{ font: inherit; }

img{ display: block; max-width: 100%; }

/* rainbow word headings masked with the rainbow texture */
.rb-head{
  display: inline-block;
  margin: 0 0 14px;
  font-family: var(--font-marker);
  font-size: 1.55rem;
  letter-spacing: .5px;
  background: url('rainbowtext.jpg') center / cover;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* flat rainbow-cycle colors for the nav + list entries, same 8 colors
   repeating so an entry is always the same color wherever it shows up? */
.rb-1{ --c: var(--rb1); }
.rb-2{ --c: var(--rb2); }
.rb-3{ --c: var(--rb3); }
.rb-4{ --c: var(--rb4); }
.rb-5{ --c: var(--rb5); }
.rb-6{ --c: var(--rb6); }
.rb-7{ --c: var(--rb7); }
.rb-8{ --c: var(--rb8); }
.rb-1, .rb-2, .rb-3, .rb-4, .rb-5, .rb-6, .rb-7, .rb-8{ color: var(--c); }

/* ================= sidebar (fixed) ================= */
#sidebar{
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  overflow-y: auto;
  padding: 26px 24px 60px;
  background: linear-gradient(180deg, var(--sidebar-bg), var(--sidebar-bg-2));
  scrollbar-width: thin;
}

.pill{
  display: block;
  text-align: center;
  background: var(--red);
  color: #0c0000;
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: 1px;
  padding: 11px 0;
  border-radius: 999px;
  margin-bottom: 26px;
}
.pill:hover{ filter: brightness(1.1); }

.pfp-small{
  width: 190px;
  height: 190px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 30px;
  background: #000;
}
.pfp-small img{ width: 100%; height: 100%; object-fit: cover; }

#sidebar h4.rb-head{ margin-top: 18px; }
#sidebar h4.rb-head:first-of-type{ margin-top: 0; }

.nav-list{
  list-style: none;
  margin: 0 0 6px;
  padding: 0;
}
.nav-list li{ margin: 9px 0; }
.nav-list a{
  font-family: var(--font-marker);
  font-size: 1.15rem;
}
.nav-list a:hover{ filter: brightness(1.25); }
.nav-list a.is-active{ text-shadow: 0 0 10px currentColor; }

/* ================= right side (scrolls) ================= */
#content{
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  background: #000;
}

.banner{
  width: 100%;
  height: 300px;
  overflow: hidden;
}
.banner img{ width: 100%; height: 100%; object-fit: cover; }

.header-row{
  position: relative;
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: -130px;
  padding: 0 44px 30px;
}

.pfp-big{
  width: 230px;
  height: 230px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #000;
  box-shadow: 0 8px 26px rgba(0,0,0,.55);
}
.pfp-big img{ width: 100%; height: 100%; object-fit: cover; }

.header-text{ padding-bottom: 10px; }

h1.script{
  font-family: var(--font-script);
  color: var(--pink);
  font-size: 3.4rem;
  margin: 0 0 2px;
  line-height: 1;
}
.handle{
  font-weight: 700;
  color: var(--red);
  margin: 0 0 14px;
}

.shh-pill{
  font-family: var(--font-script);
  font-size: 1.3rem;
  color: var(--rb3);
  background: var(--charcoal);
  border: none;
  border-radius: 999px;
  padding: 8px 28px;
  cursor: pointer;
  margin-bottom: 14px;
}
.shh-pill:hover{ filter: brightness(1.2); }

.icon-row{ display: flex; gap: 12px; }
.icon-circle{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-circle:hover{ filter: brightness(1.3); }

.quote-bar{
  align-self: flex-start;
  margin: 0 0 auto auto;
  max-width: 420px;
  background: rgba(12,0,0,.85);
  color: var(--pink);
  font-style: italic;
  font-size: .95rem;
  line-height: 1.5;
  padding: 16px 20px;
  border-radius: 14px;
}

/* ================= cards ================= */
.card-stack{
  background: var(--olive-bg);
  padding: 46px 44px 90px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.card{
  background: var(--card-bg);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  gap: 24px;
  scroll-margin-top: 20px;
}

.card-pic{
  width: 230px;
  height: 230px;
  flex-shrink: 0;
  border-radius: 16px;
  overflow: hidden;
}
.card-pic img{ width: 100%; height: 100%; object-fit: cover; }

.card-body{ flex: 1; min-width: 0; }

/* --- collapsed / list state --- */
.card-list-view{ flex-direction: column; height: 100%; }
.card-list-view:not([hidden]){ display: flex; }
.card-list{
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}
.card-list li{ margin: 10px 0; }
.card-list a{
  font-family: var(--font-marker);
  font-size: 1.4rem;
}
.card-list a:hover{ filter: brightness(1.25); }

.open-btn{
  align-self: stretch;
  background: var(--pink);
  color: #170010;
  font-family: var(--font-script);
  font-size: 1.3rem;
  border: none;
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
  margin-top: 12px;
}
.open-btn:hover{ filter: brightness(1.1); }

/* --- opened / entry state --- */
.card-open-top{
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 6px;
}

.entry-tabs{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}
.entry-tab{
  font-family: var(--font-marker);
  background: transparent;
  border: 2px solid var(--c);
  color: var(--c);
  padding: 5px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: .9rem;
}
.entry-tab:hover{ filter: brightness(1.2); }
.entry-tab.active{
  background: var(--c);
  color: #16100f;
}

.close-btn{
  background: var(--charcoal);
  color: var(--text-soft);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
}
.close-btn:hover{ filter: brightness(1.3); }

.entry-panel{
  min-height: 180px;
  padding: 18px 2px 4px;
  line-height: 1.7;
}
.entry-panel p{ margin: 0 0 14px; }
.entry-panel p:last-child{ margin-bottom: 0; }
.entry-panel ul{ margin: 0 0 14px 20px; padding: 0; }
.entry-panel li{ margin: 4px 0; }
.entry-panel h4{
  font-family: var(--font-marker);
  color: var(--rb5);
  font-size: 1.05rem;
  margin: 20px 0 6px;
}
.entry-panel h4:first-child{ margin-top: 0; }
.entry-panel iframe{ max-width: 100%; border-radius: 12px; }
.entry-note{ font-style: italic; opacity: .75; }

.blinkie-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.blinkie-grid img{
  width: 150px;
  height: auto;
  border-radius: 6px;
}

.entry-panel.just-opened{ animation: fade-in .25s ease; }
@keyframes fade-in{ from{ opacity: 0; } to{ opacity: 1; } }

/* divider + gif helpers for whenever text gets filled into a panel */
.divider{
  border: none;
  height: 3px;
  margin: 22px 0;
  border-radius: 3px;
  background: repeating-linear-gradient(
    90deg,
    var(--rb1) 0 12px, var(--rb2) 12px 24px,
    var(--rb3) 24px 36px, var(--rb4) 36px 48px,
    var(--rb5) 48px 60px, var(--rb6) 60px 72px,
    var(--rb7) 72px 84px, var(--rb8) 84px 96px
  );
  opacity: .8;
}

.card-gif{
  max-width: 100%;
  border-radius: 12px;
  border: 2px solid var(--charcoal);
  margin: 14px 0;
}

/* ================= small screens ================= */
@media (max-width: 820px){
  #sidebar{ position: static; width: 100%; height: auto; }
  #content{ margin-left: 0; }
  .header-row{ margin-top: -90px; padding: 0 20px 24px; }
  .pfp-big{ width: 150px; height: 150px; }
  h1.script{ font-size: 2.4rem; }
  .quote-bar{ margin: 18px 0 0; max-width: none; }
  .card{ flex-direction: column; }
  .card-pic{ width: 100%; height: 220px; }
}
