/* News Page Styles */
.news-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
}

/* Search Container */
.search-container {
  margin-bottom: 1.5rem;
}

#newsSearch {
  width: 100%;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  border: 2px solid var(--md-default-fg-color--lightest);
  border-radius: 6px;
  background-color: var(--md-default-bg-color);
  color: var(--md-default-fg-color);
  transition: border-color 0.2s;
}

#newsSearch:focus {
  outline: none;
  border-color: var(--md-primary-fg-color);
}

/* News Container */
.news-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Individual News Card */
.news-card {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--md-default-bg-color);
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 6px;
  transition: box-shadow 0.2s;
}

.news-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* News Image */
.news-image {
  flex-shrink: 0;
  width: 140px;
  height: 100px;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

/* News Content */
.news-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.news-content h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--md-primary-fg-color);
  line-height: 1.3;
}

/* News Meta */
.news-meta {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  font-size: 0.8rem;
  color: var(--md-default-fg-color--light);
}

.news-date {
  font-weight: 500;
}

.news-type {
  padding: 0.1rem 0.4rem;
  background-color: var(--md-primary-fg-color--light);
  border-radius: 3px;
  font-weight: 500;
  font-size: 0.75rem;
}

/* News Description */
.news-description {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--md-default-fg-color--light);
}

/* News Link Button */
.news-link {
  display: inline-block;
  margin-top: 0.3rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  color: var(--md-primary-fg-color);
  border: 1px solid var(--md-primary-fg-color);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s;
  font-weight: 500;
}

.news-link:hover {
  background-color: var(--md-primary-fg-color);
  color: var(--md-default-bg-color);
}

/* News Tags */
.news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.3rem;
}

.tag {
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  background-color: var(--md-default-fg-color--lightest);
  color: var(--md-default-fg-color);
  border-radius: 8px;
  font-weight: 500;
}

/* No Results */
.no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--md-default-fg-color--light);
  font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .news-card {
    flex-direction: column;
    gap: 0.8rem;
  }

  .news-image {
    width: 100%;
    height: 160px;
  }

  .news-content h3 {
    font-size: 1rem;
  }
}