@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #2d3748;
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  font-size: 16px;
}

/* Container for content */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header styles */
.header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

h1.blog-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  letter-spacing: -0.02em;
}

.subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  font-weight: 300;
  position: relative;
  z-index: 1;
}

/* Navigation styles */
nav {
  background: white;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav a {
  color: #4a5568;
  text-decoration: none;
  margin-right: 2rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
}

nav a:hover {
  background: #f7fafc;
  color: #667eea;
  transform: translateY(-1px);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #667eea;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

nav a:hover::after {
  width: 80%;
}

/* Main content area */
main {
  padding: 3rem 0;
}

/* Blog post list styles */
.blog-list {
  list-style: none;
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.blog-list li {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.blog-list li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.blog-list li:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.blog-list li:hover::before {
  transform: scaleY(1);
}

.blog-list a {
  color: #2d3748;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
  display: block;
  transition: color 0.3s ease;
}

.blog-list a:hover {
  color: #667eea;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #1a202c;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
  color: #4a5568;
  line-height: 1.7;
}

/* Article styles */
article {
  background: white;
  border-radius: 12px;
  padding: 3rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
  border: 1px solid #e2e8f0;
}

/* Horizontal rules */
hr.header-hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  margin: 2rem 0;
  border-radius: 1px;
}

hr.section-hr {
  border: none;
  height: 1px;
  background: #e2e8f0;
  margin: 2rem 0;
  width: 50%;
}

/* Lists */
ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

li {
  margin-bottom: 0.5rem;
  color: #4a5568;
}

/* Meta information */
small {
  color: #718096;
  font-size: 0.875rem;
  font-weight: 500;
  display: block;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

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

footer p {
  color: #a0aec0;
  margin: 0;
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  nav a {
    margin-right: 1rem;
    font-size: 0.9rem;
  }
  
  article {
    padding: 2rem 1.5rem;
  }
  
  .blog-list li {
    padding: 1.5rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.blog-list li {
  animation: fadeInUp 0.6s ease forwards;
}

.blog-list li:nth-child(2) {
  animation-delay: 0.1s;
}

.blog-list li:nth-child(3) {
  animation-delay: 0.2s;
}
