/* Static Blog CSS - Standalone styles for SEO-optimized HTML pages */

/* CSS Custom Properties (CSS Variables) */
:root {
  --background: 0 0% 100%;
  --foreground: 20 14.3% 4.1%;
  --muted: 60 4.8% 95.9%;
  --muted-foreground: 25 5.3% 44.7%;
  --card: 0 0% 100%;
  --card-foreground: 20 14.3% 4.1%;
  --border: 20 5.9% 90%;
  --primary: 220 90% 54%;
  --primary-foreground: 210 40% 98%;
  --secondary: 142 76% 36%;
  --secondary-foreground: 355 7% 97%;
  --radius: 0.5rem;
}

/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  line-height: 1.6;
  color: hsl(var(--foreground));
  background-color: hsl(var(--background));
  min-height: 100vh;
}

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

.max-w-4xl {
  max-width: 56rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.p-8 {
  padding: 2rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.pt-8 {
  padding-top: 2rem;
}

/* Typography */
.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.italic {
  font-style: italic;
}

/* Colors */
.text-gray-900 {
  color: #111827;
}

.text-gray-700 {
  color: #374151;
}

.text-gray-600 {
  color: #4b5563;
}

.text-gray-500 {
  color: #6b7280;
}

.text-blue-600 {
  color: #2563eb;
}

.text-blue-100 {
  color: #dbeafe;
}

.text-white {
  color: #ffffff;
}

.bg-neutral-50 {
  background-color: #fafafa;
}

.bg-white {
  background-color: #ffffff;
}

.bg-blue-50 {
  background-color: #eff6ff;
}

.bg-blue-600 {
  background-color: #2563eb;
}

.bg-blue-700 {
  background-color: #1d4ed8;
}

/* Header styles */
.header {
  background-color: white;
  border-bottom: 1px solid hsl(var(--border));
  padding: 1rem 0;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--primary));
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: hsl(var(--foreground));
  text-decoration: none;
  font-weight: 500;
}

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

/* Card styles */
.card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) * 1px);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* Content layout */
.min-h-screen {
  min-height: 100vh;
}

.text-center {
  text-align: center;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-1 {
  gap: 0.25rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

.inline-flex {
  display: inline-flex;
}

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

/* Borders */
.border-b {
  border-bottom: 1px solid hsl(var(--border));
}

.border-t {
  border-top: 1px solid hsl(var(--border));
}

.border-l-4 {
  border-left: 4px solid;
}

.border-blue-600 {
  border-color: #2563eb;
}

.border-gray-200 {
  border-color: #e5e7eb;
}

/* Rounded corners */
.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-r-lg {
  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}

/* Images */
.w-full {
  width: 100%;
}

.max-w-2xl {
  max-width: 42rem;
}

.max-w-none {
  max-width: none;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: calc(var(--radius) * 1px);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: calc(var(--radius) * 1px);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
  background-color: hsl(220 90% 48%);
}

/* Gradients */
.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-blue-600 {
  --tw-gradient-from: #2563eb;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(37, 99, 235, 0));
}

.to-blue-700 {
  --tw-gradient-to: #1d4ed8;
}

/* Prose styles for blog content */
.prose {
  color: hsl(var(--foreground));
  max-width: 65ch;
}

.prose p {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
}

.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
  color: hsl(var(--foreground));
  font-weight: 600;
  margin-top: 2em;
  margin-bottom: 1em;
}

.prose h1 {
  font-size: 2.25em;
  line-height: 1.1111111;
}

.prose h2 {
  font-size: 1.875em;
  line-height: 1.3333333;
}

.prose h3 {
  font-size: 1.5em;
  line-height: 1.6;
}

.prose a {
  color: hsl(var(--primary));
  text-decoration: none;
}

.prose a:hover {
  text-decoration: underline;
}

.prose strong {
  color: hsl(var(--foreground));
  font-weight: 600;
}

.prose blockquote {
  font-weight: 500;
  font-style: italic;
  color: hsl(var(--foreground));
  border-left: 0.25rem solid hsl(var(--border));
  padding-left: 1em;
  margin: 1.6em 0;
}

.prose ul, .prose ol {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 1.625em;
}

.prose li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

/* Footer */
.footer {
  background-color: hsl(var(--muted));
  padding: 3rem 0;
  border-top: 1px solid hsl(var(--border));
  margin-top: auto;
}

.footer p {
  text-align: center;
  color: hsl(var(--muted-foreground));
}

/* Icons (basic styles) */
.icon {
  width: 1rem;
  height: 1rem;
  display: inline-block;
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 0 0.5rem;
  }
  
  .text-4xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }
  
  .text-3xl {
    font-size: 1.5rem;
    line-height: 2rem;
  }
  
  .nav-links {
    gap: 1rem;
  }
  
  .p-8 {
    padding: 1.5rem;
  }
  
  .py-16 {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

/* Blog-specific styles for generated HTML */
.breadcrumbs {
  padding: 1rem 0;
  background-color: hsl(var(--muted));
  border-bottom: 1px solid hsl(var(--border));
  font-size: 0.875rem;
}

.breadcrumbs a {
  color: hsl(var(--primary));
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.blog-post {
  padding: 2rem 0;
  background-color: hsl(var(--background));
}

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

.post-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
  line-height: 1.2;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.separator {
  color: hsl(var(--muted-foreground));
}

.post-image {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5rem auto 0;
  display: block;
}

.post-intro {
  background-color: hsl(var(--muted));
  padding: 2rem;
  border-radius: 0.5rem;
  margin-bottom: 3rem;
  border-left: 4px solid hsl(var(--primary));
}

.intro {
  font-size: 1.125rem;
  line-height: 1.7;
  color: hsl(var(--foreground));
  font-style: italic;
  margin: 0;
}

.post-content {
  max-width: 65ch;
  margin: 0 auto;
  line-height: 1.8;
}

.post-content p {
  margin-bottom: 1.5rem;
  color: hsl(var(--foreground));
}

.post-content h2,
.post-content h3,
.post-content h4 {
  color: hsl(var(--foreground));
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.post-content h2 {
  font-size: 1.75rem;
  line-height: 1.3;
}

.post-content h3 {
  font-size: 1.5rem;
  line-height: 1.4;
}

.post-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--border));
}

.post-cta {
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(220 90% 45%) 100%);
  color: white;
  padding: 3rem 2rem;
  border-radius: 1rem;
  text-align: center;
}

.post-cta h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.post-cta p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.cta-button {
  display: inline-block;
  background-color: white;
  color: hsl(var(--primary));
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.cta-button:hover {
  background-color: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
}

.footer-section p {
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}

.footer-section a {
  display: block;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  margin-bottom: 0.5rem;
}

.footer-section a:hover {
  color: hsl(var(--primary));
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--border));
}

/* Ensure consistent layout */
body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}