/* Premium News Page Styles */

/* Kontrolki aktualności (wzorowane na galerii) */
.news-controls-wrapper {
  background: var(--card);
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

/* Grupy filtrów */
.filter-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: 20px;
  margin-bottom: 15px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 12px;
}

[data-theme="dark"] .filter-group {
  background: rgba(255, 255, 255, 0.03);
}

.filter-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0 8px;
  border-right: 2px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .filter-label {
  border-right-color: rgba(255, 255, 255, 0.1);
}

.filter-group .category-btn {
  padding: 8px 14px;
  font-size: 13px;
}

[data-theme="dark"] .news-controls-wrapper {
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Wyszukiwarka news */
.news-search {
  position: relative;
  margin-bottom: 24px;
}

.news-search .search-input {
  width: 100%;
  padding: 16px 56px 16px 24px;
  font-size: 16px;
  border: 2px solid rgba(51, 54, 135, 0.15);
  border-radius: 16px;
  background: var(--bg);
  color: var(--text);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Filtry roku */
.news-years {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.year-btn {
  padding: 10px 18px;
  border: 2px solid rgba(51, 54, 135, 0.15);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.year-btn:hover {
  border-color: var(--acc);
  transform: translateY(-2px);
}

.year-btn.active {
  background: var(--acc);
  color: white;
  border-color: var(--acc);
}

/* Toolbar news */
.news-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.news-sort {
  display: flex;
  align-items: center;
  gap: 10px;
}

.news-view-switcher {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

[data-theme="dark"] .news-view-switcher {
  background: rgba(255, 255, 255, 0.05);
}

/* Container aktualności */
.news-container {
  min-height: 400px;
  position: relative;
}

/* Paginacja */
.news-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 40px auto;
  padding: 20px;
  flex-wrap: wrap;
}

.pagination-btn {
  padding: 10px 16px;
  border: 2px solid rgba(51, 54, 135, 0.15);
  background: transparent;
  color: var(--text);
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
  background: var(--acc);
  color: white;
  border-color: var(--acc);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(51, 54, 135, 0.25);
}

.pagination-btn.active {
  background: var(--acc);
  color: white;
  border-color: var(--acc);
  font-weight: 600;
}

.pagination-btn:disabled,
.pagination-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.pagination-dots {
  padding: 10px 8px;
  color: var(--text-muted);
  user-select: none;
  font-weight: 500;
}

[data-theme="dark"] .pagination-btn {
  border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .pagination-btn:hover:not(:disabled) {
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

/* Tagi aktualności */
.gallery-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .gallery-tags {
  border-top-color: rgba(255, 255, 255, 0.06);
}

.tag-btn {
  padding: 6px 14px;
  border: 1px solid rgba(51, 54, 135, 0.2);
  background: transparent;
  color: var(--text);
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.tag-btn:hover {
  background: rgba(51, 54, 135, 0.1);
  border-color: var(--acc);
  transform: translateY(-2px);
}

.tag-btn.active {
  background: var(--acc);
  color: white;
  border-color: var(--acc);
}

.tag-count {
  background: rgba(0, 0, 0, 0.1);
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

.tag-btn.active .tag-count {
  background: rgba(255, 255, 255, 0.2);
}

/* Widok siatki */
.news-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

/* Widok listy */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-item.list-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(51, 54, 135, 0.1);
  width: 100%;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.news-item.list-item:hover {
  transform: translateX(8px);
  box-shadow: 0 8px 24px rgba(51, 54, 135, 0.15);
}

.news-list .news-item {
  display: flex;
  gap: 24px;
  padding: 24px;
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Widok kart */
.news-cards {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

/* News item (uniwersalny) */
.news-item {
  background: var(--card);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: calc(var(--index, 0) * 50ms);
  opacity: 0;
}

[data-theme="dark"] .news-item {
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.news-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.news-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.news-item-date {
  font-size: 13px;
  color: var(--muted);
}

.news-item-category {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 8px;
  background: rgba(51, 54, 135, 0.1);
  color: var(--acc);
  border-radius: 8px;
  font-weight: 600;
}

.news-item-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.news-item-content {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 16px 0;
}

.news-item.expanded .news-item-content {
  color: var(--text);
}

.news-item-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.news-item-tag {
  font-size: 12px;
  padding: 4px 10px;
  background: rgba(51, 54, 135, 0.08);
  color: var(--acc);
  border-radius: 12px;
}

.news-item-actions {
  display: flex;
  gap: 12px;
}

.news-item-actions .btn.small {
  padding: 8px 16px;
  font-size: 13px;
}

/* Empty state news */
.news-empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
}

.news-empty-state h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 12px 0;
}

.news-empty-state p {
  font-size: 16px;
  margin: 0;
}

/* News page header - moved to page-headers.css */

.news-title {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  margin: 0 0 16px 0;
  background: linear-gradient(135deg, var(--acc) 0%, #5a5d8a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}

.news-subtitle {
  font-size: 18px;
  color: var(--muted);
  margin: 0;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Premium filters section */
.news-filters {
  background: var(--card);
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .news-filters {
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.news-filters::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(51, 54, 135, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* Search box premium */
.news-search-wrapper {
  position: relative;
  margin-bottom: 24px;
}

.news-search-input {
  width: 100%;
  padding: 16px 56px 16px 24px;
  font-size: 16px;
  border: 2px solid rgba(51, 54, 135, 0.15);
  border-radius: 16px;
  background: var(--bg);
  color: var(--text);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .news-search-input {
  border-color: rgba(255, 255, 255, 0.15);
}

.news-search-input:focus {
  outline: none;
  border-color: var(--acc);
  box-shadow: 0 0 0 4px rgba(51, 54, 135, 0.1);
  transform: translateY(-1px);
}

.news-search-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  opacity: 0.5;
  pointer-events: none;
}

/* Filter buttons */
.news-filter-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.filter-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 600;
}

.filter-btn {
  padding: 10px 20px;
  border: 2px solid rgba(51, 54, 135, 0.15);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .filter-btn {
  border-color: rgba(255, 255, 255, 0.15);
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--acc);
  transition: left 0.3s ease;
  z-index: -1;
}

.filter-btn:hover {
  border-color: var(--acc);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(51, 54, 135, 0.2);
}

.filter-btn.active {
  background: var(--acc);
  color: white;
  border-color: var(--acc);
  box-shadow: 0 4px 16px rgba(51, 54, 135, 0.3);
}

.filter-btn.active::before {
  left: 0;
}

/* Premium news grid */
.news-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  margin-bottom: 48px;
}

/* Premium news card */
.news-card {
  background: var(--card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

[data-theme="dark"] .news-card {
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.news-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--acc), #5a5d8a);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.news-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .news-card:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.news-card:hover::before {
  opacity: 1;
}

/* News card image */
.news-card-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover .news-card-image img {
  transform: scale(1.1);
}

.news-card-date {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

/* News card content */
.news-card-content {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card-category {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--acc);
  font-weight: 600;
  margin-bottom: 12px;
}

.news-card-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 16px 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-excerpt {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 20px 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* News card tags */
.news-card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.news-tag {
  font-size: 12px;
  padding: 4px 12px;
  background: rgba(51, 54, 135, 0.1);
  color: var(--acc);
  border-radius: 16px;
  font-weight: 500;
}

/* News card actions */
.news-card-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.news-card-btn {
  flex: 1;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.news-card-btn.primary {
  background: linear-gradient(135deg, var(--acc) 0%, #5a5d8a 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.news-card-btn.primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.news-card-btn.primary:hover::before {
  left: 100%;
}

.news-card-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(51, 54, 135, 0.4);
}

.news-card-btn.ghost {
  background: transparent;
  color: var(--acc);
  border: 2px solid var(--acc);
}

.news-card-btn.ghost:hover {
  background: var(--acc);
  color: white;
  transform: translateY(-2px);
}

/* Load more button */
.news-load-more {
  text-align: center;
  margin: 48px 0;
}

.load-more-btn {
  padding: 16px 48px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--acc) 0%, #5a5d8a 100%);
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.load-more-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.load-more-btn:hover::after {
  width: 300px;
  height: 300px;
}

.load-more-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(51, 54, 135, 0.4);
}

/* News stats */
.news-stats {
  text-align: center;
  padding: 20px;
  background: rgba(51, 54, 135, 0.05);
  border-radius: 16px;
  margin: 32px 0;
  font-size: 14px;
  color: var(--muted);
}

.news-stats strong {
  color: var(--acc);
  font-weight: 600;
}

/* Empty state */
.news-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
}

.news-empty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  opacity: 0.3;
}

.news-empty h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 12px 0;
}

.news-empty p {
  font-size: 16px;
  margin: 0;
}

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

.news-card {
  animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: calc(var(--index, 0) * 100ms);
  opacity: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .news-filters {
    padding: 24px 20px;
  }

  .news-title {
    font-size: 32px;
  }

  .news-subtitle {
    font-size: 16px;
  }

  .news-card-content {
    padding: 20px;
  }

  .news-card-title {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .news-filter-group {
    gap: 8px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  .news-card-actions {
    flex-direction: column;
  }

  .load-more-btn {
    padding: 14px 32px;
    font-size: 15px;
  }
}

/* Smooth scrollbar */
.news-filters::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.news-filters::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.news-filters::-webkit-scrollbar-thumb {
  background: rgba(51, 54, 135, 0.2);
  border-radius: 4px;
}

.news-filters::-webkit-scrollbar-thumb:hover {
  background: var(--acc);
}

[data-theme="dark"] .news-filters::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .news-filters::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
}

/* News Modal */
.news-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.news-modal.active {
  opacity: 1;
}

.news-modal.closing {
  opacity: 0;
}

.news-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.news-modal-content {
  position: relative;
  background: var(--bg);
  border-radius: 16px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.news-modal.active .news-modal-content {
  transform: translateY(0);
}

.news-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: 24px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.news-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 14px;
}

.news-modal-date {
  color: var(--text-secondary);
}

.news-modal-category {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.news-modal-title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  margin-bottom: 30px;
  line-height: 1.2;
  color: var(--text);
}

.news-modal-body {
  margin-bottom: 30px;
}

.news-modal-text {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.news-modal-gallery {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.news-modal-gallery .btn {
  width: 100%;
  justify-content: center;
}

.news-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.news-modal-tag {
  background: rgba(255, 255, 255, 0.05);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.news-modal-tag:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Mobile adjustments for modal */
@media (max-width: 768px) {
  .news-modal-content {
    padding: 30px 20px;
    margin: 10px;
  }
  
  .news-modal-title {
    font-size: 24px;
  }
  
  .news-modal-text {
    font-size: 16px;
    line-height: 1.6;
  }
}

/* Przyciski w stylu galerii */
.btn-news-more {
  flex: 1;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--acc), #5a5d8a);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-news-more::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.btn-news-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(51, 54, 135, 0.4);
}

.btn-news-more:hover::before {
  left: 100%;
}

.btn-news-gallery {
  padding: 12px 20px;
  background: transparent;
  color: var(--acc);
  border: 2px solid var(--acc);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-news-gallery:hover {
  background: var(--acc);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(51, 54, 135, 0.3);
}

/* Animacja pojawiania jak w galerii */
.news-item {
  opacity: 0;
  animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: calc(var(--index, 0) * 50ms);
}

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

/* Widok listy */
.news-list .news-item {
  display: flex;
  gap: 24px;
  padding: 24px;
  background: var(--card);
  border-radius: 16px;
  margin-bottom: 16px;
  border: 1px solid rgba(51, 54, 135, 0.1);
  transition: all 0.3s ease;
}

.news-list .news-item:hover {
  transform: translateX(8px);
  box-shadow: 0 8px 24px rgba(51, 54, 135, 0.15);
}

.news-list .news-item-header {
  flex-shrink: 0;
  width: 120px;
}

.news-list .news-item-content {
  flex: 1;
}

.news-list .news-item-actions {
  flex-shrink: 0;
  align-self: center;
}

/* Dodatkowe style dla widoku listy */
.news-item.list-item .news-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 8px;
}

[data-theme="dark"] .news-item.list-item .news-item-header {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.news-item.list-item .news-item-title {
  font-size: 1.4rem;
  margin: 8px 0;
  color: var(--text);
}

.news-item.list-item .news-item-content {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 8px 0;
}

.news-item.list-item .news-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.news-item.list-item .news-item-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .news-item.list-item .news-item-actions {
  border-top-color: rgba(255, 255, 255, 0.06);
}

/* Widok timeline (oś czasu) */
.news-timeline {
  padding: 20px 0;
}

.timeline-section {
  margin-bottom: 48px;
}

.timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--acc), #5a5d8a);
  color: white;
  border-radius: 12px;
  margin-bottom: 32px;
  box-shadow: 0 4px 16px rgba(51, 54, 135, 0.3);
}

.timeline-month {
  font-size: 20px;
  font-weight: 700;
  text-transform: capitalize;
}

.timeline-count {
  font-size: 14px;
  opacity: 0.9;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
}

.timeline-line {
  position: relative;
  padding-left: 60px;
}

.timeline-line::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--acc), transparent);
  opacity: 0.3;
}

.timeline-entry {
  position: relative;
  margin-bottom: 40px;
  opacity: 0;
  animation: slideInLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: calc(var(--index, 0) * 50ms);
}

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

.timeline-dot {
  position: absolute;
  left: -46px;
  top: 20px;
  width: 12px;
  height: 12px;
  background: var(--acc);
  border: 3px solid var(--bg);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(51, 54, 135, 0.2);
  z-index: 1;
}

.timeline-content {
  position: relative;
}

.timeline-date {
  position: absolute;
  left: -180px;
  top: 16px;
  width: 100px;
  text-align: right;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}

.timeline-card {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(51, 54, 135, 0.1);
  transition: all 0.3s ease;
}

.timeline-card:hover {
  transform: translateX(8px);
  box-shadow: 0 8px 24px rgba(51, 54, 135, 0.2);
}

.timeline-card .news-item {
  animation: none;
  opacity: 1;
}

/* Responsive timeline */
@media (max-width: 768px) {
  .timeline-line {
    padding-left: 40px;
  }
  
  .timeline-line::before {
    left: 12px;
  }
  
  .timeline-dot {
    left: -34px;
  }
  
  .timeline-date {
    position: static;
    margin-bottom: 8px;
    text-align: left;
    width: auto;
  }
}