/* Symbolic Nature - MSN-inspired tech magazine stylesheet */

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

body {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 12px;
  line-height: 1.4;
  background: #d4d0c8;
  color: #333;
}

a {
  color: #0033cc;
  text-decoration: underline;
}

a:hover {
  color: #cc0000;
}

a:visited {
  color: #663399;
}

/* === Site Header (merged banner + search) === */
.site-header {
  background: linear-gradient(180deg, #1a237e 0%, #003399 100%);
  color: white;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid #ffcc00;
}

.header-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-title {
  font-size: 20px;
  font-family: "Courier New", monospace;
  font-weight: bold;
  letter-spacing: 2px;
  color: #fff;
}

.title-sep {
  color: #ffcc00;
}

.site-tagline {
  font-size: 10px;
  color: #aab;
  font-style: italic;
}


/* === Navigation Tabs === */
.nav-tabs {
  background: #fffff0;
  border-bottom: 2px solid #003399;
  padding: 0 12px;
  display: flex;
  gap: 0;
}

.nav-tabs a {
  display: inline-block;
  padding: 5px 12px;
  text-decoration: none;
  color: #003399;
  font-weight: bold;
  font-size: 12px;
  border: 1px solid transparent;
  border-bottom: none;
  transition: background 0.1s;
}

.nav-tabs a:hover {
  background: #dde;
  color: #003399;
}

.nav-tabs a.active {
  background: #003399;
  color: white;
}


/* === Main Layout === */
.main-layout {
  display: grid;
  grid-template-columns: 150px 1fr 190px;
  gap: 0;
  max-width: 980px;
  margin: 8px auto;
  background: white;
  border: 1px solid #999;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.15);
}

/* === Left Sidebar === */
.sidebar-left {
  background: #fffff8;
  padding: 10px 8px;
  border-right: 1px solid #ccc;
}

.sidebar-left h3 {
  font-size: 10px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 2px solid #003399;
}

.sidebar-left ul {
  list-style: none;
}

.sidebar-left ul li {
  padding: 3px 0;
  border-bottom: 1px dotted #ddd;
}

.sidebar-left ul li:last-child {
  border-bottom: none;
}

.sidebar-left ul li a {
  color: #003399;
  text-decoration: none;
  font-size: 12px;
  font-weight: bold;
}

.sidebar-left ul li a:hover {
  color: #cc0000;
  text-decoration: underline;
}

/* === Main Content === */
.content-main {
  padding: 12px 16px;
  border-right: 1px solid #ccc;
}

.content-main h1 {
  font-size: 18px;
  font-family: Georgia, serif;
  color: #1a1a1a;
  margin-bottom: 8px;
  line-height: 1.2;
}

.content-main h2 {
  font-size: 13px;
  color: #003399;
  margin: 16px 0 8px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 4px;
  border-bottom: 1px solid #ddd;
}

.headline-block {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ddd;
}

.headline-block .headline-text p {
  color: #444;
  margin-bottom: 6px;
  line-height: 1.5;
}

.headline-block .headline-text a {
  font-size: 11px;
  font-weight: bold;
}

.article-list {
  list-style: none;
  padding-left: 0;
  margin: 6px 0;
}

.article-list li {
  padding: 4px 0 4px 14px;
  position: relative;
  border-bottom: 1px dotted #eee;
}

.article-list li::before {
  content: "\2022";
  color: #ffcc00;
  font-size: 16px;
  position: absolute;
  left: 0;
  top: 2px;
}

.article-list li a {
  font-size: 12px;
  text-decoration: none;
  color: #003399;
}

.article-list li a:hover {
  text-decoration: underline;
  color: #cc0000;
}

/* === Right Sidebar === */
.sidebar-right {
  background: #ffffdd;
  padding: 0;
}

.sidebar-right h3 {
  font-size: 11px;
  font-weight: bold;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: #ffcc00;
  padding: 6px 8px;
  margin: 0;
  text-align: center;
  border-bottom: 1px solid #cc9;
}

.sidebar-box {
  padding: 8px 10px;
  margin: 0;
  border-bottom: 1px dotted #cc9;
}

.sidebar-box:last-child {
  border-bottom: none;
}

.sidebar-box h4 {
  font-size: 11px;
  font-weight: bold;
  color: #333;
  margin-bottom: 4px;
}

.sidebar-box p,
.sidebar-box a {
  font-size: 11px;
}

.sidebar-box p {
  color: #555;
  line-height: 1.4;
}

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

.sidebar-box ul li {
  padding: 3px 0;
  border-bottom: 1px dotted #dd9;
}

.sidebar-box ul li:last-child {
  border-bottom: none;
}

.sidebar-box ul li a {
  font-size: 11px;
  color: #003399;
  text-decoration: none;
}

.sidebar-box ul li a:hover {
  text-decoration: underline;
  color: #cc0000;
}

/* === Footer === */
.site-footer {
  background: linear-gradient(180deg, #003399 0%, #1a237e 100%);
  color: white;
  padding: 8px 12px;
  font-size: 10px;
  text-align: center;
  max-width: 980px;
  margin: 0 auto 20px;
  border: 1px solid #999;
  border-top: 3px solid #ffcc00;
}

.site-footer a {
  color: #ffcc00;
  text-decoration: none;
}

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

/* === Article Page === */
.article-page {
  max-width: none;
  padding: 16px 20px;
}

.article-page h1 {
  font-size: 22px;
  font-family: Georgia, serif;
  margin-bottom: 6px;
}

.article-meta {
  color: #666;
  font-size: 11px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #003399;
}

.article-page p {
  margin-bottom: 12px;
  line-height: 1.7;
  font-size: 13px;
  color: #222;
}

.article-page code {
  background: #f0f0e8;
  padding: 1px 4px;
  font-family: "Courier New", monospace;
  font-size: 12px;
  border: 1px solid #ddd;
}

.article-page pre {
  background: #1a1a2e;
  color: #a8ff60;
  padding: 14px;
  overflow-x: auto;
  margin: 14px 0;
  font-family: "Courier New", monospace;
  font-size: 12px;
  border: 2px solid #333;
  border-left: 4px solid #ffcc00;
}

/* === Responsive === */
@media (max-width: 768px) {
  .main-layout {
    grid-template-columns: 1fr;
  }

  .sidebar-left {
    border-right: none;
    border-bottom: 1px solid #ccc;
  }

  .sidebar-right {
    border-left: none;
    border-top: 1px solid #ccc;
  }

  .nav-tabs {
    flex-wrap: wrap;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .header-right {
    align-items: flex-start;
  }
}
