/* Clevera Blog Styles - Minimal Dark Theme */

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

:root {
  --font-sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --color-bg: #000000;
  --color-bg-secondary: #0a0a0a;
  --color-text: #ffffff;
  --color-text-secondary: #E6E6E6;
  --color-text-muted: #adadad;
  --color-accent: #3b82f6;
  --color-accent-hover: #2563eb;
  --color-border: #262626;
  --max-width: 840px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-accent-hover);
}

/* Container */
.blog-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Header */
.blog-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 3rem;
}

.blog-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.blog-description {
  color: var(--color-text-secondary);
  font-size: 1.125rem;
}

/* Navigation */
.blog-nav {
  margin-top: 1.5rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.blog-nav a {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
}

.blog-nav a:hover {
  color: var(--color-text);
}

/* Post List */
.post-list {
  list-style: none;
}

.post-item {
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.post-item:last-child {
  border-bottom: none;
}

hr {
  border-color: var(--color-border);
  border-width: 1px;
  border-style: solid;
  border-radius: 0.5rem;
  margin: 2rem 0;
  padding: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-border);
}

.post-featured-image {
  flex-shrink: 0;
  width: 200px;
}

.post-featured-image img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 0.5rem;
  transition: transform 0.2s ease;
}

.post-featured-image img:hover {
  transform: scale(1.02);
}

.post-content {
  flex: 1;
}

.post-meta {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.post-title-link {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
  display: block;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.post-title-link:hover {
  color: var(--color-accent);
}

.post-summary {
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.read-more {
  color: #FFFFFF;
  font-size: 1.2rem;
  font-weight: 500;
}

/* Single Post */
.post-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.post-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.post-date {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* Post Content */
.post-content {
  font-size: 1.25rem;
  line-height: 1.75;
  color: var(--color-text-secondary);
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  color: var(--color-text);
  font-weight: 600;
  line-height: 1.3;
  margin-top: 3rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.post-content h2 {
  font-size: 1.875rem;
}

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

.post-content h4 {
  font-size: 1.25rem;
}

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

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

.post-content ul li {
  margin-bottom: 0.5rem;
  list-style-type: disc;
  margin-left: 1rem;
  
}

.post-content ol li {
  margin-bottom: 0.5rem;
  list-style-type: decimal;
  margin-left: 1rem;
}

.post-content blockquote {
  border-left: 3px solid var(--color-accent);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--color-text-secondary);
}

.post-content code {
  background-color: var(--color-bg-secondary);
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.9em;
  font-family: 'Monaco', 'Courier New', monospace;
  color: var(--color-text);
}

.post-content pre {
  background-color: var(--color-bg-secondary);
  padding: 1.5rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  border: 1px solid var(--color-border);
}

.post-content pre code {
  background: none;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.6;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 2rem 0;
}

.post-content a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: all 0.2s ease;
  text-decoration-style: dotted;
  
}

.post-content a:hover {
  color: #FFFFFF;
  text-decoration-color: #FFFFFF;
}

/* Tags */
.post-tags {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tag {
  background-color: var(--color-bg-secondary);
  color: var(--color-text-secondary);
  padding: 0.375rem 0.875rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--color-border);
  transition: all 0.2s ease;
}

.tag:hover {
  background-color: var(--color-accent);
  color: var(--color-text);
  border-color: var(--color-accent);
}

/* More Posts Section */
.more-posts {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.more-posts-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.more-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.more-post-item {
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.2s ease;
}

.more-post-item:hover {
  transform: translateY(-2px);
  border-color: var(--color-accent);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.more-post-image {
  width: 100%;
  height: 140px;
  overflow: hidden;
}

.more-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.more-post-item:hover .more-post-image img {
  transform: scale(1.05);
}

.more-post-content {
  padding: 1.25rem;
}

.more-post-meta {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.more-post-title {
  font-size: 1.125rem;
  font-weight: 00;
  color: var(--color-text);
  display: block;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.more-post-title:hover {
  color: var(--color-accent);
}

.more-post-summary {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.5;
  margin: 0;
}

/* Footer */
.blog-footer {
  margin-top: 5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.back-to-site {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--color-accent);
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .post-title {
    font-size: 2rem;
  }

  .blog-title {
    font-size: 1.75rem;
  }

  .blog-container {
    padding: 1.5rem 1rem;
  }

  .post-content {
    font-size: 1rem;
  }

  .post-item {
    flex-direction: column;
    gap: 1rem;
  }

  .post-featured-image {
    width: 100%;
  }

  .post-featured-image img {
    height: 200px;
  }

  .more-posts-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .more-post-image {
    height: 120px;
  }

  .more-post-content {
    padding: 1rem;
  }

  .more-post-title {
    font-size: 1rem;
  }
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--color-text-secondary);
}

.empty-state h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

