/* 3DCP News Page Styles */

/* Override page layout for news */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.page-sidebar {
  width: 280px;
  padding: 20px;
  background: #fff;
  border-right: 1px solid var(--line-border, #e5e5e5);
}

.page-main {
  flex: 1;
  padding: 24px;
  min-width: 0;
  background: var(--line-bg, #f7f8f9);
}

/* Search Box */
.search-box {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.search-box input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--line-border, #e0e0e0);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.search-box input:focus {
  border-color: var(--line-green, #06C755);
}

.search-btn {
  padding: 10px 14px;
  background: var(--line-green, #06C755);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.search-btn:hover {
  background: var(--line-green-dark, #05a648);
}

.search-btn svg {
  width: 18px;
  height: 18px;
  stroke: white;
}

/* Filter Section */
.sidebar-section {
  margin-bottom: 24px;
}

.sidebar-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--line-text-secondary, #666);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-item {
  padding: 6px 12px;
  font-size: 13px;
  background: var(--line-bg, #f5f5f5);
  color: var(--line-text-secondary, #666);
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.2s;
}

.filter-item:hover {
  background: var(--line-green-light, #e8f9ef);
  color: var(--line-green, #06C755);
}

.filter-item.active {
  background: var(--line-green, #06C755);
  color: white;
}

.filter-icon {
  margin-right: 6px;
}

/* Sidebar Category Nav - Override for news */
.sidebar-nav.category-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-nav.category-nav .sidebar-item {
  padding: 10px 12px;
  border-radius: 8px;
  border-left: none;
}

.sidebar-nav.category-nav .sidebar-item:hover {
  background: var(--line-bg, #f7f8f9);
}

.sidebar-nav.category-nav .sidebar-item.active {
  background: var(--line-green-light, #e8f9ef);
  color: var(--line-green, #06C755);
  font-weight: 600;
  border-left: none;
}

/* Tag Cloud */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-cloud a {
  padding: 4px 10px;
  font-size: 12px;
  background: var(--line-bg, #f5f5f5);
  color: var(--line-text-secondary, #666);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s;
}

.tag-cloud a:hover {
  background: var(--line-green, #06C755);
  color: white;
}

.tag-cloud a.size-lg {
  font-size: 14px;
  font-weight: 600;
}

.tag-cloud a.size-md {
  font-size: 13px;
}

/* Stats */
.stats-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.stat-label {
  color: var(--line-text-secondary, #666);
}

.stat-value {
  font-weight: 600;
  color: var(--line-text, #333);
}

/* Current Filter */
.current-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--line-green-light, #e8f9ef);
  border-radius: 8px;
  margin-bottom: 20px;
}

.filter-label {
  font-size: 13px;
  color: var(--line-text-secondary, #666);
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  background: var(--line-green, #06C755);
  color: white;
  border-radius: 12px;
}

.filter-tag .remove-tag {
  cursor: pointer;
  font-size: 14px;
  opacity: 0.8;
}

.filter-tag .remove-tag:hover {
  opacity: 1;
}

.clear-filter {
  padding: 6px 12px;
  font-size: 12px;
  background: transparent;
  border: 1px solid var(--line-border, #e0e0e0);
  border-radius: 6px;
  cursor: pointer;
  color: var(--line-text-secondary, #666);
  transition: all 0.2s;
}

.clear-filter:hover {
  background: var(--line-red, #ff5551);
  border-color: var(--line-red, #ff5551);
  color: white;
}

/* News List */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.loading {
  text-align: center;
  padding: 40px;
  color: var(--line-text-secondary, #666);
}

.news-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: all 0.2s;
  border: 1px solid var(--line-border, #e0e0e0);
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  border-color: var(--line-green, #06C755);
}

.news-thumbnail {
  width: 120px;
  height: 90px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--line-bg, #f5f5f5);
  flex-shrink: 0;
}

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

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

.news-date {
  font-size: 12px;
  color: var(--line-text-secondary, #666);
}

.news-source {
  font-size: 11px;
  padding: 2px 8px;
  background: var(--line-bg, #f5f5f5);
  border-radius: 4px;
  color: var(--line-text-secondary, #666);
}

.news-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--line-text, #333);
  margin-bottom: 8px;
  line-height: 1.5;
}

.news-title a {
  color: inherit;
  text-decoration: none;
}

.news-title a:hover {
  color: var(--line-green, #06C755);
}

.news-summary {
  font-size: 13px;
  color: var(--line-text-secondary, #666);
  line-height: 1.6;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.news-tag {
  padding: 3px 8px;
  font-size: 11px;
  background: var(--line-bg, #f5f5f5);
  color: var(--line-text-secondary, #666);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.news-tag:hover {
  background: var(--line-green, #06C755);
  color: white;
}

.news-tag.country {
  background: #e3f2fd;
  color: #1565c0;
}

.news-tag.country:hover {
  background: #1565c0;
  color: white;
}

.news-tag.equipment {
  background: #fff3e0;
  color: #ef6c00;
}

.news-tag.equipment:hover {
  background: #ef6c00;
  color: white;
}

.news-tag.case {
  background: #e8f5e9;
  color: #2e7d32;
}

.news-tag.case:hover {
  background: #2e7d32;
  color: white;
}

.news-tag.industry {
  background: #f3e5f5;
  color: #7b1fa2;
}

.news-tag.industry:hover {
  background: #7b1fa2;
  color: white;
}

.news-tag.technology {
  background: #e1f5fe;
  color: #0277bd;
}

.news-tag.technology:hover {
  background: #0277bd;
  color: white;
}

.news-tag.regulation {
  background: #fce4ec;
  color: #c2185b;
}

.news-tag.regulation:hover {
  background: #c2185b;
  color: white;
}

.news-tag.business {
  background: #fff8e1;
  color: #ff8f00;
}

.news-tag.business:hover {
  background: #ff8f00;
  color: white;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding: 20px 0;
}

.pagination button {
  padding: 8px 16px;
  font-size: 14px;
  background: white;
  border: 1px solid var(--line-border, #e0e0e0);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.pagination button:hover:not(:disabled) {
  background: var(--line-green, #06C755);
  border-color: var(--line-green, #06C755);
  color: white;
}

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

.pagination button.active {
  background: var(--line-green, #06C755);
  border-color: var(--line-green, #06C755);
  color: white;
}

.pagination-info {
  font-size: 13px;
  color: var(--line-text-secondary, #666);
  margin: 0 12px;
}

/* No Results */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--line-text-secondary, #666);
}

.no-results-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.no-results h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .news-card {
    flex-direction: column;
  }
  
  .news-thumbnail {
    width: 100%;
    height: 160px;
  }
  
  .page-container {
    flex-direction: column;
  }
  
  .page-sidebar {
    width: 100%;
    order: 2;
    display: block;
    border-right: none;
    border-top: 1px solid var(--line-border, #e5e5e5);
  }
  
  .page-main {
    order: 1;
  }
  
  .current-filter {
    flex-wrap: wrap;
  }
}

/* 記事タイプバッジ */
.news-type-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #e2e8f0;
  color: #475569;
}
.news-type-badge[data-type="news"] {
  background: #dbeafe;
  color: #1e40af;
}
.news-type-badge[data-type="article"] {
  background: #dcfce7;
  color: #166534;
}
.news-type-badge[data-type="column"] {
  background: #fef3c7;
  color: #92400e;
}

/* ニュースカード */
.news-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.news-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.news-date {
  font-size: 0.85rem;
  color: #64748b;
}
.news-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.5;
}
.news-title a {
  color: #1e293b;
  text-decoration: none;
}
.news-title a:hover {
  color: #2563eb;
}
.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.news-source {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
}
.news-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.news-tag {
  display: inline-block;
  padding: 2px 8px;
  background: #f1f5f9;
  border-radius: 4px;
  font-size: 0.75rem;
  color: #475569;
}
