/* News Pages Styles - 2026 Version */
:root {
  --news-primary: #f97316;
  --news-primary-dark: #ea580c;
  --news-primary-light: #ffedd5;
  --news-gradient: linear-gradient(135deg, #ea580c 0%, #f97316 50%, #fb923c 100%);
  --news-gradient-dark: linear-gradient(135deg, #c2410c 0%, #ea580c 100%);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Hero Section - Compact */
.news-hero {
  position: relative;
  padding: 70px 0 50px;
  background: var(--news-gradient);
  overflow: hidden;
}

.news-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 10% 90%, rgba(251, 146, 60, 0.4) 0%, transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(234, 88, 12, 0.4) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(249, 115, 22, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

/* Decorative elements */
.news-hero::after {
  content: '';
  position: absolute;
  top: 20px;
  right: 10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 4s ease-in-out infinite;
}

.news-hero .container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.news-hero-content {
  flex: 1;
  max-width: 550px;
  animation: fadeInLeft 0.8s ease-out;
}

.news-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.6s ease-out;
}

.news-hero-title {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 12px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.news-hero-subtitle {
  font-size: 15px;
  color: rgba(255,255,255,0.9);
  line-height: 1.7;
  margin: 0;
}

.news-hero-illustration {
  flex-shrink: 0;
  width: 280px;
  height: 200px;
  animation: fadeInRight 0.8s ease-out, float 6s ease-in-out infinite;
}

.news-hero-illustration svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.15));
}

/* Navigation Tabs */
.news-nav-section {
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 70px;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.news-nav-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.news-nav-list {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
}

.news-nav-list::-webkit-scrollbar {
  display: none;
}

.news-nav-list li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
  white-space: nowrap;
}

.news-nav-list li a:hover {
  color: var(--news-primary);
  background: var(--news-primary-light);
}

.news-nav-list li.active a {
  color: var(--news-primary);
  border-bottom-color: var(--news-primary);
}

.news-nav-list li a svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Main Content Area */
.news-main {
  padding: 50px 0;
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
  min-height: 60vh;
}

.news-main .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* News Layout */
.news-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
}

/* Sidebar */
.news-sidebar {
  position: sticky;
  top: 130px;
  align-self: start;
  animation: fadeInLeft 0.6s ease-out;
}

.sidebar-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid rgba(249, 115, 22, 0.1);
}

.sidebar-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--news-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-title svg {
  width: 18px;
  height: 18px;
  color: var(--news-primary);
}

.category-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.category-list li {
  margin-bottom: 4px;
}

.category-list li:last-child {
  margin-bottom: 0;
}

.category-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s;
  border-left: 3px solid transparent;
}

.category-list li a:hover {
  background: var(--news-primary-light);
  color: var(--news-primary);
  border-left-color: var(--news-primary);
  padding-left: 18px;
}

.category-list li.active a {
  background: var(--news-primary-light);
  color: var(--news-primary);
  border-left-color: var(--news-primary);
  font-weight: 600;
}

.category-list li a svg {
  width: 16px;
  height: 16px;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s;
}

.category-list li a:hover svg,
.category-list li.active a svg {
  opacity: 1;
  transform: translateX(0);
}

/* News Content */
.news-content {
  min-width: 0;
  animation: fadeInUp 0.6s ease-out;
}

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

.news-main .news-list .news-item,
.news-list article.news-item {
  display: block !important;
  flex-direction: unset !important;
  align-items: unset !important;
  background: #fff;
  border-radius: 12px;
  padding: 24px 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: none;
  border: 1px solid #f1f5f9;
  position: relative;
  overflow: hidden;
}

.news-main .news-list .news-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--news-gradient);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.news-main .news-list .news-item:hover::before {
  transform: scaleY(1);
}

.news-main .news-list .news-item:hover,
.news-list article.news-item:hover {
  transform: translateX(8px);
  box-shadow: 0 8px 30px rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.2);
  padding-left: 28px;
}

/* Stagger animation for list items */
.news-list .news-item:nth-child(1) { animation: fadeInUp 0.5s ease-out 0.1s both; }
.news-list .news-item:nth-child(2) { animation: fadeInUp 0.5s ease-out 0.15s both; }
.news-list .news-item:nth-child(3) { animation: fadeInUp 0.5s ease-out 0.2s both; }
.news-list .news-item:nth-child(4) { animation: fadeInUp 0.5s ease-out 0.25s both; }
.news-list .news-item:nth-child(5) { animation: fadeInUp 0.5s ease-out 0.3s both; }
.news-list .news-item:nth-child(6) { animation: fadeInUp 0.5s ease-out 0.35s both; }
.news-list .news-item:nth-child(7) { animation: fadeInUp 0.5s ease-out 0.4s both; }
.news-list .news-item:nth-child(8) { animation: fadeInUp 0.5s ease-out 0.45s both; }
.news-list .news-item:nth-child(9) { animation: fadeInUp 0.5s ease-out 0.5s both; }
.news-list .news-item:nth-child(10) { animation: fadeInUp 0.5s ease-out 0.55s both; }

.news-item-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
  width: 100%;
}

.news-item-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.5;
  flex: 1;
  min-width: 0;
}

.news-item-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-item-title a:hover {
  color: var(--news-primary);
}

.news-item-date {
  font-size: 12px;
  color: #fff;
  white-space: nowrap;
  padding: 4px 10px;
  background: var(--news-gradient);
  border-radius: 20px;
  flex-shrink: 0;
  font-weight: 500;
}

.news-item-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

/* Pagination */
.news-pagination {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 6px;
  animation: fadeInUp 0.6s ease-out 0.6s both;
}

.news-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s;
}

.news-pagination a:hover {
  border-color: var(--news-primary);
  color: var(--news-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.15);
}

.news-pagination a.active {
  background: var(--news-gradient);
  border-color: var(--news-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.news-pagination .page-text {
  padding: 0 12px;
}

/* News Detail */
.news-detail-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out;
}

.news-detail-header {
  padding: 32px 32px 24px;
  border-bottom: 1px solid var(--border-light);
  background: linear-gradient(135deg, var(--news-primary-light) 0%, #fff 100%);
}

.news-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--news-primary);
  text-decoration: none;
  margin-bottom: 20px;
  transition: all 0.3s;
  font-weight: 500;
}

.news-back-link:hover {
  gap: 12px;
}

.news-back-link svg {
  width: 18px;
  height: 18px;
}

.news-detail-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.4;
  margin: 0 0 16px;
}

.news-detail-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: var(--text-light);
}

.news-detail-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--border-light);
}

.news-detail-meta svg {
  width: 16px;
  height: 16px;
  color: var(--news-primary);
}

.news-detail-content {
  padding: 32px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 2;
}

.news-detail-content p {
  margin: 0 0 20px;
}

.news-detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
}

.news-detail-content h2,
.news-detail-content h3,
.news-detail-content h4 {
  color: var(--text-primary);
  margin: 32px 0 16px;
}

.news-detail-content ul,
.news-detail-content ol {
  padding-left: 24px;
  margin: 16px 0;
}

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

.news-detail-content a {
  color: var(--news-primary);
  text-decoration: none;
}

.news-detail-content a:hover {
  text-decoration: underline;
}

/* Share Link */
.news-share {
  padding: 20px 32px;
  background: var(--news-primary-light);
  border-top: 1px solid rgba(249, 115, 22, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.share-label {
  font-size: 14px;
  color: var(--text-light);
}

.share-url {
  flex: 1;
  min-width: 200px;
  max-width: 500px;
  display: flex;
  align-items: center;
  gap: 0;
  background: #fff;
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: 8px;
  overflow: hidden;
}

.share-url input {
  flex: 1;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  border: none;
  background: transparent;
  outline: none;
}

.share-url button {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background: var(--news-gradient);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.share-url button:hover {
  filter: brightness(1.1);
}

/* Empty State */
.news-empty {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border-radius: 16px;
  animation: fadeInUp 0.6s ease-out;
}

.news-empty svg {
  width: 80px;
  height: 80px;
  color: var(--news-primary);
  opacity: 0.5;
  margin-bottom: 20px;
}

.news-empty p {
  font-size: 16px;
  color: var(--text-light);
  margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
  .news-layout {
    grid-template-columns: 1fr;
  }
  
  .news-sidebar {
    position: static;
    order: -1;
  }
  
  .sidebar-card {
    padding: 16px;
  }
  
  .category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .category-list li {
    margin-bottom: 0;
  }
  
  .category-list li a {
    padding: 8px 14px;
    background: var(--bg-light);
    border-radius: 20px;
    border-left: none;
  }
  
  .category-list li a:hover,
  .category-list li.active a {
    padding-left: 14px;
    border-left: none;
  }
  
  .news-hero-illustration {
    display: none;
  }
  
  .news-hero-title {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .news-hero {
    padding: 60px 0 40px;
  }
  
  .news-hero-title {
    font-size: 26px;
  }
  
  .news-nav-list li a {
    padding: 12px 14px;
    font-size: 13px;
  }
  
  .news-main {
    padding: 30px 0;
  }
  
  .news-main .news-list .news-item,
  .news-list article.news-item {
    padding: 20px;
  }
  
  .news-item-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .news-item-title a {
    white-space: normal;
  }
  
  .news-detail-header,
  .news-detail-content,
  .news-share {
    padding: 20px;
  }
  
  .news-detail-title {
    font-size: 20px;
  }
  
  .news-share {
    flex-direction: column;
    align-items: stretch;
  }
  
  .share-url {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .news-hero {
    padding: 50px 0 35px;
  }
  
  .news-hero-title {
    font-size: 22px;
  }
  
  .news-hero-subtitle {
    font-size: 14px;
  }
  
  .news-nav-list li a {
    padding: 10px 12px;
    font-size: 13px;
  }
  
  .news-nav-list li a svg {
    display: none;
  }
  
  .news-item-title {
    font-size: 15px;
  }
  
  .news-pagination a {
    min-width: 34px;
    height: 34px;
    font-size: 13px;
  }
}
