/* Hacker/Activist Blog Aesthetic */
/* Minimal, flat, monospace, green accents */

:root {
  --terminal-green: #6BBF80;
  --dark-green: #5AAA6F;
  --bg-white: #ffffff;
  --text-black: #0D0D0D;
  --border-color: #e0e0e0;
  --code-bg: #f5f5f5;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg-white);
  color: var(--text-black);
  font-family: 'Courier New', Courier, monospace;
  font-size: 16px;
  line-height: 1.8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.blog-header {
  border-bottom: 2px solid var(--text-black);
  background: var(--bg-white);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 50rem;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header-logo {
  width: 100px;
  height: 100px;
  transition: transform 0.2s ease;
}

.header-logo:hover {
  transform: scale(1.1);
}

.main-nav {
  display: flex;
  gap: 2rem;
  font-weight: bold;
  font-family: 'Segoe UI', Arial, sans-serif;
}

.main-nav a {
  color: var(--text-black);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--terminal-green);
}

/* Main Content */
main {
  flex: 1;
  max-width: 50rem;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* Blog Index */
.blog-intro {
  margin-bottom: 3rem;
  border-bottom: 2px solid var(--text-black);
  padding-bottom: 1.5rem;
}

.blog-intro h1 {
  font-size: 3rem;
  margin: 0 0 0.5rem 0;
  font-weight: bold;
  letter-spacing: 2px;
  font-family: 'Segoe UI', Arial, sans-serif;
}

.blog-tagline {
  font-size: 1.1rem;
  margin: 0;
  color: #444;
}

.posts-list {
  margin-bottom: 3rem;
}

.post-preview {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.preview-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.8rem;
  font-weight: bold;
  font-family: 'Segoe UI', Arial, sans-serif;
}

.preview-title a {
  color: var(--text-black);
  text-decoration: none;
  transition: color 0.2s ease;
}

.preview-title a:hover {
  color: var(--terminal-green);
}

.preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #666;
}

.preview-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  background: var(--code-bg);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  font-size: 0.85rem;
  color: var(--dark-green);
  font-weight: bold;
}

.preview-excerpt {
  margin: 0 0 1rem 0;
  line-height: 1.6;
}

.read-more {
  color: var(--terminal-green);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s ease;
}

.read-more:hover {
  color: var(--dark-green);
  text-decoration: underline;
}

/* Tags Section */
.tags-section {
  border-top: 2px solid var(--text-black);
  padding-top: 2rem;
}

.tags-section h3 {
  font-size: 1.5rem;
  margin: 0 0 1rem 0;
  letter-spacing: 1px;
  font-family: 'Segoe UI', Arial, sans-serif;
}

.all-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tag-link {
  color: var(--dark-green);
  padding: 0.4rem 0.8rem;
  text-decoration: none;
  border-radius: 3px;
  font-weight: bold;
  transition: all 0.2s ease;
}

.tag-link:hover {
  background: var(--terminal-green);
  color: #0D0D0D;
}

/* Blog Post */
.blog-post {
  max-width: 45rem;
}

.post-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--text-black);
}

.post-title {
  font-size: 2.5rem;
  margin: 0 0 1rem 0;
  font-weight: bold;
  line-height: 1.2;
  font-family: 'Segoe UI', Arial, sans-serif;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  font-size: 0.95rem;
  color: #666;
}

.post-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.post-tags .tag {
  text-decoration: none;
  transition: all 0.2s ease;
}

.post-tags .tag:hover {
  background: var(--terminal-green);
  color: var(--text-black);
}

/* Post Content Styling */
.post-content {
  margin-bottom: 3rem;
  margin-left: 2rem;
  margin-right: 2rem;
  
}

.post-content h1 {
  font-size: 2.2rem;
  margin: 2rem 0 1rem 0;
  font-weight: bold;
  color: var(--text-black);
  font-family: 'Segoe UI', Arial, sans-serif;
}

.post-content h2 {
  font-size: 1.8rem;
  margin: 2rem 0 1rem 0;
  font-weight: bold;
  color: var(--text-black);
  font-family: 'Segoe UI', Arial, sans-serif;
}

.post-content h3 {
  font-size: 1.4rem;
  margin: 1.5rem 0 0.8rem 0;
  font-weight: bold;
  color: var(--text-black);
  font-family: 'Segoe UI', Arial, sans-serif;
}

.post-content p {
  margin: 0 0 2.5rem 0;
  line-height: 1.6;
  font-size: 1.2rem;
}

.post-content a {
  color: var(--terminal-green);
  text-decoration: underline;
  font-weight: bold;
}

.post-content a:hover {
  color: var(--dark-green);
}

.post-content ul,
.post-content ol {
  margin: 0 0 1.5rem 0;
  padding-left: 2rem;
  font-size: 1.2rem;
}

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

.post-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--terminal-green);
  background: var(--code-bg);
  font-style: italic;
}

.post-content code {
  background: var(--code-bg);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
  color: var(--dark-green);
}

.post-content pre {
  background: #0D0D0D;
  color: var(--terminal-green);
  padding: 1rem;
  border-radius: 3px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.post-content pre code {
  background: none;
  padding: 0;
  color: var(--terminal-green);
}

.post-content img {
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border-color);
}

.post-content hr {
  border: none;
  border-top: 2px solid var(--border-color);
  margin: 2rem 0;
}

/* Post Footer / Share Section */
.post-footer {
  border-top: 2px solid var(--text-black);
  padding-top: 2rem;
  margin-top: 3rem;
}

.share-section {
  text-align: center;
}

.share-label {
  font-weight: bold;
  letter-spacing: 1px;
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
}

.share-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.share-btn {
  background: var(--code-bg);
  color: var(--dark-green);
  padding: 0.6rem 1.2rem;
  text-decoration: none;
  border: none;
  border-radius: 3px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.95rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

.share-btn:hover {
  background: var(--terminal-green);
  color: var(--text-black);
}

/* Footer */
.blog-footer {
  border-top: 2px solid var(--text-black);
  padding: 2rem;
  background: var(--bg-white);
  margin-top: auto;
}

.footer-content {
  max-width: 50rem;
  margin: 0 auto;
  text-align: center;
}

.footer-content p {
  margin: 0 0 1rem 0;
  font-weight: bold;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.footer-links a {
  color: var(--terminal-green);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--dark-green);
  text-decoration: underline;
}

/* RSS Subscribe Section */
.rss-section {
  background: var(--code-bg);
  padding: 2rem;
  border-radius: 3px;
  margin-top: 3rem;
  text-align: center;
}

.rss-section h3 {
  font-size: 1.5rem;
  margin: 0 0 1rem 0;
  letter-spacing: 1px;
  font-family: 'Segoe UI', Arial, sans-serif;
}

.rss-description {
  margin: 0 0 1.5rem 0;
  color: #666;
  font-size: 1rem;
}

.rss-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.rss-btn {
  background: #f5f5f5;
  color: var(--dark-green);
  padding: 0.6rem 1.2rem;
  text-decoration: none;
  border: none;
  border-radius: 3px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.95rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rss-btn:hover {
  background: var(--terminal-green);
  color: var(--text-black);
}

/* Responsive Design */
@media (max-width: 768px) {
  .blog-header {
    padding: 1rem;
  }

  .header-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .logo-link {
    opacity: 1;
    transform: scale(1);
    overflow: hidden;
    display: block;
    max-height: 100px;
    margin-bottom: 1rem;
  }

  .header-logo {
    display: block;
    width: 100px;
    height: 100px;
  }

  .main-nav {
    gap: 1.5rem;
  }

  main {
    padding: 2rem 1rem;
  }

  .blog-intro h1 {
    font-size: 2rem;
  }

  .post-title {
    font-size: 1.8rem;
  }

  .preview-title {
    font-size: 1.5rem;
  }

  .share-buttons {
    flex-direction: column;
  }

  .share-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .blog-intro h1 {
    font-size: 1.8rem;
  }

  .post-title {
    font-size: 1.5rem;
  }

  .main-nav {
    font-size: 0.9rem;
    gap: 1rem;
  }

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

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

/* Swiper Carousel Styling */
.swiper {
  width: 50%;
  margin: 2rem 0;
  border: 2px solid var(--border-color);
  border-radius: 3px;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg-white);
}

.swiper-slide img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0;
  border: none;
}

/* Navigation buttons - styled to match your theme */
.swiper-button-next,
.swiper-button-prev {
  color: var(--text-black) !important;
  background: transparent !important;
  width: 40px;
  height: 40px;
  border-radius: 3px;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 20px;
  font-weight: bold;
  color: var(--text-black) !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: transparent !important;
}

.swiper-button-next:hover:after,
.swiper-button-prev:hover:after {
  color: var(--terminal-green) !important;
}

/* Pagination dots - styled to match your theme */
.swiper-pagination-bullet {
  background: var(--border-color);
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: var(--terminal-green);
}

/* Optional: Caption styling */
.swiper-slide-caption {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #666;
  font-family: 'Courier New', Courier, monospace;
}
