:root {
  --dark-card: #13131f;
  --neon-blue: #00f3ff;
  --neon-blue-glow: #00f3ff88;
  --neon-blue-darker: #0099f7;
  --dark-bg: #0a0a14;
  --text: #ffffff;
  --text-secondary: #cccccc;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--dark-bg);
  color: var(--text);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--dark-bg) 0%, #0f1526 100%);
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

header {
  padding: 2rem 0;
  text-align: center;
  border-bottom: 1px solid rgba(0, 243, 255, 0.1);
}

header h1 {
  font-size: 2.5rem;
  text-shadow: 0 0 10px var(--neon-blue);
  letter-spacing: 1px;
}

.site-title {
  color: var(--text);
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
}

.site-title:hover {
  color: var(--neon-blue);
  text-shadow: 0 0 15px var(--neon-blue-glow);
}

header nav {
  margin-top: 1rem;
}

header nav a {
  color: var(--text);
  text-decoration: none;
  margin: 0 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

header nav a:hover {
  color: var(--neon-blue);
  text-shadow: 0 0 15px var(--neon-blue-glow);
}

main {
  flex: 1;
  padding: 3rem 0;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  line-height: 1.25;
}

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

.post-card {
  background-color: var(--dark-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  border: 1px solid rgba(0, 243, 255, 0.05);
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 7px 25px rgba(0, 243, 255, 0.2);
}

.post-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-blue-darker), var(--neon-blue));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.post-card:hover:before {
  opacity: 1;
}

.post-card__content {
  padding: 1.5rem;
}

.post-card__date {
  color: var(--neon-blue);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.post-card__title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.post-card__title a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-card__title a:hover {
  color: var(--neon-blue);
  text-shadow: 0 0 5px rgba(0, 243, 255, 0.5);
}

.post-card__excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.post-card__readmore {
  display: inline-flex;
  align-items: center;
  color: var(--neon-blue);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.post-card__readmore:hover {
  text-shadow: 0 0 8px var(--neon-blue);
  transform: translateX(5px);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 4rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pagination a, .pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  margin: 0 0.25rem;
  background-color: var(--dark-card);
  color: var(--text);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 243, 255, 0.1);
}

.pagination a:hover {
  background-color: rgba(0, 243, 255, 0.1);
  border-color: var(--neon-blue);
  color: var(--neon-blue);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

.pagination a.active {
  background-color: var(--neon-blue);
  color: var(--dark-bg);
  font-weight: 700;
}

.pagination__ellipsis {
  background: none;
  border: none;
  color: var(--text-secondary);
}

.pagination__first, .pagination__last {
  min-width: auto;
  padding: 0 1rem;
}

.single-post {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--dark-card);
  border-radius: 12px;
  padding: 3rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.single-post__header {
  margin-bottom: 2rem;
  text-align: center;
}

.single-post__title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  color: var(--neon-blue);
}

.single-post__date {
  color: var(--text-secondary);
  font-size: 1rem;
}

.single-post__content {
  font-size: 1.1rem;
  line-height: 1.8;
}

.single-post__content p,
.single-post__content ul,
.single-post__content ol {
  margin-bottom: 1.5rem;
}

.single-post__content h2,
.single-post__content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--neon-blue);
}

.single-post__content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.single-post__content a {
  color: var(--neon-blue);
  text-decoration: none;
  border-bottom: 1px solid var(--neon-blue);
  transition: all 0.3s ease;
}

.single-post__content a:hover {
  text-shadow: 0 0 8px var(--neon-blue-glow);
  border-bottom-color: transparent;
}

.author-bio {
  margin-top: 3rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: right;
}

footer {
  padding: 2rem 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-top: 1px solid rgba(0, 243, 255, 0.1);
  margin-top: 3rem;
}

footer a {
  color: var(--neon-blue);
  text-decoration: none;
  transition: all 0.3s ease;
}

footer a:hover {
  text-shadow: 0 0 8px var(--neon-blue-glow);
}

@media (max-width: 768px) {
  .post-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .single-post {
    padding: 2rem;
  }
  
  .single-post__title {
    font-size: 2rem;
  }
  
  header h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .post-grid {
    grid-template-columns: 1fr;
  }
  
  .single-post {
    padding: 1.5rem;
  }
  
  .single-post__title {
    font-size: 1.75rem;
  }
  
  header h1 {
    font-size: 1.75rem;
  }
  
  .pagination a {
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.5rem;
    margin: 0 0.15rem;
  }
}

pre {
  background-color: #0c1221;
  padding: 1.25rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
  border-left: 4px solid var(--neon-blue);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

code {
  font-family: 'Fira Code', monospace;
  font-size: 0.9rem;
  color: #e6e6e6;
}

a:focus, button:focus {
  outline: 2px solid var(--neon-blue);
  outline-offset: 3px;
}

@media print {
  body {
    background: white;
    color: black;
  }
  
  .single-post {
    box-shadow: none;
    padding: 0;
  }
  
  header, footer, .pagination {
    display: none;
  }
}
