/* ==========================================================================
   NEWS CSS - BesserGrowen US
   News article and listing styles
   ========================================================================== */

/* ==========================================================================
   NEWS CARDS
   ========================================================================== */

.news-card {
  display: block;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(0, 255, 136, 0.1);
}

.news-card-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.news-card-badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.news-card-category {
  background: var(--primary);
  color: var(--bg-dark);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.news-card-badge {
  background: var(--highlight);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

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

.news-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.news-card-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.news-card-meta {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.news-card-meta span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.news-card-meta i {
  margin-right: 0.3rem;
  color: var(--primary);
}

/* ==========================================================================
   FEATURED NEWS CARD
   ========================================================================== */

.news-card-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

@media (max-width: 768px) {
  .news-card-featured {
    grid-template-columns: 1fr;
  }
}

.news-card-featured .news-card-image {
  aspect-ratio: auto;
  min-height: 300px;
}

.news-card-featured .news-card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
}

.news-card-featured .news-card-title {
  font-size: 1.75rem;
}

/* ==========================================================================
   NEWS ARTICLE PAGE
   ========================================================================== */

.news-article {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--spacing-xl) var(--spacing-lg);
}

.news-article-hero {
  position: relative;
  aspect-ratio: 21/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
}

.news-article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-article-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 50%);
}

.news-article-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.news-article-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.news-article-meta i {
  color: var(--primary);
}

.news-article h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.news-article-lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.news-article-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.news-article-body h2 {
  font-size: 1.75rem;
  color: var(--text-primary);
  margin: 2.5rem 0 1rem;
}

.news-article-body h3 {
  font-size: 1.35rem;
  color: var(--text-primary);
  margin: 2rem 0 1rem;
}

.news-article-body p {
  margin-bottom: 1.5rem;
}

.news-article-body ul,
.news-article-body ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.news-article-body li {
  margin-bottom: 0.75rem;
}

.news-article-body blockquote {
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  margin: 2rem 0;
  background: var(--bg-card);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
}

.news-article-body blockquote p {
  margin-bottom: 0;
}

/* ==========================================================================
   NEWS PULL QUOTE
   ========================================================================== */

.pull-quote {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0, 255, 136, 0.05) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
}

.pull-quote-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 1rem;
}

.pull-quote-source {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   NEWS INFO BOX
   ========================================================================== */

.news-infobox {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2rem 0;
  border: 1px solid var(--border);
}

.news-infobox-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.news-infobox-header i {
  color: var(--primary);
  font-size: 1.25rem;
}

.news-infobox-header h4 {
  font-size: 1.1rem;
  margin: 0;
}

.news-infobox ul {
  margin: 0;
  padding-left: 1.5rem;
}

.news-infobox li {
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   NEWS TIMELINE
   ========================================================================== */

.news-timeline {
  margin: 2rem 0;
  position: relative;
  padding-left: 2rem;
}

.news-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.4rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--bg-dark);
}

.timeline-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.timeline-content {
  color: var(--text-secondary);
}

/* ==========================================================================
   RELATED NEWS
   ========================================================================== */

.related-news {
  background: var(--bg-card);
  padding: var(--spacing-xl) 0;
  margin-top: var(--spacing-xl);
}

.related-news h3 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.5rem;
}

.related-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* ==========================================================================
   ARCHIVE BOX - Sources Section
   ========================================================================== */

.archive-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2rem 0;
}

.archive-box summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
}

.archive-box summary::-webkit-details-marker {
  display: none;
}

.archive-box summary::before {
  content: '📚';
}

.archive-box summary::after {
  content: '▸';
  margin-left: auto;
  transition: transform 0.2s ease;
  opacity: 0.6;
}

.archive-box[open] summary::after {
  transform: rotate(90deg);
}

.archive-box .archive-list {
  margin-top: 1rem;
  padding-left: 0;
  list-style: none;
}

.archive-box .archive-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.archive-box .archive-list li:last-child {
  border-bottom: none;
}

.archive-box .archive-list li::before {
  content: '🔗';
  flex-shrink: 0;
}

.archive-box .archive-list a {
  color: var(--primary);
  text-decoration: none;
  word-break: break-word;
}

.archive-box .archive-list a:hover {
  text-decoration: underline;
}

.archive-box .archive-note {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(124, 58, 237, 0.1);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--text-secondary);
}
