/* ============================================================
   MANATSURU GROUP — News Pages
   css/news.css
   ============================================================ */

/* ─── Page Hero ─── */
.news-page-hero {
  background: var(--c-dark);
  color: #fff;
  padding: 100px 0 52px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.news-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(200,149,46,.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 50%, rgba(42,114,192,.06) 0%, transparent 70%);
  pointer-events: none;
}

.news-page-hero .section-eyebrow {
  color: var(--c-gold);
  display: block;
  margin-bottom: 12px;
}

.news-page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: 0.06em;
}

/* ─── Breadcrumb ─── */
.news-breadcrumb-bar {
  padding: 12px 0;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-surface);
}

.news-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--c-text-muted);
}

.news-breadcrumb a {
  color: var(--c-text-muted);
  transition: color 0.2s;
}

.news-breadcrumb a:hover { color: var(--c-gold); }

.news-breadcrumb .sep { color: var(--c-border); }

/* ─── List Section ─── */
.news-list-section {
  padding-top: 56px;
  padding-bottom: var(--section-py);
}

/* ─── Filter Bar ─── */
.news-filter-bar {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--c-border);
}

.news-filter-left {
  flex: 1;
  min-width: 0;
}

.news-filter-right {
  flex: 0 0 260px;
}

/* Result count */
.news-result-count {
  font-size: 0.78rem;
  color: var(--c-text-muted);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

.news-result-count strong {
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-text);
  margin-right: 2px;
}

/* Category filter buttons */
.news-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.news-category {
  padding: 5px 16px;
  border: 1px solid var(--c-border);
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--c-text-mid);
  cursor: pointer;
  transition: all 0.22s;
  letter-spacing: 0.04em;
}

.news-category:hover {
  border-color: var(--c-gold);
  color: var(--c-gold);
}

.news-category.active {
  background: var(--c-gold);
  border-color: var(--c-gold);
  color: #fff;
}

/* Search box */
.news-search-box {
  position: relative;
}

.news-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--c-text-muted);
  pointer-events: none;
  display: block;
}

.news-search-box input {
  width: 100%;
  padding: 11px 16px 11px 38px;
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--c-text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.news-search-box input::placeholder {
  color: var(--c-text-muted);
}

.news-search-box input:focus {
  border-color: var(--c-gold);
  box-shadow: 0 0 0 3px rgba(200,149,46,.08);
}

/* ─── News Items ─── */
.news-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-item-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.news-item {
  display: flex;
  gap: 0;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-left: 3px solid transparent;
  overflow: hidden;
  transition: box-shadow 0.25s, border-left-color 0.25s;
}

.news-item:hover {
  box-shadow: 0 6px 28px rgba(0,0,0,0.07);
}

/* Category accent color on hover */
.news-item[data-category="event"]:hover   { border-left-color: var(--c-blue); }
.news-item[data-category="product"]:hover { border-left-color: var(--c-gold); }
.news-item[data-category="update"]:hover  { border-left-color: #2d8a4e; }

.news-item-image {
  flex: 0 0 200px;
  overflow: hidden;
  background: var(--c-surface-dim);
  position: relative;
}

.news-item-image img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out-expo);
}

.news-item:hover .news-item-image img {
  transform: scale(1.05);
}

.news-item-content {
  flex: 1;
  min-width: 0;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-item-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.news-item-date {
  font-size: 0.78rem;
  color: var(--c-text-muted);
  font-feature-settings: "tnum";
  letter-spacing: 0.05em;
}

.news-item-category {
  display: inline-block;
  padding: 2px 9px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.07em;
}

.news-item-category.event   { background: var(--c-blue-pale);  color: var(--c-blue); }
.news-item-category.product { background: var(--c-gold-pale);  color: var(--c-gold); }
.news-item-category.update  { background: #edf7ed;             color: #2d8a4e; }

.news-item-title {
  font-size: 0.975rem;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 8px;
  color: var(--c-text);
  transition: color 0.2s;
}

.news-item-link:hover .news-item-title {
  color: var(--c-gold);
}

.news-item-excerpt {
  font-size: 0.855rem;
  color: var(--c-text-mid);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-item-arrow {
  display: flex;
  align-items: center;
  padding: 0 20px;
  color: var(--c-border);
  transition: color 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.news-item:hover .news-item-arrow {
  color: var(--c-gold);
  transform: translateX(3px);
}

.no-results {
  padding: 80px 20px;
  text-align: center;
  color: var(--c-text-muted);
  font-size: 0.95rem;
}

/* ─── Pagination ─── */
.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--c-border);
}

.news-pagination button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--c-border);
  background: transparent;
  cursor: pointer;
  color: var(--c-text-mid);
  transition: all 0.22s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.news-pagination button:hover:not(:disabled) {
  border-color: var(--c-gold);
  color: var(--c-gold);
}

.news-pagination button:disabled {
  opacity: 0.22;
  cursor: not-allowed;
}

.news-pagination .page-info {
  font-size: 0.82rem;
  color: var(--c-text-muted);
  letter-spacing: 0.06em;
  padding: 0 16px;
  min-width: 80px;
  text-align: center;
}

.news-pagination .page-info .current-page {
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-text);
}

/* ─── Detail: Back Link ─── */
.news-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--c-text-muted);
  margin-bottom: 48px;
  transition: color 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.news-back-link:hover { color: var(--c-gold); }

/* ─── Detail: Content ─── */
.news-detail-content {
  max-width: 820px;
}

.news-detail-content .news-header {
  margin-bottom: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--c-border);
}

.news-detail-content .news-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--c-dark);
  margin-bottom: 20px;
}

.news-detail-content .news-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.news-detail-content .news-date {
  font-size: 0.82rem;
  color: var(--c-text-muted);
  letter-spacing: 0.04em;
}

.news-detail-content .news-category {
  display: inline-block;
  padding: 3px 12px;
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.news-detail-content .news-category.event   { background: var(--c-blue-pale);  color: var(--c-blue); }
.news-detail-content .news-category.product { background: var(--c-gold-pale);  color: var(--c-gold); }
.news-detail-content .news-category.update  { background: #edf7ed;             color: #2d8a4e; }

.news-detail-content .news-content {
  font-size: 0.94rem;
  line-height: 1.9;
  color: var(--c-text-mid);
}

.news-detail-content .news-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--c-dark);
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-gold-pale);
}

.news-detail-content .news-content p { margin-bottom: 18px; }

.news-detail-content .news-content ul,
.news-detail-content .news-content ol {
  padding-left: 20px;
  margin-bottom: 18px;
  list-style: disc;
}

.news-detail-content .news-content ul ul {
  list-style: circle;
  margin-top: 6px;
  margin-bottom: 6px;
}

.news-detail-content .news-content li { margin-bottom: 6px; }

.news-detail-content .news-content a {
  color: var(--c-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.news-detail-content .news-content a:hover { color: var(--c-gold-light); }

.news-detail-content .news-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
}

.news-detail-content .news-content strong,
.news-detail-content .news-content b {
  color: var(--c-text);
  font-weight: 600;
}

/* Info sections */
.info-section {
  background: var(--c-surface-dim);
  border-left: 3px solid var(--c-gold-pale);
  padding: 16px 20px;
  margin-bottom: 16px;
}

.info-section-title {
  font-weight: 600;
  color: var(--c-dark);
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.exhibition-info-item {
  display: flex;
  gap: 8px;
}

.exhibition-info-label {
  font-weight: 500;
  min-width: 80px;
  color: var(--c-text);
}

/* Not found */
.news-not-found {
  text-align: center;
  padding: 100px 20px;
}

.news-not-found h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--c-text);
}

.news-not-found p {
  color: var(--c-text-muted);
  margin-bottom: 32px;
}

.news-not-found a {
  display: inline-block;
  padding: 10px 28px;
  border: 1px solid var(--c-gold);
  color: var(--c-gold);
  font-size: 0.875rem;
  transition: all 0.22s;
}

.news-not-found a:hover {
  background: var(--c-gold);
  color: #fff;
}

/* Bottom back link wrapper */
.news-bottom-nav {
  margin-top: 64px;
  padding-top: 36px;
  border-top: 1px solid var(--c-border);
}

/* ─── Responsive ─── */
@media (max-width: 860px) {
  .news-filter-bar {
    flex-direction: column;
    gap: 20px;
  }

  .news-filter-right {
    flex: none;
    width: 100%;
  }

  .news-item-image {
    flex: 0 0 160px;
  }
}

@media (max-width: 640px) {
  .news-item {
    flex-direction: column;
    border-left-width: 0;
    border-top: 3px solid transparent;
  }

  .news-item[data-category="event"]:hover   { border-top-color: var(--c-blue);  border-left-color: transparent; }
  .news-item[data-category="product"]:hover { border-top-color: var(--c-gold);  border-left-color: transparent; }
  .news-item[data-category="update"]:hover  { border-top-color: #2d8a4e;        border-left-color: transparent; }

  .news-item-image {
    flex: none;
    width: 100%;
    height: 180px;
  }

  .news-item-image img {
    min-height: unset;
    height: 100%;
  }

  .news-item-content {
    padding: 18px 20px;
  }

  .news-item-arrow {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }
}
