@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

* {
  box-sizing: border-box;
}

/* Custom Palette Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #371e13; /* Coffee */
}
::-webkit-scrollbar-thumb {
  background: #5e2a25; /* Maroon */
  border-radius: 5px;
  border: 1px solid #c0aa8a; /* Clay Dust */
}

body {
  background-color: #371e13; /* Coffee */
  /* Soft subtle grid in Maroon accent */
  background-image: 
    linear-gradient(rgba(94, 42, 37, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 42, 37, 0.4) 1px, transparent 1px);
  background-size: 18px 18px;
  font-family: 'VT323', monospace;
  font-size: 21px;
  color: #371e13; /* Coffee text for readability on light cards */
  margin: 0;
  padding: 18px;
}

/* Master Layout Grid */
.layout {
  display: flex;
  max-width: 1050px;
  margin: 0 auto;
  gap: 18px;
}

/* --- SIDEBAR NAVIGATION --- */
aside {
  width: 250px;
  flex-shrink: 0;
  background: #c0aa8a; /* Clay Dust */
  border: 3px solid #5e2a25; /* Maroon */
  border-radius: 12px;
  padding: 14px;
  box-shadow: 4px 4px 0px #1d0f0a;
  height: fit-content;
}

.sidebar-title {
  font-size: 28px;
  color: #5e2a25; /* Maroon */
  text-align: center;
  margin: 0 0 12px 0;
  border-bottom: 2px dashed #5e2a25;
  padding-bottom: 6px;
  letter-spacing: 1px;
}

.nav-menu {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
}

.nav-menu li {
  margin-bottom: 8px;
}

.nav-menu a {
  display: block;
  background: #e1d3a9; /* Creme */
  color: #371e13; /* Coffee */
  text-decoration: none;
  padding: 6px 10px;
  border: 1px solid #5e2a25; /* Maroon */
  border-radius: 8px;
  font-size: 22px;
  transition: all 0.2s ease;
}

.nav-menu a:hover, .nav-menu a.active {
  background: #5e2a25; /* Maroon */
  color: #e1d3a9; /* Creme */
  padding-left: 14px;
}

/* Sidebar Cute Widget Box */
.sidebar-widget {
  background: #e1d3a9; /* Creme */
  border: 2px solid #5e2a25; /* Maroon */
  border-radius: 8px;
  padding: 10px;
  margin-top: 12px;
  font-size: 18px;
  color: #371e13;
}

.widget-header {
  color: #5e2a25; /* Maroon */
  margin: 0 0 6px 0;
  font-size: 20px;
  border-bottom: 1px dashed #5e2a25;
}

/* Pixel Frames */
.pixel-frame {
  image-rendering: pixelated;
  border: 2px solid #5e2a25; /* Maroon */
  border-radius: 6px;
  background: #371e13;
  display: block;
  margin: 6px auto;
}

/* --- MAIN CONTENT CONTAINER --- */
main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Clay Dust Card Containers */
.academic-card {
  background: #c0aa8a; /* Clay Dust */
  border: 3px solid #5e2a25; /* Maroon */
  border-radius: 12px;
  padding: 18px;
  box-shadow: 4px 4px 0px #1d0f0a;
  position: relative;
  color: #371e13; /* Coffee */
}

.academic-card h1, .academic-card h2 {
  color: #5e2a25; /* Maroon */
  margin-top: 0;
  margin-bottom: 12px;
  border-bottom: 2px dashed #5e2a25;
  font-size: 28px;
  letter-spacing: 1px;
}

/* --- CREME NOTEBOOK PAGE (ONLY FOR WRITING PAGE) --- */
.notebook-page {
  background-color: #e1d3a9; /* Creme */
  /* Maroon horizontal notebook lines + Coffee margin line */
  background-image: 
    linear-gradient(rgba(94, 42, 37, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, #5e2a25 1px, transparent 1px);
  background-size: 100% 28px, 100% 100%;
  background-position: 0 0, 48px 0;
  border: 2px solid #5e2a25;
  border-radius: 8px;
  padding: 16px 16px 16px 62px;
  line-height: 28px;
  box-shadow: 4px 4px 0px #1d0f0a;
  color: #371e13; /* Coffee */
  position: relative;
}

.notebook-page::before {
  content: "•\a•\a•\a•\a•\a•";
  white-space: pre;
  position: absolute;
  left: 14px;
  top: 12px;
  color: #5e2a25;
  font-size: 22px;
  line-height: 38px;
}

/* Cute Pixel Buttons */
.pixel-btn {
  background: #e1d3a9; /* Creme */
  color: #371e13; /* Coffee */
  border: 2px solid #5e2a25; /* Maroon */
  border-radius: 6px;
  padding: 5px 12px;
  font-family: 'VT323', monospace;
  font-size: 20px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  margin: 3px;
  transition: all 0.15s ease;
}

.pixel-btn:hover {
  background: #5e2a25; /* Maroon */
  color: #e1d3a9; /* Creme */
}

/* Audio Player Stylings */
.audio-player-box {
  background: #e1d3a9;
  border: 2px solid #5e2a25;
  border-radius: 8px;
  padding: 12px;
  margin-top: 10px;
}

/* Status / Stats Grid */
.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  font-size: 19px;
}

footer {
  text-align: center;
  font-size: 17px;
  color: #c0aa8a; /* Clay Dust */
  margin-top: 25px;
  border-top: 2px dashed #5e2a25;
  padding-top: 12px;
}

@media (max-width: 720px) {
  .layout { flex-direction: column; }
  aside { width: 100%; }
  .status-grid { grid-template-columns: 1fr; }
}