/* ============================================================
   AUTOMATED INDUSTRY NEWS STYLES
   ============================================================ */

.industry-news-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f5f0 0%, #f4efe7 100%);
}

.industry-news-header {
  text-align: center;
  margin-bottom: 48px;
}

.industry-news-header .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green2);
  margin-bottom: 16px;
}

.industry-news-header .eyebrow::before {
  content: '';
  width: 34px;
  height: 1px;
  background: var(--gold);
}

.industry-news-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: var(--green);
  margin: 0 0 16px;
}

.industry-news-header p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

/* News Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.news-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 12px 32px rgba(16, 20, 17, .06);
  transition: all .3s var(--ease);
  position: relative;
  overflow: hidden;
}

.news-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--gold);
  transition: height .3s var(--ease);
}

.news-card:hover {
  box-shadow: 0 16px 40px rgba(16, 20, 17, .1);
  transform: translateY(-2px);
}

.news-card:hover::before {
  height: 100%;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: .8rem;
}

.news-source {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(37, 74, 49, .08);
  color: var(--green2);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.news-date {
  color: var(--muted);
  font-weight: 600;
}

.news-title {
  margin: 0 0 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.news-title a {
  color: var(--green);
  text-decoration: none;
  transition: color .25s var(--ease);
}

.news-title a:hover {
  color: var(--gold);
}

.news-excerpt {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.6;
  margin: 0 0 20px;
}

.news-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green2);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all .25s var(--ease);
}

.news-link:hover {
  color: var(--gold);
  transform: translateX(4px);
}

/* Loading State */
.news-loading {
  display: none;
  text-align: center;
  padding: 60px 20px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(37, 74, 49, .2);
  border-top: 3px solid var(--green2);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 600;
}

/* Error State */
.news-error {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.error-message {
  background: rgba(220, 53, 69, .08);
  border: 1px solid rgba(220, 53, 69, .2);
  border-radius: 16px;
  padding: 24px;
  max-width: 400px;
  margin: 0 auto;
}

.error-message p {
  color: #dc3545;
  font-weight: 600;
  margin: 0 0 16px;
}

.retry-btn {
  background: var(--gold);
  color: var(--green);
  border: none;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .25s var(--ease);
}

.retry-btn:hover {
  background: var(--gold2);
  transform: translateY(-1px);
}

/* News Controls */
.news-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.news-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--green2);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all .25s var(--ease);
}

.news-refresh-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--green);
  transform: translateY(-1px);
}

.news-refresh-btn svg {
  width: 16px;
  height: 16px;
  transition: transform .25s var(--ease);
}

.news-refresh-btn:hover svg {
  transform: rotate(180deg);
}

/* Auto-update Indicator */
.auto-update-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--muted);
  font-size: .8rem;
}

.update-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Responsive Design */
@media (max-width: 1120px) {
  .news-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 860px) {
  .industry-news-section {
    padding: 60px 0;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .news-card {
    padding: 24px;
  }
  
  .news-controls {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .news-card {
    padding: 20px;
  }
  
  .news-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .industry-news-header h2 {
    font-size: clamp(1.8rem, 6vw, 2.4rem);
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .industry-news-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  }
  
  .news-card {
    background: #333;
    border-color: #444;
    color: #fff;
  }
  
  .news-title a {
    color: #fff;
  }
  
  .news-excerpt {
    color: #ccc;
  }
}

/* Print styles */
@media print {
  .news-controls,
  .auto-update-indicator,
  .news-loading,
  .news-error {
    display: none !important;
  }
  
  .news-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
/* Industry News Automation Styles */

#industry-news-container {
  width: 100%;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.news-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  padding: 24px;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.news-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(209, 170, 93, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(16, 20, 17, 0.12);
}

.news-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.news-source {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(209, 170, 93, 0.15);
  color: #d1aa5d;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.news-date {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  font-weight: 600;
}

.news-title {
  margin: 0 0 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--white);
  font-weight: 700;
}

.news-excerpt {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.6;
  flex-grow: 1;
}

.news-link {
  color: #d1aa5d;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.news-link:hover {
  color: #e3c785;
  transform: translateX(4px);
}

@media (max-width: 860px) {
  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-card {
    padding: 20px;
  }

  .news-title {
    font-size: 1.1rem;
  }
}
