/* ===========================
   TechFusion Blog Styles
   blog.css
   =========================== */

/* General Layout */
body {
    font-family: 'Inter', sans-serif;
    background: #0f172a; /* dark slate */
    color: #e2e8f0;
  }
  
  main {
    margin: 2rem auto;
    max-width: 760px;
    padding: 1.5rem;
  }
  
  /* Header */
  .blog-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 0.5rem;
  }
  
  .blog-subtitle {
    text-align: center;
    color: #94a3b8;
    margin-bottom: 2rem;
  }
  
  /* Gradient text reuse */
  .gradient-text {
    background: linear-gradient(90deg, #0ea5e9, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  
  /* Blog Post Card */
  .blog-post {
    background: #1e2537;
    color: #fff;
    border-radius: 10px;
    padding: 1.6rem 1.4rem;
    margin-bottom: 2.4rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  .blog-post:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
  }
  
  /* Blog Post Title */
  .blog-post h2 {
    margin-bottom: 0.5rem;
    font-size: 1.6rem;
  }
  
  /* Meta */
  .post-meta {
    font-size: 0.9rem;
    color: #7dd3fc; /* light cyan */
    margin-bottom: 0.8rem;
  }
  
  /* Content */
  .post-content {
    margin-bottom: 1.2rem;
    line-height: 1.6;
    color: #d1d5db;
  }
  
  /* Interactions (likes + comments) */
  .interactions {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    font-size: 1rem;
  }
  
  .like-btn,
  .comment-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 1rem;
    transition: opacity 0.2s ease;
  }
  
  .like-btn {
    color: #60a5fa; /* blue */
  }
  
  .comment-toggle-btn {
    color: #fbbf24; /* amber */
  }
  
  .like-btn:hover,
  .comment-toggle-btn:hover {
    opacity: 0.75;
  }
  
  /* Comments Section */
  .comments-section {
    margin-top: 1.2rem;
    display: none;
  }
  
  .comments-list {
    list-style: none;
    padding: 0;
    margin-bottom: 0.7rem;
  }
  
  .comments-list li {
    margin-bottom: 0.4rem;
    color: #e2e8f0;
  }
  
  .comments-list li span {
    color: #bae6fd;
    font-weight: 600;
  }
  
  /* Comment Form */
  .comment-form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
  }
  
  .comment-form input[type="text"] {
    padding: 0.5rem 0.7rem;
    border-radius: 6px;
    background: #0f172a;
    border: 1px solid #374151;
    color: #e2e8f0;
  }
  
  .comment-form input[type="text"]:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 2px rgba(56,189,248,0.2);
  }
  
  .comment-form button {
    align-self: flex-end;
    padding: 0.35rem 1.2rem;
    background: #37bcf7;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  
  .comment-form button:hover {
    opacity: 0.85;
    transform: scale(1.03);
  }
  
  /* Responsive Design */
  @media (max-width: 480px) {
    .blog-title { font-size: 2.2rem; }
    .blog-post { padding: 1.3rem; }
  }
  /* Add top padding to account for sticky navbar */
body.dark {
  padding-top: 0;
}

.container {
  padding-top: 2rem;
}

/* Optional: Add a subtle border or shadow to the navbar on blog page */
.navbar {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}