/* --------------------------------------------------
   GLOBAL RESET
-------------------------------------------------- */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Verdana", "Tahoma", sans-serif;

  /* Purple Knots Background */
  background: url("https://retrowpdiaries.neocities.org/purpleknots.jpg") repeat fixed;
  color: #222;
}

/* --------------------------------------------------
   PAGE WRAPPER
-------------------------------------------------- */
#page {
  width: 900px;
  margin: 30px auto;
  background: #fff;
  border: 1px solid #1A0F2E;
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
}

/* --------------------------------------------------
   HEADER
-------------------------------------------------- */
#header {
  background: #4B2E83;
  color: #fff;
  padding: 20px;
  border-bottom: 3px solid #1A0F2E;
}

#header h1 {
  margin: 0;
  font-size: 30px;
}

#header .tagline {
  margin: 5px 0 0;
  font-size: 13px;
}

/* --------------------------------------------------
   LAYOUT
-------------------------------------------------- */
#layout {
  display: grid;
  grid-template-columns: 230px 1fr;
}

/* --------------------------------------------------
   SIDEBAR
-------------------------------------------------- */
#sidebar {
  background: #E8D9FF;
  border-right: 1px solid #1A0F2E;
  padding: 15px;
}

.widget {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px dotted #1A0F2E;
}

.widget-title {
  font-size: 15px;
  margin: 0 0 8px;
  color: #4B2E83;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Sidebar links */
.sidebar-link {
  margin: 4px 0;
}

.sidebar-link a {
  color: #7A4FFF;
  text-decoration: none;
}

.sidebar-link a:hover {
  color: #4B2E83;
  text-decoration: underline;
}

/* Remove list styling */
#sidebar ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

/* --------------------------------------------------
   MAIN CONTENT
-------------------------------------------------- */
#content {
  padding: 20px;
  font-size: 15px;
}

.post {
  margin-bottom: 30px;
}

.post-title {
  margin: 0 0 5px;
  font-size: 22px;
}

.post-title a {
  color: #7A4FFF;
  text-decoration: none;
}

.post-title a:hover {
  color: #4B2E83;
  text-decoration: underline;
}

.post-meta {
  font-size: 12px;
  color: #555;
  margin-bottom: 10px;
}

.post-body p {
  line-height: 1.6;
  font-size: 15px;
}

/* --------------------------------------------------
   PAGINATION (WP 2.0 STYLE)
-------------------------------------------------- */
#pagination {
  margin-top: 30px;
  font-family: "Verdana", "Tahoma", sans-serif;
  overflow: auto; /* ensures floats behave */
}

#pagination .page-link {
  display: inline-block;
  padding: 6px 12px;
  background: #E8D9FF;
  border: 1px solid #1A0F2E;
  color: #4B2E83;
  text-decoration: none;
  font-size: 14px;
}

#pagination .page-link:hover {
  background: #CFA8FF;
  color: #1A0F2E;
}

.newer-posts {
  float: left;
}

.older-posts {
  float: right;
}

/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */
#footer {
  background: #D8D2E8;
  border-top: 1px solid #1A0F2E;
  padding: 10px 20px;
  font-size: 12px;
  color: #1A0F2E;
  text-align: center;
}

/* --------------------------------------------------
   CALENDAR
-------------------------------------------------- */
#calendar {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

#calendar th {
  background: #4B2E83;
  color: #fff;
  padding: 4px;
  text-align: center;
}

#calendar td {
  border: 1px solid #1A0F2E;
  text-align: center;
  padding: 4px;
  background: #E8D9FF;
}

#calendar .today {
  background: #CFA8FF;
  border: 1px solid #7A4FFF;
  font-weight: bold;
}

/* --------------------------------------------------
   TAG CLOUD
-------------------------------------------------- */
#tag-cloud a {
  display: inline-block;
  margin: 3px;
  color: #7A4FFF;
  text-decoration: none;
}

#tag-cloud a:hover {
  color: #4B2E83;
  text-decoration: underline;
}

/* --------------------------------------------------
   CATEGORY LIST
-------------------------------------------------- */
#category-list a {
  color: #7A4FFF;
  text-decoration: none;
}

#category-list a:hover {
  color: #4B2E83;
  text-decoration: underline;
}

/* --------------------------------------------------
   READING WIDGET
-------------------------------------------------- */
.reading-item {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  padding: 10px;
  background: #E8D9FF;
  border: 1px solid #1A0F2E;
  border-radius: 4px;
}

.book-cover,
.reading-cover img {
  width: 60px;
  height: auto;
  border: 1px solid #1A0F2E;
  border-radius: 3px;
  display: block;
}

.reading-info {
  flex: 1;
  font-size: 14px;
}

.reading-title {
  margin: 0 0 6px;
  line-height: 1.3;
}

.reading-link a {
  color: #7A4FFF;
  text-decoration: none;
}

.reading-link a:hover {
  color: #4B2E83;
  text-decoration: underline;
}

.reading-progress {
  width: 100%;
  height: 8px;
  background: #D8D2E8;
  border-radius: 4px;
  margin: 6px 0;
  overflow: hidden;
}

.reading-progress-bar {
  height: 100%;
  background: #7A4FFF;
  transition: width 0.4s ease;
}

/* --------------------------------------------------
   ARCHIVE LIST
-------------------------------------------------- */
.archive-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.archive-list li {
  margin: 4px 0;
}

.archive-list a {
  text-decoration: none;
  color: #333;
}

.archive-list a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------
   EXTRA SPACING FIXES
-------------------------------------------------- */
#calendar-widget {
  margin-bottom: 20px;
}
