/* ReferVo Blog Styles */

/* Blog Header */
.blog-header {
  padding-top: 140px;
  padding-bottom: 3rem;
  background: var(--gray-light);
  text-align: center;
}

.blog-header h1 {
  margin-bottom: 0.75rem;
}

.blog-header h1 span {
  color: var(--orange);
}

.blog-header p {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

.back-link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-text);
  margin-bottom: 1.5rem;
  transition: color 0.2s var(--ease-out);
}

.back-link:hover {
  color: var(--orange);
}

/* Blog Section */
.blog-section {
  padding: 3rem 0 5rem;
}

/* Category Pills */
.blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.category-pill {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  background: var(--white);
  border: 1px solid var(--gray-border);
  color: var(--gray-dark);
  transition: all 0.2s var(--ease-out);
}

.category-pill:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.category-pill.active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

/* Articles Grid */
.articles-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Article Card */
.article-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--gray-border);
  transition: all 0.3s var(--ease-out);
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  border-color: transparent;
}

.article-card-image {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--gray-light);
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out);
}

.article-card:hover .article-card-image img {
  transform: scale(1.05);
}

.article-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-border);
}

.article-card-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.375rem 0.75rem;
  background: var(--orange);
  color: var(--white);
  border-radius: 6px;
}

.article-card-content {
  padding: 1.5rem;
}

.article-card-content h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.article-card-content h3 a {
  color: var(--black);
  transition: color 0.2s var(--ease-out);
}

.article-card-content h3 a:hover {
  color: var(--orange);
}

.article-card-content p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.article-card-meta time {
  color: var(--gray-text);
}

.read-more {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--orange);
  transition: color 0.2s var(--ease-out);
}

.read-more:hover {
  color: var(--orange-dark);
}

/* Blog Empty State */
.blog-empty {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--gray-light);
  border-radius: 20px;
}

.blog-empty p {
  font-size: 1.125rem;
}

/* Article Hero */
.article-hero {
  padding-top: 140px;
  padding-bottom: 3rem;
  background: var(--gray-light);
}

.article-hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.article-category-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.5rem 1rem;
  background: var(--orange);
  color: var(--white);
  border-radius: 6px;
  margin-bottom: 1.5rem;
  transition: background 0.2s var(--ease-out);
}

.article-category-badge:hover {
  background: var(--orange-dark);
}

.article-hero h1 {
  font-size: clamp(2rem, 4vw + 0.5rem, 2.75rem);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--gray-text);
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-meta svg {
  opacity: 0.6;
}

/* Featured Image */
.article-featured-image {
  margin-top: -1rem;
  padding-bottom: 2rem;
}

.article-featured-image img {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: block;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Article Body */
.article-body {
  padding: 2rem 0 4rem;
}

.article-content {
  max-width: 720px;
  margin: 0 auto;
}

/* Article Typography */
.article-content h2 {
  font-size: 1.75rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--black);
}

.article-content h3 {
  font-size: 1.25rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--black);
}

.article-content h4 {
  font-size: 1.125rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: var(--black);
}

.article-content p {
  font-size: 1.125rem;
  line-height: 1.85;
  margin-bottom: 1.5rem;
  color: var(--gray-dark);
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--gray-dark);
}

.article-content li {
  font-size: 1.125rem;
  line-height: 1.75;
  margin-bottom: 0.5rem;
}

.article-content strong {
  color: var(--black);
  font-weight: 600;
}

.article-content a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease-out);
}

.article-content a:hover {
  color: var(--orange-dark);
}

.article-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: var(--gray-light);
  border-left: 4px solid var(--orange);
  border-radius: 0 12px 12px 0;
}

.article-content blockquote p {
  margin-bottom: 0;
  font-style: italic;
  color: var(--gray-dark);
}

.article-content code {
  font-family: 'SF Mono', Monaco, 'Courier New', monospace;
  font-size: 0.9em;
  padding: 0.2em 0.4em;
  background: var(--gray-light);
  border-radius: 4px;
  color: var(--orange-dark);
}

.article-content pre {
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: var(--black);
  border-radius: 12px;
  overflow-x: auto;
}

.article-content pre code {
  background: none;
  padding: 0;
  color: var(--gray-light);
}

.article-content hr {
  margin: 3rem 0;
  border: none;
  height: 1px;
  background: var(--gray-border);
}

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

/* Share Buttons */
.article-share {
  max-width: 720px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-border);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.article-share span {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-dark);
}

.share-buttons {
  display: flex;
  gap: 0.75rem;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gray-light);
  color: var(--gray-dark);
  transition: all 0.2s var(--ease-out);
}

.share-btn:hover {
  transform: translateY(-2px);
}

.share-twitter:hover {
  background: #1DA1F2;
  color: var(--white);
}

.share-linkedin:hover {
  background: #0A66C2;
  color: var(--white);
}

.share-facebook:hover {
  background: #1877F2;
  color: var(--white);
}

/* Article CTA */
.article-cta {
  padding: 4rem 0;
  background: var(--gray-light);
}

.article-cta-box {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  background: var(--black);
  padding: 3rem 2rem;
  border-radius: 24px;
}

.article-cta-box h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.article-cta-box p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}

.article-cta-box .btn svg {
  margin-right: 0.25rem;
}

/* Related Articles */
.related-articles {
  padding: 4rem 0;
  background: var(--white);
}

.related-articles h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .article-hero {
    padding-top: 120px;
    padding-bottom: 2rem;
  }

  .article-meta {
    gap: 1rem;
  }

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

  .article-content p,
  .article-content li {
    font-size: 1rem;
  }

  .article-cta-box {
    padding: 2rem 1.5rem;
  }
}
