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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, #0a0e27 0%, #1a1a2e 50%, #16213e 100%);
  color: #e4e4e7;
  min-height: 100vh;
}

header {
  padding: 2rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(10px);
  background: rgba(10, 14, 39, 0.7);
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.logo {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

nav a {
  color: #a1a1aa;
  text-decoration: none;
  margin-left: 2rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

nav a:hover {
  color: #6366f1;
}

article {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 5%;
}

.article-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.article-meta {
  color: #6366f1;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.article-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.article-excerpt {
  font-size: 1.25rem;
  color: #a1a1aa;
  line-height: 1.7;
}

.article-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #d4d4d8;
}

.article-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: #ffffff;
}

.article-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  color: #ffffff;
}

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

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

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

.article-content a {
  color: #6366f1;
  text-decoration: none;
  border-bottom: 1px solid rgba(99, 102, 241, 0.3);
  transition: all 0.3s ease;
}

.article-content a:hover {
  color: #a855f7;
  border-bottom-color: #a855f7;
}

.article-content blockquote {
  border-left: 4px solid #6366f1;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #a1a1aa;
}

.article-content code {
  background: rgba(99, 102, 241, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
  color: #c4b5fd;
}

.article-content pre {
  background: rgba(30, 30, 46, 0.8);
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.article-content pre code {
  background: none;
  padding: 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  color: #6366f1;
  text-decoration: none;
  font-weight: 600;
  margin-top: 3rem;
  transition: all 0.3s ease;
}

.back-link:hover {
  color: #a855f7;
  gap: 0.5rem;
}

.back-link::before {
  content: '←';
  margin-right: 0.5rem;
  transition: margin-right 0.3s ease;
}

.back-link:hover::before {
  margin-right: 0.75rem;
}

.blog-header {
  text-align: center;
  padding: 4rem 5% 3rem;
  max-width: 800px;
  margin: 0 auto;
}

.blog-header h1 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-header p {
  font-size: 1.125rem;
  color: #a1a1aa;
}

.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 5%;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: rgba(30, 30, 46, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(99, 102, 241, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-8px);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.blog-card-content {
  padding: 1.5rem;
}

.blog-date {
  font-size: 0.875rem;
  color: #6366f1;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.blog-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.blog-card p {
  color: #a1a1aa;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  color: #6366f1;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.read-more:hover {
  color: #a855f7;
}

.read-more::after {
  content: '→';
  margin-left: 0.5rem;
  transition: margin-left 0.3s ease;
}

.read-more:hover::after {
  margin-left: 0.75rem;
}

.loading {
  text-align: center;
  padding: 3rem;
  color: #a1a1aa;
  font-size: 1.125rem;
}

footer {
  text-align: center;
  padding: 3rem 5%;
  color: #71717a;
  border-top: 1px solid rgba(99, 102, 241, 0.1);
  margin-top: 4rem;
}

@media (max-width: 768px) {
  .article-title {
    font-size: 2rem;
  }
  
  .article-content {
    font-size: 1rem;
  }
  
  .blog-header h1 {
    font-size: 2rem;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
}
