/* === Reset === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* === Base === */
body {
  background-color: var(--bg-color);
  background-image: var(--bg-image);
  background-repeat: repeat;
  color: var(--text-color);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--link-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* === Page Container === */
.xanga-page {
  max-width: 820px;
  margin: 0 auto;
  background: var(--bg-color);
  min-height: 100vh;
  border-left: 1px solid #2a2a4a;
  border-right: 1px solid #2a2a4a;
}

/* === Navbar === */
.xanga-nav {
  text-align: center;
  padding: 16px 16px 12px;
  border-bottom: 1px solid #2a2a4a;
  background: #16162a;
}

.nav-title {
  font-family: var(--font-title);
  font-size: 20px;
  color: var(--title-color);
  margin-bottom: 4px;
}

.nav-links {
  font-size: 12px;
}

.nav-links a {
  color: var(--accent-color);
}

.nav-links a:hover {
  color: var(--link-color);
}

.nav-sep {
  color: #555;
  margin: 0 4px;
}

/* === Content Area === */
.xanga-content {
  display: flex;
  padding: 16px;
  gap: 16px;
  min-height: calc(100vh - 120px);
}

.xanga-content.sidebar-left {
  flex-direction: row;
}

.xanga-content.sidebar-right {
  flex-direction: row-reverse;
}

.xanga-main {
  flex: 1;
  min-width: 0;
}

/* === Sidebar === */
.xanga-sidebar {
  width: 180px;
  flex-shrink: 0;
  font-size: 11px;
}

.sidebar-box {
  background: #16162a;
  border: 1px solid #2a2a4a;
  padding: 12px;
  border-radius: 2px;
}

.sidebar-avatar {
  text-align: center;
  margin-bottom: 8px;
}

.sidebar-avatar img {
  width: 160px;
  height: 160px;
  border-radius: 2px;
  border: 1px solid #2a2a4a;
  object-fit: cover;
}

.sidebar-username {
  text-align: center;
  color: var(--title-color);
  font-weight: bold;
  font-size: 13px;
  margin-bottom: 8px;
}

.sidebar-section {
  border-top: 1px dotted #2a2a4a;
  padding-top: 8px;
  margin-top: 8px;
}

.sidebar-field {
  color: #999;
  line-height: 1.8;
}

.sidebar-heading {
  color: var(--accent-color);
  margin-bottom: 4px;
  font-weight: bold;
}

.sidebar-list {
  list-style: none;
  padding: 0;
}

.sidebar-list li::before {
  content: "· ";
  color: #555;
}

.sidebar-list a {
  color: var(--accent-color);
  font-size: 11px;
}

/* === Posts === */
.post {
  background: #16162a;
  border: 1px solid #2a2a4a;
  padding: 20px;
  margin-bottom: 16px;
  border-radius: 2px;
}

.post-title {
  font-family: var(--font-title);
  font-size: 18px;
  color: var(--title-color);
  margin-bottom: 4px;
  font-weight: normal;
}

.post-title a {
  color: var(--title-color);
}

.post-title a:hover {
  text-decoration: underline;
}

.post-date {
  font-size: 11px;
  color: #666;
  margin-bottom: 16px;
}

.post-body {
  font-size: 14px;
  line-height: 1.7;
  color: #ccc;
  margin-bottom: 12px;
}

.post-body h2 {
  font-family: var(--font-title);
  font-size: 16px;
  color: var(--title-color);
  margin: 20px 0 8px;
}

.post-body h3 {
  font-size: 14px;
  color: var(--accent-color);
  margin: 16px 0 8px;
}

.post-body p {
  margin-bottom: 12px;
}

.post-body a {
  color: var(--link-color);
  text-decoration: underline;
}

.post-body code {
  background: #0d0d1a;
  padding: 2px 6px;
  border-radius: 2px;
  font-size: 13px;
  color: var(--accent-color);
}

.post-body pre {
  background: #0d0d1a;
  padding: 12px;
  border-radius: 2px;
  overflow-x: auto;
  margin-bottom: 12px;
  border: 1px solid #2a2a4a;
}

.post-body pre code {
  background: none;
  padding: 0;
  font-size: 13px;
  color: #ccc;
}

.post-body ul, .post-body ol {
  margin: 0 0 12px 20px;
}

.post-body li {
  margin-bottom: 4px;
}

.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 2px;
}

.post-body blockquote {
  border-left: 3px solid var(--accent-color);
  padding-left: 12px;
  color: #999;
  margin: 12px 0;
}

.post-mood-music {
  font-size: 11px;
  color: #666;
  font-style: italic;
  margin-bottom: 8px;
}

.post-footer {
  font-size: 11px;
  border-top: 1px dotted #2a2a4a;
  padding-top: 8px;
  color: #888;
}

.post-footer a {
  color: var(--accent-color);
}

.post-footer-sep {
  color: #444;
  margin: 0 4px;
}

.post-tags {
  color: #666;
}

/* === eProps === */
.eprops-give {
  color: var(--accent-color);
  cursor: pointer;
}

.eprops-sep {
  color: #444;
  margin: 0 4px;
}

.eprops-count {
  color: var(--link-color);
}

/* === Comments === */
.comments-section {
  margin-top: 16px;
}

.comments-heading {
  font-family: var(--font-title);
  font-size: 16px;
  color: var(--title-color);
  margin-bottom: 12px;
  font-weight: normal;
}

.comments-empty {
  color: #666;
  font-size: 12px;
  font-style: italic;
  margin-bottom: 16px;
}

.comment {
  background: #16162a;
  border: 1px solid #2a2a4a;
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 2px;
}

.comment-header {
  font-size: 11px;
  margin-bottom: 6px;
}

.comment-author {
  color: var(--accent-color);
  font-weight: bold;
}

.comment-sep {
  color: #444;
  margin: 0 4px;
}

.comment-date {
  color: #666;
}

.comment-body {
  font-size: 13px;
  color: #ccc;
  line-height: 1.5;
}

.comment-form {
  background: #16162a;
  border: 1px solid #2a2a4a;
  padding: 16px;
  margin-top: 12px;
  border-radius: 2px;
}

.comment-form-field {
  margin-bottom: 10px;
}

.comment-form-field label {
  display: block;
  font-size: 11px;
  color: #999;
  margin-bottom: 4px;
}

.comment-form-field input,
.comment-form-field textarea {
  width: 100%;
  background: #0d0d1a;
  border: 1px solid #2a2a4a;
  color: var(--text-color);
  padding: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  border-radius: 2px;
}

.comment-form-field input:focus,
.comment-form-field textarea:focus {
  outline: none;
  border-color: var(--accent-color);
}

.comment-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.comment-submit {
  background: var(--accent-color);
  color: #0d0d1a;
  border: none;
  padding: 6px 16px;
  font-size: 12px;
  font-family: var(--font-body);
  cursor: pointer;
  border-radius: 2px;
}

.comment-submit:hover {
  background: var(--link-color);
}

/* === Pagination === */
.pagination {
  text-align: center;
  padding: 16px 0;
  font-size: 12px;
}

.pagination a {
  color: var(--accent-color);
}

/* === Archive === */
.archive {
  padding: 8px 0;
}

.archive-year {
  font-family: var(--font-title);
  font-size: 16px;
  color: var(--title-color);
  margin: 20px 0 12px;
  text-align: center;
  font-weight: normal;
}

.archive-month h3 {
  font-size: 14px;
  color: var(--accent-color);
  margin-bottom: 4px;
  font-weight: normal;
}

.archive-posts {
  list-style: none;
  margin-bottom: 12px;
}

.archive-posts li::before {
  content: "· ";
  color: #555;
}

.archive-posts a {
  color: var(--link-color);
  font-size: 13px;
}

/* === Profile === */
.profile-page {
  padding: 8px 0;
}

.profile-title {
  font-family: var(--font-title);
  font-size: 18px;
  color: var(--title-color);
  margin-bottom: 16px;
  font-weight: normal;
}

.profile-section {
  background: #16162a;
  border: 1px solid #2a2a4a;
  padding: 16px;
  margin-bottom: 12px;
  border-radius: 2px;
}

.profile-section h3 {
  font-size: 14px;
  color: var(--accent-color);
  margin-bottom: 8px;
}

.profile-field {
  font-size: 13px;
  line-height: 2;
  color: #ccc;
}

.profile-interest {
  color: var(--accent-color);
}

/* === Coming Soon === */
.coming-soon {
  text-align: center;
  padding: 60px 20px;
}

.coming-soon h2 {
  font-family: var(--font-title);
  font-size: 18px;
  color: var(--title-color);
  margin-bottom: 8px;
  font-weight: normal;
}

.coming-soon p {
  color: #666;
  font-style: italic;
}

/* === Footer === */
.xanga-footer {
  text-align: center;
  font-size: 10px;
  color: #555;
  padding: 16px;
  border-top: 1px solid #2a2a4a;
  background: #16162a;
}

.footer-sep {
  margin: 0 4px;
}

/* === Responsive (minimal — Xanga wasn't responsive) === */
@media (max-width: 600px) {
  .xanga-content {
    flex-direction: column;
  }

  .xanga-sidebar {
    width: 100%;
    order: -1;
  }

  .sidebar-box {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
  }

  .sidebar-avatar {
    margin-bottom: 0;
  }
}
