/**
 * VECTRO INDUSTRIAL - Articles & News Stylesheet
 * Architectural Standard: Industrial High-Craft Utilitarian, Marketing 5.0
 */

@import url("./tokens.css");

/* -------------------------------------------------------------
   1. HERO SECTION
------------------------------------------------------------- */
.articles-hero-section {
  position: relative;
  padding-top: var(--space-12);
  padding-bottom: var(--space-10);
  background: linear-gradient(180deg, #F8EFE0 0%, var(--bg-page) 100%);
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}

.articles-hero-box {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.articles-hero-title {
  font-family: var(--font-family-display);
  font-size: var(--font-size-3xl);
  font-weight: 800;
  line-height: var(--line-height-tight);
  color: var(--text-primary);
  margin-top: var(--space-3);
  margin-bottom: var(--space-4);
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.articles-hero-lead {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-6);
}

/* -------------------------------------------------------------
   2. FILTER & SEARCH CONTROLS
------------------------------------------------------------- */
.articles-controls-bar {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.articles-search-wrapper {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.articles-search-wrapper svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}

.articles-search-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px 16px 14px 46px;
  color: var(--text-primary);
  font-size: 0.9375rem;
  transition: border-color var(--transition-fast);
}

.articles-search-input:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 10px rgba(247, 192, 45, 0.2);
}

.articles-pills-row {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: center;
}

.articles-pill-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.articles-pill-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.articles-pill-btn.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(49, 92, 76, 0.25);
}

/* -------------------------------------------------------------
   3. ARTICLES GRID
------------------------------------------------------------- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.article-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-raised);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-card-hover);
}

.article-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
  font-size: 0.75rem;
}

.article-category-badge {
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-gold);
  background: var(--accent-gold-soft);
  border: 1px solid var(--accent-gold-border);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.article-date-readtime {
  color: var(--text-muted);
}

.article-title {
  font-family: var(--font-family-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  transition: color var(--transition-fast);
}

.article-card:hover .article-title {
  color: var(--accent-gold);
}

.article-excerpt {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.article-takeaways-box {
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-blue);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  margin-bottom: var(--space-5);
}

.article-takeaways-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: var(--space-1);
}

.article-takeaways-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.article-takeaways-list li {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: var(--space-1);
}

.article-takeaways-list li::before {
  content: "•";
  color: var(--accent-gold);
  font-weight: bold;
}

.article-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-4);
  gap: var(--space-3);
  flex-wrap: wrap;
}

.article-author-info {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.article-author-info strong {
  color: var(--text-secondary);
  display: block;
}

.article-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 14px;
  background: #25D366;
  color: #0b2e17;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.8125rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.article-wa-btn:hover {
  background: #20ba5a;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.articles-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-8);
  background: var(--bg-surface);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-muted);
}

/* -------------------------------------------------------------
   4. RESPONSIVENESS
------------------------------------------------------------- */
@media (max-width: 900px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .articles-hero-title {
    font-size: 2rem;
  }
  .article-title {
    font-size: 1.15rem;
  }
  .articles-pills-row {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: var(--space-2);
  }
}
