/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.site-header h1 a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.5rem;
}

.site-header nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.site-header nav a {
    text-decoration: none;
    color: #5a6c7d;
    font-weight: 500;
    transition: color 0.3s ease;
}

.site-header nav a:hover {
    color: #3498db;
}

/* Main Content */
main {
    min-height: calc(100vh - 120px);
    padding: 2rem 0;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-bottom: 3rem;
    border-radius: 10px;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Posts */
.recent-posts h3,
.post h1 {
    margin-bottom: 2rem;
    color: #2c3e50;
    font-weight: 600;
}

.post-summary {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-summary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.post-summary h2 a,
.post-summary h4 a {
    text-decoration: none;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.post-summary h2 a:hover,
.post-summary h4 a:hover {
    color: #3498db;
}

.post-meta {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.read-more {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #2980b9;
}

/* Single Post */
.post {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.post .content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.post .content h2,
.post .content h3,
.post .content h4 {
    margin: 2rem 0 1rem 0;
    color: #2c3e50;
}

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

.post .content code {
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.post .content pre {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

/* Tags */
.tags {
    margin-left: 1rem;
}

.tag {
    background: #e74c3c;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

/* Footer */
.site-footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .site-header nav ul {
        gap: 1rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .post-summary,
    .post {
        padding: 1.5rem;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* Responsive images */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto; /* Center align with margin */
}

/* For images in content */
.content img,
article img {
  max-width: 100%;
  height: auto;
  border-radius: 8px; /* Optional: rounded corners */
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* Optional: shadow */
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
  img {
    margin: 0.5rem auto;
    border-radius: 4px;
  }
  
  /* Prevent images from being too small on mobile */
  img[width] {
    width: auto !important;
    max-width: 100% !important;
  }
}

/* Different bullet styles for nested levels */
.content ul {
  list-style-type: decimal;
}

.content ul ul {
  list-style-type: disc;
}

.content ul ul ul {
  list-style-type: square;
}