/* blog.css - TechBrand Blog Styles */

:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #93c5fd;
    --secondary: #10b981;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --light-gray: #e2e8f0;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --vibrant-accent-color: #00c1d5;
  }

  :root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --secondary: #3f37c9;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --white: #ffffff;
    --success: #4cc9f0;
    --warning: #f8961e;
    --danger: #ef233c;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}
  
  /* Base Styles */
  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    margin: 0;
    padding: 0;
  }
  
  .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
  }
  
  /* Header Styles */
  header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 1rem 0;
  }
  
  header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--vibrant-accent-color);
    text-decoration: none;
  }
  
  nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
  }
  
  nav ul li a {
    font-weight: 500;
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
  }
  
  nav ul li a:hover {
    color: var(--primary);
  }
  
  nav ul li a.active {
    color: var(--primary);
    font-weight: 600;
  }
  
  nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
  }
  
  .mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
  }
  
  /* Blog Page Styles */
  .blog-page {
    padding: 5rem 0 3rem;
    background-color: var(--light);
  }
  
  .blog-header {
    margin-bottom: 3rem;
  }
  
  .page-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark);
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  .page-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 2rem;
    font-size: 1.125rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.75;
  }
  
  /* Blog Search */
  .blog-search {
    display: flex;
    max-width: 600px;
    margin: 0 auto 2rem;
    box-shadow: var(--shadow-md);
    border-radius: 0.5rem;
    overflow: hidden;
  }
  
  .blog-search input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: none;
    font-size: 1rem;
    outline: none;
  }
  
  .blog-search button {
    padding: 0 1.5rem;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: var(--transition);
  }
  
  .blog-search button:hover {
    background-color: var(--primary-dark);
  }
  
  /* Blog Categories */
  .blog-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
  }
  
  .blog-categories a {
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    background-color: var(--white);
    color: var(--gray);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--light-gray);
  }
  
  .blog-categories a:hover {
    background-color: var(--light-gray);
    transform: translateY(-1px);
  }
  
  .blog-categories a.active {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
  }
  
  /* Blog Posts */
  .blog-posts {
    margin-top: 2rem;
  }
  
  .post-card {
    background-color: var(--white);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    margin-bottom: 2rem;
    border: 1px solid var(--light-gray);
  }
  
  .post-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
  }
  
  .post-card.featured {
    display: flex;
    flex-direction: column;
    margin-bottom: 3rem;
  }
  
  .post-card.featured .post-image {
    position: relative;
  }
  
  .post-card.featured .post-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
  }
  
  .post-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--primary);
    color: var(--white);
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
  }
  
  .post-card.featured .post-content {
    padding: 2rem;
  }
  
  .post-card .post-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
  }
  
  .post-card:hover .post-image img {
    transform: scale(1.05);
  }
  
  .post-content {
    padding: 1.5rem;
  }
  
  .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 1rem;
  }
  
  .post-card.featured h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
  }
  
  .post-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
  }
  
  .post-card h2 a,
  .post-card h3 a {
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
  }
  
  .post-card h2 a:hover,
  .post-card h3 a:hover {
    color: var(--primary);
  }
  
  .post-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
  }
  
  .post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .read-more {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .read-more:hover {
    color: var(--primary-dark);
    gap: 0.75rem;
  }
  
  .post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .post-tags a {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background-color: var(--light-gray);
    color: var(--gray);
    border-radius: 9999px;
    text-decoration: none;
    transition: var(--transition);
  }
  
  .post-tags a:hover {
    background-color: var(--primary);
    color: var(--white);
  }
  
  /* Posts Grid */
  .posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
  }
  
  /* Pagination */
  .pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
  }
  
  .pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--light-gray);
  }
  
  .pagination a:hover,
  .pagination a.active {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
  }
  
  /* Footer Styles */
  footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 4rem 0 2rem;
  }
  
  .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
  }
  
  .footer-about .logo {
    color: var(--white);
    margin-bottom: 1rem;
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
  }
  
  .footer-about p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    line-height: 1.6;
  }
  
  .footer-links h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--white);
  }
  
  .footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .footer-links ul li {
    margin-bottom: 0.75rem;
  }
  
  .footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9375rem;
  }
  
  .footer-links ul li a:hover {
    color: var(--white);
    padding-left: 0.5rem;
  }
  
  .footer-social h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--white);
  }
  
  .social-icons {
    display: flex;
    gap: 1rem;
  }
  
  .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
    font-size: 1.125rem;
  }
  
  .social-icons a:hover {
    background-color: var(--primary);
    transform: translateY(-0.25rem);
  }
  
  .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8125rem;
  }
  
  /* Responsive Styles */
  @media (max-width: 1024px) {
    .posts-grid {
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .post-card.featured .post-image img {
      height: 350px;
    }
  }
  
  @media (max-width: 768px) {
    .blog-page {
      padding: 4rem 0 2rem;
    }
    
    .page-title {
      font-size: 2rem;
    }
    
    .page-subtitle {
      font-size: 1rem;
    }
    
    .blog-categories {
      justify-content: flex-start;
    }
    
    .post-card.featured {
      flex-direction: column;
    }
    
    .post-card.featured .post-image img {
      height: 250px;
    }
    
    .post-card.featured .post-content {
      padding: 1.5rem;
    }
    
    .post-card.featured h2 {
      font-size: 1.5rem;
    }
  }
  
  @media (max-width: 480px) {
    .container {
      padding: 0 1rem;
    }
    
    .posts-grid {
      grid-template-columns: 1fr;
    }
    
    .blog-search {
      margin-bottom: 1.5rem;
    }
    
    .post-meta {
      gap: 0.5rem;
    }
    
    .post-footer {
      flex-direction: column;
      align-items: flex-start;
      gap: 1rem;
    }
    
    .post-tags {
      width: 100%;
    }
  }
