/* ==========================================================================
   AiHub.sol - Daily AI News & Intelligence Section Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. News Hero Header & Breaking Ticker
   -------------------------------------------------------------------------- */
.news-hero-container {
  padding: 3.5rem 0 2rem;
  text-align: center;
  position: relative;
}

.news-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  background: rgba(0, 255, 163, 0.08);
  border: 1px solid rgba(0, 255, 163, 0.3);
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #00FFA3;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 15px rgba(0, 255, 163, 0.1);
}

.news-pulse-dot {
  width: 8px;
  height: 8px;
  background: #00FFA3;
  border-radius: 50%;
  box-shadow: 0 0 10px #00FFA3;
  animation: newsPulse 1.8s infinite ease-in-out;
}

@keyframes newsPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.8);
    opacity: 0.4;
  }
}

.news-hero-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.85rem;
  background: linear-gradient(135deg, #ffffff 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.news-hero-title span {
  background: linear-gradient(135deg, #00FFA3 0%, #DC1FFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.news-hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary, #94a3b8);
  max-width: 680px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   2. News Controls: Filter Pills & Search Bar
   -------------------------------------------------------------------------- */
.news-controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  padding: 1.25rem;
  background: rgba(16, 24, 39, 0.6);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-lg, 16px);
  backdrop-filter: blur(12px);
}

.news-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.news-filter-btn {
  padding: 0.45rem 0.95rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  color: var(--text-secondary, #94a3b8);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.news-filter-btn:hover {
  color: #fff;
  border-color: rgba(0, 255, 163, 0.4);
  background: rgba(0, 255, 163, 0.06);
}

.news-filter-btn.active {
  background: #00FFA3;
  color: #070709;
  border-color: #00FFA3;
  font-weight: 600;
  box-shadow: 0 0 15px rgba(0, 255, 163, 0.25);
}

.news-search-box {
  position: relative;
  min-width: 260px;
}

.news-search-input {
  width: 100%;
  padding: 0.55rem 1rem 0.55rem 2.4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md, 10px);
  color: #fff;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.news-search-input:focus {
  border-color: #00FFA3;
  box-shadow: 0 0 12px rgba(0, 255, 163, 0.15);
}

.news-search-icon {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   3. Featured / Breaking News Banner
   -------------------------------------------------------------------------- */
.featured-news-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  padding: 2.25rem;
  background: linear-gradient(135deg, rgba(20, 28, 48, 0.8) 0%, rgba(12, 17, 29, 0.95) 100%);
  border: 1px solid rgba(0, 255, 163, 0.35);
  border-radius: var(--radius-xl, 20px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 255, 163, 0.08);
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.featured-news-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #00FFA3, #DC1FFF);
}

.featured-news-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.news-badge {
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.news-badge-breaking {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #f87171;
}

.news-source-tag {
  color: var(--text-muted, #64748b);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.news-category-pill {
  padding: 0.2rem 0.6rem;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.featured-news-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.28;
  color: #fff;
  margin-bottom: 1rem;
}

.featured-news-summary {
  font-size: 0.98rem;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.featured-takeaways {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md, 12px);
  padding: 1.25rem;
}

.takeaways-heading {
  font-size: 0.82rem;
  font-weight: 700;
  color: #00FFA3;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.takeaways-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.takeaways-list li {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.takeaways-list li span.bullet {
  color: #00FFA3;
  font-weight: bold;
}

.featured-news-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* --------------------------------------------------------------------------
   4. News Cards Grid
   -------------------------------------------------------------------------- */
.news-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.75rem;
  margin-bottom: 4rem;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: rgba(16, 24, 39, 0.65);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-lg, 16px);
  padding: 1.5rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 255, 163, 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 255, 163, 0.06);
}

.news-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.news-card-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  margin-bottom: 0.85rem;
  transition: color 0.2s ease;
}

.news-card:hover .news-card-title {
  color: #00FFA3;
}

.news-card-summary {
  font-size: 0.9rem;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.news-card-takeaways {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.news-card-takeaways li {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.4;
  display: flex;
  gap: 0.4rem;
}

.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  gap: 0.75rem;
}

.news-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.news-card-tag {
  font-size: 0.72rem;
  color: #64748b;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.news-card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.news-btn-source {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #00FFA3;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  background: rgba(0, 255, 163, 0.08);
  border: 1px solid rgba(0, 255, 163, 0.2);
  text-decoration: none;
  transition: all 0.2s ease;
}

.news-btn-source:hover {
  background: #00FFA3;
  color: #070709;
}

.news-btn-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.news-btn-share:hover {
  color: #fff;
  border-color: #1da1f2;
  background: rgba(29, 161, 242, 0.15);
}

/* --------------------------------------------------------------------------
   5. Homepage News Section
   -------------------------------------------------------------------------- */
.home-news-section {
  padding: 3rem 0;
  border-top: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
}

.home-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* --------------------------------------------------------------------------
   6. Responsive Layout Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .featured-news-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.75rem;
  }
  
  .home-news-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .news-hero-title {
    font-size: 2.25rem;
  }
}

@media (max-width: 768px) {
  .news-cards-grid {
    grid-template-columns: 1fr;
  }
  
  .home-news-grid {
    grid-template-columns: 1fr;
  }
  
  .news-controls-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .news-search-box {
    width: 100%;
  }
  
  .news-hero-title {
    font-size: 1.85rem;
  }
}
