@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;600&family=Reenie+Beanie&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  display: flex;
  font-family: 'Caveat', cursive;
  background: #e8e0d0;
  color: #2c2c2c;
  min-height: 100vh;
}

#sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 210px;
  min-width: 210px;
  padding: 2.5rem 1.2rem;
  background: #ede5d8;
  border-right: 3px solid #c9b99a;
  z-index: 1;
  overflow-y: auto;
}

#sidebar::-webkit-scrollbar { width: 5px; }
#sidebar::-webkit-scrollbar-track { background: #ede5d8; }
#sidebar::-webkit-scrollbar-thumb { background: #c9b99a; border-radius: 10px; }
#sidebar::-webkit-scrollbar-thumb:hover { background: #a89070; }

#sidebar h2 {
  font-family: 'Reenie Beanie', cursive;
  font-size: 1.2rem;
  color: #8a7560;
  margin-bottom: 1rem;
}

#sidebar ul { list-style: none; }
#sidebar ul li { margin-bottom: 0.5rem; }

.sidebar-divider {
  border: none;
  border-top: 1.5px dashed #c9b99a;
  margin: 1.2rem 0;
}

.nav-link {
  text-decoration: none;
  font-family: 'Caveat', cursive;
  font-size: 1.15rem;
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
  display: block;
  transition: all 0.2s;
  color: #5a4a38;
  font-weight: 600;
}

.nav-link:hover { background: rgba(0,0,0,0.06); }

.nav-link.active {
  background: #c9b99a;
  color: #2c2c2c;
}

.nav-link[href="#anime"]    { color: #c0392b; }
.nav-link[href="#movies"]   { color: #b7770d; }
.nav-link[href="#kdramas"]  { color: #1a6b8a; }
.nav-link[href="#cdmovies"] { color: #6c3483; }
.nav-link[href="#manga"]    { color: #7d3c98; }
.nav-link[href="#books"]    { color: #1e8449; }

/* stats */
.stat-row {
  font-size: 1rem;
  padding: 0.2rem 0.4rem;
  display: flex;
  gap: 0.5rem;
  color: #5a4a38;
}

.stat-total {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: #8a7560;
  padding: 0.4rem 0.4rem 0;
  border-top: 1px dashed #c9b99a;
}

/* pinned note */
.pinned-note {
  background: #fffde7;
  border: 1.5px dashed #c9b99a;
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  margin-top: 0.3rem;
  transform: rotate(-1deg);
}

.pinned-label {
  font-size: 0.8rem;
  color: #8a7560;
  margin-bottom: 0.2rem;
}

.pinned-title {
  font-family: 'Caveat', cursive;
  font-size: 1.05rem;
  font-weight: 600;
  color: #2c2c2c;
  line-height: 1.3;
}

.pinned-ep {
  font-size: 0.85rem;
  color: #8a7560;
  margin-top: 0.2rem;
}

/* journal content */
#content {
  flex: 1;
  padding: 4rem 5rem;
  max-width: 780px;
  margin: 2rem auto;
  height: fit-content;
  min-height: calc(100vh - 4rem);
  background:
    linear-gradient(90deg, transparent 59px, #e8a09a 59px, #e8a09a 61px, transparent 61px),
    repeating-linear-gradient(transparent, transparent 31px, #c9b99a66 31px, #c9b99a66 32px);
  background-color: #faf6ef;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10), 4px 4px 0px #c9b99a;
  border-radius: 2px;
}

#content h1 {
  font-family: 'Reenie Beanie', cursive;
  font-size: 3rem;
  font-weight: 400;
  padding-left: 1.5rem;
  margin-bottom: 0.2rem;
}

.subtitle {
  font-size: 1.1rem;
  color: #8a7560;
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}

/* about page */
.about-text {
  font-size: 1.25rem;
  line-height: 2rem;
  padding-left: 1.5rem;
  max-width: 600px;
}

.about-list {
  list-style: none;
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

.about-list li {
  font-size: 1.2rem;
  line-height: 2rem;
}

.cta {
  display: inline-block;
  margin-left: 1.5rem;
  margin-top: 1rem;
  font-family: 'Reenie Beanie', cursive;
  font-size: 1.5rem;
  color: #c0392b;
  text-decoration: none;
  border-bottom: 2px dashed #c0392b;
  transition: opacity 0.2s;
}

.cta:hover { opacity: 0.7; }

/* tabs */
.tab-buttons {
  display: flex;
  gap: 0.6rem;
  padding-left: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  border-bottom: 1.5px dashed #c9b99a;
  padding-bottom: 1rem;
}

.tab-btn {
  font-family: 'Caveat', cursive;
  font-size: 1.1rem;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  border: 2px solid #c9b99a;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  color: #5a4a38;
}

.tab-btn:hover { background: #ede5d8; }

.tab-btn[data-target="anime"].active    { background: #fdecea; border-color: #c0392b; color: #c0392b; }
.tab-btn[data-target="movies"].active   { background: #fef9e7; border-color: #b7770d; color: #b7770d; }
.tab-btn[data-target="kdramas"].active  { background: #e8f6f9; border-color: #1a6b8a; color: #1a6b8a; }
.tab-btn[data-target="cdmovies"].active { background: #f5eef8; border-color: #6c3483; color: #6c3483; }
.tab-btn[data-target="manga"].active    { background: #f5eef8; border-color: #7d3c98; color: #7d3c98; }
.tab-btn[data-target="books"].active    { background: #eafaf1; border-color: #1e8449; color: #1e8449; }

.tab-section { display: none; padding-left: 1.5rem; }
.tab-section.active { display: block; }

section h2 {
  font-family: 'Reenie Beanie', cursive;
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 0.8rem;
  border-bottom: 2px dashed;
  padding-bottom: 0.3rem;
}

section { margin-bottom: 3rem; padding-left: 1.5rem; }

section#anime    h2 { color: #c0392b; border-bottom-color: #f5b7b1; }
section#movies   h2 { color: #b7770d; border-bottom-color: #f9e4b7; }
section#kdramas  h2 { color: #1a6b8a; border-bottom-color: #a9cce3; }
section#cdmovies h2 { color: #6c3483; border-bottom-color: #d7bde2; }
section#manga    h2 { color: #7d3c98; border-bottom-color: #d7bde2; }
section#books    h2 { color: #1e8449; border-bottom-color: #a9dfbf; }

.media-list { list-style: none; }

.media-list li {
  padding: 0.45rem 0.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 4px;
  transition: background 0.15s;
}

.media-list li:hover { background: rgba(0,0,0,0.04); }

.title { font-size: 1.2rem; }

.country {
  font-size: 0.85rem;
  color: #aaa;
  font-family: 'Caveat', cursive;
  margin-left: 0.4rem;
}

.meta { display: flex; align-items: center; gap: 0.5rem; }

.score {
  font-family: 'Reenie Beanie', cursive;
  font-size: 1rem;
  color: #b7770d;
}

.status {
  font-family: 'Reenie Beanie', cursive;
  font-size: 1rem;
  padding: 0.1rem 0.8rem;
  border-radius: 20px;
}

.status.completed { background: #d4edda; color: #1e8449; }
.status.watching  { background: #fff3cd; color: #856404; }
.status.dropped   { background: #f8d7da; color: #842029; }
.status.planned   { background: #e2e3e5; color: #383d41; }

/* main page scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #e8e0d0; }
::-webkit-scrollbar-thumb { background: #c9b99a; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #a89070; }
