/*
Theme Name: Left Nav Simple
Theme URI: https://example.com
Author: Andrew
Description: Minimal WordPress theme with a blue left navigation, white title bar, and white content area.
Version: 1.0
*/

* {
  box-sizing: border-box;
}

body {
  display: flex;
  min-height: 100vh;
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: white;
}

/* Left navigation */
.site-nav {
  width: 220px;
  background: #1e3a8a;
  color: white;
  padding: 20px;
  flex-shrink: 0;
}

.site-nav a {
  color: white;
  text-decoration: none;
  display: block;
  padding: 8px 0;
}

.site-nav a:hover {
  text-decoration: underline;
}

.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
  font-weight: 600;
  text-decoration: underline;
}

/* Nested menus */
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav li {
  position: relative;
}

.site-nav .sub-menu {
  display: none;
  margin-left: 16px;
}

.site-nav li a.parent {
  font-weight: 600;
}

.site-nav li.menu-item-has-children > a::after {
  content: " ▸";
  float: right;
}

.site-nav li.menu-item-has-children > a.active::after {
  content: " ▾";
}

/* Centering wrapper */
.container {
  display: flex;
  justify-content: center; /* center the right-side */
  width: 100%;
/*  background: white;*/
}

/* Right-side (header, content, footer) */
.right-side {
  display: flex;
  flex-direction: column;
  width: 80%;         /* main content takes 80% of available width */
  max-width: 1200px;  /* optional max width */
}

/* Wrapper for header + content */
.site-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.header-inner {
  max-width: 960px;
  width: 100%;
}

.site-name {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 4px;
}

.site-name a {
  text-decoration: none;
  color: #1e3a8a;
  font-weight: 600;
  border-bottom: none;
}

.page-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #111827;
}

/* Main content */
.site-content {
  padding: 24px;
}

/* Content divider */
.content-divider {
  height: 2px;
  width: 80%;
  max-width: 800px;
  background-color: #e5e7eb;
  margin: 16px auto 0 auto;
  border-radius: 1px;
}

/* Footer */
.site-footer {
  width: 100%;
  flex-shrink: 0;
  padding: 12px 24px;
  font-size: 0.875rem;
  color: #6b7280;
  background: white;
  text-align: center;
  border-top: none;
  box-sizing: border-box;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    flex-direction: column;
  }
  .site-nav {
    width: 100%;
    display: flex;
    gap: 16px;
  }
  .site-nav ul {
    display: flex;
    gap: 16px;
    padding: 0;
    margin: 0;
    list-style: none;
  }
  .site-header {
    padding: 12px 16px;
  }
  .page-title {
    font-size: 1.25rem;
  }
  .right-side {
    width: 100%; /* full width on mobile */
  }
}

.comments-area {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

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

.comment-list li {
  margin-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 8px;
}

.comment-author {
  font-weight: 600;
}

.comment-content {
  margin: 4px 0 0 0;
}
