
.news-container {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.news-item {
  background: linear-gradient(135deg, #000000 0%, rgba(0,0,0,0.95) 100%);
  border: 1px solid #333333;
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.news-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, #666666 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.news-item:hover::before {
  transform: scaleX(1);
}

.news-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  border-color: #555555;
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.news-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.news-date {
  background: rgba(102, 102, 102, 0.9);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.news-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-item-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.news-item-line::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.news-item-line:hover::before {
  transform: scaleY(1);
}

.news-item-line:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
}

.news-checkbox {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
  cursor: not-allowed;
  flex-shrink: 0;
}

.line-text {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
  flex: 1;
}

.news-meta {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.news-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(102, 102, 102, 0.2);
  color: #666666;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}


.reading-time {
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.reading-time::before {
  content: '📖';
  font-size: 1rem;
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.news-item {
  animation: fadeInUp 0.6s ease-out;
}

.news-item-line {
  animation: slideInFromLeft 0.4s ease-out;
  animation-fill-mode: both;
}

.news-item-line:nth-child(1) { animation-delay: 0.1s; }
.news-item-line:nth-child(2) { animation-delay: 0.2s; }
.news-item-line:nth-child(3) { animation-delay: 0.3s; }
.news-item-line:nth-child(4) { animation-delay: 0.4s; }
.news-item-line:nth-child(5) { animation-delay: 0.5s; }


[data-theme="dark"] .news-item {
  background: linear-gradient(135deg, #000000 0%, rgba(0,0,0,0.98) 100%);
  border-color: #333333;
}

[data-theme="dark"] .news-item-line {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .news-item-line:hover {
  background: rgba(255, 255, 255, 0.06);
}


[data-theme="light"] .news-item {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .news-item-line {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .news-item-line:hover {
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .news-date {
  background: rgba(102, 102, 102, 0.8);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}


@media (max-width: 768px) {
  .news-item {
    padding: 1.5rem;
    border-radius: 12px;
  }
  
  .news-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .news-title {
    font-size: 1.25rem;
  }
  
  .news-date {
    align-self: flex-start;
  }
  
  .news-item-line {
    padding: 0.6rem 0.8rem;
  }
  
  .line-text {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .news-item {
    padding: 1rem;
  }
  
  .news-title {
    font-size: 1.1rem;
  }
  
  .news-item-line {
    padding: 0.5rem 0.6rem;
    gap: 0.75rem;
  }
  
  .news-checkbox {
    width: 18px;
    height: 18px;
  }
  
  .line-text {
    font-size: 0.85rem;
  }
}
