/*
Theme Name: Katelyn Pauley Blog
Theme URI: https://katelynpauley.com
Description: Clean, minimal blog theme matching katelynpauley.com. Features dark mode, Inter/JetBrains Mono fonts, and seamless integration with the main React site.
Version: 1.0.0
Author: Katelyn Pauley
Author URI: https://katelynpauley.com
License: MIT
*/

/* ============================================
   CSS Variables - Matching Main Site
   ============================================ */
:root {
  --background: #ffffff;
  --foreground: #0a0a0a;
  --card: #ffffff;
  --card-foreground: #0a0a0a;
  --primary: #0ea5e9;
  --primary-foreground: #f8fafc;
  --secondary: #f1f5f9;
  --secondary-foreground: #0f172a;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --accent: #f1f5f9;
  --accent-foreground: #0f172a;
  --border: #e2e8f0;
  --radius: 0.5rem;
  --cyan: #06b6d4;
}

.dark {
  --background: #0a0a0a;
  --foreground: #fafafa;
  --card: #0a0a0a;
  --card-foreground: #fafafa;
  --primary: #0ea5e9;
  --primary-foreground: #0f172a;
  --secondary: #1e293b;
  --secondary-foreground: #f8fafc;
  --muted: #1e293b;
  --muted-foreground: #94a3b8;
  --accent: #1e293b;
  --accent-foreground: #f8fafc;
  --border: #1e293b;
  --cyan: #06b6d4;
}

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

html,
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ============================================
   Blog Content Container
   ============================================ */
.blog-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  min-height: calc(100vh - 400px);
}

/* ============================================
   Post Grid (Homepage)
   ============================================ */
.post-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.2s ease;
}

.post-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.1);
}

.post-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.post-card h2 a {
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.2s;
}

.post-card h2 a:hover {
  color: var(--primary);
}

.post-meta {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.post-meta time {
  font-weight: 500;
}

.post-excerpt {
  color: var(--foreground);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.post-excerpt p {
  margin: 0;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  transition: gap 0.2s;
}

.read-more:hover {
  gap: 0.75rem;
}

/* ============================================
   Single Post Styles
   ============================================ */
.single-post {
  margin-bottom: 4rem;
}

.post-header {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.post-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.post-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--foreground);
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  color: var(--foreground);
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.post-content h1 { font-size: 2rem; }
.post-content h2 { font-size: 1.75rem; }
.post-content h3 { font-size: 1.5rem; }
.post-content h4 { font-size: 1.25rem; }

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.post-content a:hover {
  border-bottom-color: var(--primary);
}

.post-content ul,
.post-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--muted-foreground);
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 2rem 0;
}

.post-content code {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  background-color: var(--muted);
  color: var(--foreground);
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.9em;
}

.post-content pre {
  background-color: var(--muted);
  padding: 1.5rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 2rem 0;
}

.post-content pre code {
  background: none;
  padding: 0;
  font-size: 0.875rem;
}

/* ============================================
   Post Navigation
   ============================================ */
.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.post-navigation a {
  flex: 1;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.2s;
}

.post-navigation a:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.1);
}

.post-navigation .nav-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.post-navigation .nav-title {
  font-weight: 600;
  color: var(--foreground);
}

/* ============================================
   Pagination
   ============================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.pagination a,
.pagination .current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}

.pagination a:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
}

.pagination .current {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

/* ============================================
   No Posts Message
   ============================================ */
.no-posts {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--muted-foreground);
}

.no-posts h2 {
  font-size: 1.5rem;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
  .blog-container {
    padding: 2rem 1rem;
  }
  
  .post-title {
    font-size: 2rem;
  }
  
  .post-content {
    font-size: 1rem;
  }
  
  .post-content h1 { font-size: 1.75rem; }
  .post-content h2 { font-size: 1.5rem; }
  .post-content h3 { font-size: 1.25rem; }
  
  .post-navigation {
    flex-direction: column;
  }
}
