/* 
 * Gruvbox Dark Theme Stylesheet for Huginn Blog
 */

:root {
  --font-sans: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Gruvbox Dark Colors */
  --bg-hard: #1d2021;
  --bg-medium: #282828;
  --bg-soft: #32302f;
  --bg-element: #3c3836;
  --bg-hover: #504945;
  
  --fg-primary: #ebdbb2;
  --fg-secondary: #a89984;
  --fg-muted: #7c6f64;

  --red: #fb4934;
  --green: #b8bb26;
  --yellow: #fabd2f;
  --blue: #83a598;
  --purple: #d3869b;
  --aqua: #8ec07c;
  --orange: #fe8019;

  --border-color: #504945;
  --shadow-color: #1d2021;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-medium);
  color: var(--fg-primary);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  display: block;
  min-height: 100vh;
}

/* Layout container */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Header styling */
header {
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 20px;
  margin-bottom: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.site-title {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.site-title img {
  height: 40px;
  width: 40px;
  border-radius: 6px;
  border: 2px solid var(--border-color);
}

.site-title span {
  font-size: 24px;
  font-weight: 800;
  color: var(--fg-primary);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  color: var(--fg-secondary);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
  font-size: 15px;
}

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

.nav-links a.active {
  color: var(--fg-primary);
  border-bottom: 2px solid var(--orange);
}

/* Blog post listing */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.post-card {
  background-color: var(--bg-soft);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 4px 4px 0px var(--shadow-color);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.post-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--shadow-color);
}

.post-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--orange);
  margin-bottom: 10px;
}

.post-title {
  font-size: 22px;
  margin-top: 0;
  margin-bottom: 12px;
}

.post-title a {
  color: var(--fg-primary);
  text-decoration: none;
}

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

.post-excerpt {
  color: var(--fg-secondary);
  margin-bottom: 15px;
  font-size: 15px;
}

.read-more {
  display: inline-block;
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
}

.read-more:hover {
  color: var(--orange);
}

/* Post view styling */
.post-header {
  margin-bottom: 30px;
}

.post-header h1 {
  font-size: 36px;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 15px;
  letter-spacing: -0.02em;
}

.post-header-meta {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--fg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
}

.post-header-meta span {
  margin-right: 20px;
}

.post-content {
  font-size: 17px;
  color: var(--fg-primary);
}

.post-content h2 {
  font-size: 24px;
  margin-top: 35px;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.post-content h3 {
  font-size: 20px;
  margin-top: 25px;
  margin-bottom: 10px;
}

.post-content p {
  margin-bottom: 20px;
}

.post-content ul, .post-content ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.post-content li {
  margin-bottom: 8px;
}

.post-content a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
}

.post-content a:hover {
  color: var(--orange);
  text-decoration: underline;
}

.post-content pre {
  background-color: var(--bg-hard);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 15px;
  overflow-x: auto;
  margin-bottom: 20px;
}

.post-content code {
  font-family: var(--font-mono);
  font-size: 14px;
  background-color: var(--bg-hard);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--aqua);
}

.post-content pre code {
  padding: 0;
  background-color: transparent;
  color: var(--fg-primary);
}

.post-content blockquote {
  border-left: 4px solid var(--orange);
  margin: 0 0 20px 0;
  padding-left: 20px;
  color: var(--fg-secondary);
  font-style: italic;
}

/* Footer styling */
footer {
  border-top: 2px solid var(--border-color);
  margin-top: 60px;
  padding-top: 20px;
  text-align: center;
  color: var(--fg-muted);
  font-size: 13px;
  font-family: var(--font-mono);
}

/* Back button */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fg-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 20px;
}

.btn-back:hover {
  color: var(--orange);
}
