/* ============================================
   News Page Styles
   ============================================ */

/* ---------- Page Header ---------- */
.page-header {
  position: relative;
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--bg-white);
  overflow: hidden;
}

.page-header__bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
}

.page-header__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.page-header__en {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.8;
  margin-bottom: 8px;
}

.page-header__title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
}

/* ---------- Narrow Container ---------- */
.container--narrow {
  max-width: 800px;
}

/* ---------- Category Filter ---------- */
.news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.news-filter__btn {
  padding: 8px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.news-filter__btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.news-filter__btn--active {
  background-color: var(--primary);
  color: var(--bg-white);
  border-color: var(--primary);
}

.news-filter__btn--active:hover {
  background-color: var(--primary-dark);
  color: var(--bg-white);
}

/* ---------- News List ---------- */
.news-list__loading {
  text-align: center;
  color: var(--text-muted);
  padding: 60px 0;
}

.news-list__empty {
  text-align: center;
  color: var(--text-muted);
  padding: 60px 0;
}

.news-list__item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-color);
  text-decoration: none;
  color: inherit;
  transition: background-color var(--transition-fast);
}

.news-list__item:first-child {
  border-top: 1px solid var(--border-color);
}

.news-list__item:hover {
  background-color: var(--bg-light);
}

.news-list__item:hover .news-list__title {
  color: var(--primary);
}

.news-list__date {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 90px;
  padding-top: 2px;
}

.news-list__category {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  background-color: var(--primary-bg);
  color: var(--primary);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.news-list__title {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.6;
  transition: color var(--transition-fast);
}

.news-list__more {
  text-align: center;
  padding: 48px 0;
}

@media (max-width: 768px) {
  .news-list__item {
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .news-list__title {
    width: 100%;
  }
}

/* ---------- News Detail ---------- */
.news-detail {
  padding: 60px 0 0;
}

.news-detail__draft-banner {
  max-width: 800px;
  margin: 0 auto 32px;
  padding: 12px 24px;
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
}

.news-detail__loading {
  text-align: center;
  color: var(--text-muted);
  padding: 80px 0;
}

.news-detail__header {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 40px;
  border-bottom: 1px solid var(--border-color);
}

.news-detail__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.news-detail__date {
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.news-detail__category {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  background-color: var(--primary-bg);
  color: var(--primary);
  border-radius: var(--radius-full);
}

.news-detail__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.5;
}

.news-detail__eyecatch {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 24px;
}

.news-detail__eyecatch img {
  width: 100%;
  border-radius: var(--radius-md);
}

.news-detail__body {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px 60px;
  font-size: 1rem;
  line-height: 2;
  color: var(--text-secondary);
}

.news-detail__body h2 {
  font-size: 1.375rem;
  margin: 48px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}

.news-detail__body h3 {
  font-size: 1.125rem;
  margin: 32px 0 12px;
}

.news-detail__body p {
  margin-bottom: 1.5em;
}

.news-detail__body img {
  max-width: 100%;
  border-radius: var(--radius-md);
  margin: 24px 0;
}

.news-detail__body ul,
.news-detail__body ol {
  margin: 16px 0;
  padding-left: 1.5em;
  list-style: disc;
}

.news-detail__body ol {
  list-style: decimal;
}

.news-detail__body li {
  margin-bottom: 8px;
}

.news-detail__body a {
  color: var(--primary);
  text-decoration: underline;
}

.news-detail__body a:hover {
  color: var(--primary-dark);
}

.news-detail__back {
  padding: 0 0 80px;
}

.news-detail__error {
  text-align: center;
  padding: 80px 24px;
}

.news-detail__error h2 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.news-detail__error p {
  color: var(--text-muted);
  margin-bottom: 24px;
}
