/* 3D Printing Machines - Engineering-focused, forum-era aesthetic */

:root {
  --bg-primary: #f4f4f4;
  --bg-secondary: #e8e8e8;
  --bg-header: #2c3e50;
  --bg-code: #1a1a2e;
  --text-primary: #333;
  --text-secondary: #666;
  --text-light: #f0f0f0;
  --text-muted: #888;
  --border-color: #ccc;
  --border-dark: #999;
  --link-color: #2970b0;
  --link-hover: #1a4a7a;
  --accent: #3498db;
  --accent-muted: #5a7a94;
  --table-header: #34495e;
  --table-stripe: #ecf0f1;
  --shadow: rgba(0, 0, 0, 0.1);
}

/* Reset and base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  line-height: 1.6;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', sans-serif;
  color: var(--bg-header);
  margin: 1.5rem 0 0.75rem;
  line-height: 1.3;
}

h1 { font-size: 1.75rem; border-bottom: 2px solid var(--border-color); padding-bottom: 0.5rem; }
h2 { font-size: 1.4rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.3rem; }
h3 { font-size: 1.15rem; }

p {
  margin: 0.75rem 0;
}

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

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

code, .mono {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  background: var(--bg-secondary);
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
  font-size: 0.9em;
}

pre {
  background: var(--bg-code);
  color: var(--text-light);
  padding: 1rem;
  overflow-x: auto;
  border: 1px solid var(--border-dark);
  border-radius: 3px;
}

pre code {
  background: none;
  padding: 0;
}

/* Layout */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header - forum-style */
header {
  background: var(--bg-header);
  border-bottom: 3px solid var(--accent-muted);
  padding: 0;
}

header .container {
  display: flex;
  flex-direction: column;
}

.site-title {
  color: var(--text-light);
  font-size: 1.5rem;
  font-weight: bold;
  padding: 1rem 0 0.5rem;
  margin: 0;
  font-family: 'Trebuchet MS', sans-serif;
  letter-spacing: -0.5px;
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

.tagline {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0 0 0.75rem;
  font-style: italic;
}

/* Navigation - classic forum tabs */
nav {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

nav li {
  margin: 0;
}

nav a {
  display: block;
  padding: 0.6rem 1.25rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  border-right: 1px solid var(--border-color);
  transition: background 0.15s;
}

nav a:hover {
  background: var(--bg-primary);
  text-decoration: none;
}

nav a.active {
  background: var(--bg-primary);
  border-bottom: 2px solid var(--accent);
  margin-bottom: -1px;
}

/* Main content */
main {
  flex: 1;
  padding: 1.5rem 0 2rem;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding: 0.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 2px;
}

.breadcrumb a {
  color: var(--text-secondary);
}

/* Content boxes - forum post style */
.content-box {
  background: #fff;
  border: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
  border-radius: 3px;
  box-shadow: 0 1px 3px var(--shadow);
}

.content-box-header {
  background: linear-gradient(to bottom, var(--bg-secondary), #ddd);
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.content-box-body {
  padding: 1rem;
}

/* Tables - data-focused */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}

thead {
  background: var(--table-header);
  color: var(--text-light);
}

th {
  padding: 0.6rem 0.8rem;
  text-align: left;
  font-weight: 600;
  border: 1px solid var(--border-dark);
}

td {
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--border-color);
}

tbody tr:nth-child(even) {
  background: var(--table-stripe);
}

tbody tr:hover {
  background: #d5e5f5;
}

/* Lists */
ul, ol {
  margin: 0.75rem 0;
  padding-left: 1.5rem;
}

li {
  margin: 0.3rem 0;
}

/* Info/notice boxes */
.notice {
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--accent);
  background: #e8f4fc;
  margin: 1rem 0;
}

.notice-warning {
  border-left-color: #e67e22;
  background: #fdf3e8;
}

.notice-info {
  border-left-color: #3498db;
  background: #e8f4fc;
}

/* Specs list - for technical data */
.specs-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.specs-list li {
  display: flex;
  border-bottom: 1px dotted var(--border-color);
  padding: 0.4rem 0;
}

.specs-list .label {
  flex: 0 0 40%;
  font-weight: 500;
  color: var(--text-secondary);
}

.specs-list .value {
  flex: 1;
  font-family: 'Consolas', monospace;
}

/* Footer */
footer {
  background: var(--bg-header);
  color: var(--text-muted);
  padding: 1.5rem 0;
  font-size: 0.85rem;
  border-top: 3px solid var(--accent-muted);
}

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

footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-copy {
  color: var(--text-muted);
}

/* Utility classes */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-small { font-size: 0.85rem; }
.mt-1 { margin-top: 1rem; }
.mb-1 { margin-bottom: 1rem; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Responsive */
@media (max-width: 640px) {
  html { font-size: 15px; }

  .site-title { font-size: 1.25rem; }

  nav ul { flex-direction: column; }
  nav a { border-right: none; border-bottom: 1px solid var(--border-color); }

  .specs-list li { flex-direction: column; }
  .specs-list .label { margin-bottom: 0.2rem; }

  footer .container { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }

  table { font-size: 0.8rem; }
  th, td { padding: 0.4rem; }
}

/* Print styles */
@media print {
  header, nav, footer { display: none; }
  .content-box { box-shadow: none; border: 1px solid #000; }
}
