/* Blog Post Styling - Matches main portfolio website */

:root {
  --navy: #1a2744;
  --teal: #0f7b6c;
  --teal-light: #e6f4f2;
  --accent: #d4a84b;
  --text: #2d2d2d;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #fafafa;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
}

/* Navigation */
nav {
  background: rgba(255,255,255,0.98);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-right: 1.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s;
  font-family: 'Arial', sans-serif;
}

nav a:hover {
  color: var(--teal);
}

/* Blog Post Container */
.blog-post {
  max-width: 750px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

/* Typography */
.blog-post h1 {
  font-size: 2.5rem;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.blog-post h2 {
  font-size: 1.8rem;
  color: var(--navy);
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--teal-light);
}

.blog-post h3 {
  font-size: 1.4rem;
  color: var(--teal);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.blog-post h4 {
  font-size: 1.2rem;
  color: var(--navy);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.blog-post p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.blog-post strong {
  color: var(--navy);
  font-weight: 600;
}

.blog-post em {
  font-style: italic;
  color: var(--muted);
}

/* Links */
.blog-post a {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.blog-post a:hover {
  border-bottom-color: var(--teal);
}

/* Lists */
.blog-post ul, .blog-post ol {
  margin: 1.5rem 0 1.5rem 2rem;
  line-height: 1.9;
}

.blog-post li {
  margin-bottom: 0.75rem;
}

/* Code Blocks */
.blog-post pre {
  background: #f6f8fa;
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  border-radius: 6px;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.blog-post code {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  background: #f6f8fa;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-size: 0.9em;
  color: #e83e8c;
}

.blog-post pre code {
  background: none;
  padding: 0;
  color: var(--text);
}

/* Blockquotes */
.blog-post blockquote {
  border-left: 4px solid var(--accent);
  background: #fffbf0;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--muted);
}

/* Tables */
.blog-post table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
}

.blog-post th {
  background: var(--navy);
  color: white;
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
}

.blog-post td {
  padding: 0.75rem;
  border: 1px solid var(--border);
}

.blog-post tr:nth-child(even) {
  background: var(--teal-light);
}

/* Horizontal Rules */
.blog-post hr {
  border: none;
  border-top: 2px solid var(--border);
  margin: 3rem 0;
}

/* Images */
.blog-post img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Callout Boxes */
.blog-post .note,
.blog-post .warning,
.blog-post .tip {
  padding: 1.25rem 1.5rem;
  border-radius: 6px;
  margin: 1.5rem 0;
  border-left: 4px solid;
}

.blog-post .note {
  background: var(--teal-light);
  border-left-color: var(--teal);
}

.blog-post .warning {
  background: #fff3cd;
  border-left-color: #ffc107;
}

.blog-post .tip {
  background: #d4edda;
  border-left-color: #28a745;
}

/* Back to Blog Link */
.back-to-blog {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--teal);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  font-family: 'Arial', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.back-to-blog:hover {
  gap: 0.8rem;
}

/* Article Meta */
.article-meta {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding: 1rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
  font-family: 'Arial', sans-serif;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Author Bio */
.author-bio {
  background: var(--teal-light);
  border-left: 4px solid var(--teal);
  padding: 1.5rem;
  border-radius: 6px;
  margin-top: 3rem;
}

.author-bio h4 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--navy);
}

.author-bio p {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.author-bio a {
  color: var(--teal);
  font-weight: 600;
}

/* Related Posts */
.related-posts {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
}

.related-posts h3 {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.related-posts ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.related-posts li {
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all 0.2s;
}

.related-posts li:hover {
  border-color: var(--teal);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.related-posts a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
}

.related-posts a:hover {
  color: var(--teal);
}

/* Footer */
footer {
  background: var(--navy);
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
}

footer a {
  color: var(--teal-light);
  text-decoration: none;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .blog-post {
    padding: 2rem 1.5rem;
  }

  .blog-post h1 {
    font-size: 2rem;
  }

  .blog-post h2 {
    font-size: 1.5rem;
  }

  .blog-post h3 {
    font-size: 1.2rem;
  }

  nav a {
    display: block;
    margin: 0.5rem 0;
  }

  .article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .blog-post table {
    font-size: 0.85rem;
  }

  .blog-post pre {
    font-size: 0.8rem;
  }
}

/* Print Styles */
@media print {
  nav, footer, .back-to-blog, .related-posts {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .blog-post {
    max-width: 100%;
    padding: 0;
  }

  .blog-post a {
    color: black;
    text-decoration: underline;
  }
}
