/* Single article page styles */

/* ============================================
   ARTICLE PAGE - RICH MEDIA DISPLAY
   ============================================ */

.article-page {
  padding: 4rem 2rem 6rem;
  max-width: 900px;
  margin: 0 auto;
}

.article-container {
  background: linear-gradient(145deg, rgba(28, 44, 91, 0.35) 0%, rgba(10, 10, 15, 0.9) 100%);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(108, 171, 221, 0.12);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.article-header {
  padding: 2.5rem 3rem 2rem;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--sky-blue);
  text-decoration: none;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.article-back svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.article-back:hover {
  color: var(--gold);
}

.article-back:hover svg {
  transform: translateX(-4px);
}

.article-badges {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.article-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), #f4d03f);
  color: var(--navy);
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.article-badge.external {
  background: linear-gradient(135deg, var(--sky-blue), #4a9ece);
  box-shadow: 0 4px 15px rgba(108, 171, 221, 0.3);
}

.article-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.8rem;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0;
}

.article-meta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.article-date,
.article-source,
.article-read-time {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.article-date svg,
.article-source svg,
.article-read-time svg {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.article-date {
  color: var(--gold);
}

/* Article Hero Image */
.article-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  max-height: 480px;
  overflow: hidden;
  border-radius: 16px;
  margin: 0 auto 0.5rem;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-hero:hover img {
  transform: scale(1.02);
}

.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(to top, rgba(10, 10, 15, 0.9) 0%, transparent 40%),
    linear-gradient(to bottom, rgba(10, 10, 15, 0.3) 0%, transparent 20%);
  pointer-events: none;
}

/* Article Body */
.article-body {
  padding: 2.5rem 3rem 2rem;
}

.article-lead {
  font-size: 1.2rem;
  line-height: 1.75;
  color: var(--text-primary);
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(108, 171, 221, 0.15);
  font-weight: 400;
  opacity: 0.9;
}

.article-body p {
  color: var(--text-primary);
  line-height: 1.85;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.article-body p:last-child {
  margin-bottom: 0;
}

/* Article Footer with Actions */
.article-footer {
  margin: 0;
  padding: 2rem 3rem 2.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(108, 171, 221, 0.1);
}

.article-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.article-source-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--sky-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.25rem;
  background: rgba(108, 171, 221, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(108, 171, 221, 0.2);
  transition: all 0.3s ease;
}

.article-source-link svg {
  width: 18px;
  height: 18px;
}

.article-source-link:hover {
  color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateY(-2px);
}

/* Share Buttons */
.article-share {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.share-label {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
}

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

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.share-btn svg {
  width: 16px;
  height: 16px;
}

.share-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.share-btn.twitter:hover {
  background: #000;
  border-color: #000;
  color: #fff;
}

.share-btn.facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
  color: #fff;
}

.share-btn.whatsapp:hover {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
}

.share-btn.linkedin:hover {
  background: #0a66c2;
  border-color: #0a66c2;
  color: #fff;
}

.share-btn.copy-link {
  cursor: pointer;
}

.share-btn.copy-link:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.share-btn.copy-link.copied {
  background: #22c55e;
  border-color: #22c55e;
  color: #fff;
}

.share-btn.copy-link .icon-check {
  color: #fff;
}

/* ============================================
   RELATED NEWS WITH IMAGES
   ============================================ */

.related-news {
  margin-top: 3rem;
  padding: 0 2rem;
}

.related-news h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 2rem;
  letter-spacing: 1px;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.related-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, rgba(28, 44, 91, 0.35) 0%, rgba(10, 10, 15, 0.9) 100%);
  border-radius: 16px;
  text-decoration: none;
  border: 1px solid rgba(108, 171, 221, 0.12);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.related-card:hover {
  border-color: rgba(108, 171, 221, 0.35);
  transform: translateY(-6px);
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(108, 171, 221, 0.08);
}

.related-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(28, 44, 91, 0.6) 0%, rgba(10, 10, 15, 0.8) 100%);
  position: relative;
}

.related-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(10, 10, 15, 0.4) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.related-card:hover .related-image::after {
  opacity: 1;
}

.related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.related-card:hover .related-image img {
  transform: scale(1.06);
}

.related-image.no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
}

.related-placeholder {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 3px;
  color: rgba(108, 171, 221, 0.35);
  transition: color 0.3s ease;
}

.related-card:hover .related-placeholder {
  color: rgba(108, 171, 221, 0.5);
}

.related-content {
  padding: 1.25rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.related-card .related-date {
  color: var(--gold);
  font-size: 0.8rem;
  display: block;
  margin-bottom: 0.5rem;
}

.related-card h3 {
  color: var(--text-primary);
  font-size: 1.05rem;
  line-height: 1.4;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

.related-card:hover h3 {
  color: var(--gold);
}

.related-source {
  color: var(--text-secondary);
  font-size: 0.75rem;
  margin-top: 0.75rem;
  opacity: 0.7;
}

/* ============================================
   ARTICLE RESPONSIVE STYLES
   ============================================ */

@media (max-width: 768px) {
  .article-page {
    padding: 3rem 1rem 4rem;
  }

  .article-header {
    padding: 1.5rem 1.5rem 1.25rem;
  }

  .article-title {
    font-size: 1.9rem;
  }

  .article-meta-group {
    gap: 1rem;
  }

  .article-date,
  .article-source,
  .article-read-time {
    font-size: 0.8rem;
  }

  .article-hero {
    aspect-ratio: 16 / 9;
    max-height: 320px;
    border-radius: 12px;
  }

  .article-body {
    padding: 1.75rem 1.5rem;
  }

  .article-lead {
    font-size: 1.1rem;
  }

  .article-body p {
    font-size: 1rem;
  }

  .article-footer {
    padding: 1.5rem;
  }

  .article-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }

  .article-source-link {
    justify-content: center;
  }

  .article-share {
    justify-content: center;
  }

  /* Related News Responsive */
  .related-news {
    padding: 0 1rem;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .related-image {
    aspect-ratio: 16 / 9;
  }
  
  .related-image.no-image {
    min-height: 160px;
  }
}

@media (max-width: 480px) {
  .article-title {
    font-size: 1.6rem;
  }
  
  .article-badges {
    gap: 0.5rem;
  }
  
  .article-badge {
    font-size: 0.65rem;
    padding: 0.3rem 0.7rem;
  }
  
  .share-buttons {
    gap: 0.5rem;
  }
  
  .share-btn {
    width: 34px;
    height: 34px;
  }
}

