/* /blogs/bpage.css - Article Page Styles */

/* CSS Variables */
:root {
  --black: #000000;
  --white: #ffffff;
  --gray-10: #1a1a1a;
  --gray-20: #333333;
  --gray-40: #666666;
  --gray-50: #808080;
  --gray-60: #999999;
  --gray-80: #cccccc;
  --gray-90: #e6e6e6;
  --gray-95: #f2f2f2;
}

/* Base Article Styles */
article {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  font-family: 'Frank Ruhl Libre', serif;
  line-height: 1.8;
}

/* Article Header */
article h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--black);
}

article > p:first-of-type {
  color: var(--gray-60);
  font-size: 0.9375rem;
  margin-bottom: 2rem;
}

article > p:first-of-type strong {
  color: var(--gray-40);
  font-weight: 600;
}

/* Article Image */
article img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin: 2rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Article Content */
article > p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  color: var(--gray-40);
}

/* Sections */
article section {
  margin: 3rem 0;
  padding: 0;
}

article section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--black);
  border-bottom: 2px solid var(--gray-90);
  padding-bottom: 0.5rem;
}

article section p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--gray-40);
  margin-bottom: 1.25rem;
}

/* Conclusion */
article > p:last-of-type {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
  color: var(--black);
}

article > p:last-of-type + p {
  background-color: var(--gray-95);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--black);
  font-size: 1.125rem;
  line-height: 1.7;
  margin: 0 0 2rem 0;
}


/* Related Posts Section */
.related-posts-section {
  background-color: var(--gray-95);
  padding: 4rem 0;
  margin-top: 2rem;
}

.related-posts-section .max-w-6xl {
  max-width: 1200px;
  margin: 0 auto;
}

.related-posts-section .px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--black);
  margin: 0;
}

.view-all-link {
  color: var(--gray-40);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease;
}

.view-all-link:hover {
  color: var(--black);
  text-decoration: none;
}

.view-all-link svg {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.view-all-link:hover svg {
  transform: translateX(4px);
}

/* Related Posts Grid */
.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

/* Related Post Cards */
.related-post-card {
  background: var(--white);
  border: 1px solid var(--gray-90);
  border-radius: 6px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
  height: 100%;
}

.related-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border-color: var(--gray-80);
  text-decoration: none;
}

.related-post-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--gray-95);
  color: var(--gray-40);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  margin-bottom: 1rem;
}

.related-post-title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--black);
  margin-bottom: 0.75rem;
}

.related-post-excerpt {
  color: var(--gray-40);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.related-post-meta {
  display: flex;
  align-items: center;
  color: var(--gray-60);
  font-size: 0.75rem;
}

.veloridge-square-image{
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
}
/* Mobile Responsive */
@media (max-width: 768px) {
  article {
    padding: 1.5rem 1rem;
  }
  
  article h1 {
    font-size: 1.75rem;
  }
  
  article section h2 {
    font-size: 1.5rem;
  }
  
  article > p,
  article section p {
    font-size: 1rem;
  }
  
  article img {
    max-height: 250px;
  }
  
  .related-posts-section {
    padding: 3rem 0;
    margin-left: 0;
    width: 360px;
    overflow: none;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .related-posts-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .veloridge-square-ad {
    max-width: 100%;
  }
}

/* Tablet Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
  article {
    max-width: 90%;
  }
  
  .related-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Loading States */
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .related-post-card,
  .view-all-link svg {
    transition: none;
  }
}

/* Print Styles */
@media print {
  .related-posts-section,
  .veloridge-ad,
  .veloridge-square-ad {
    display: none;
  }
  
  article {
    max-width: 100%;
    padding: 0;
  }
  
  article img {
    max-height: 300px;
  }
}