/* @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700&family=Inter:wght@400;600&display=swap'); */

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #666666; 
  --primary-light: #888888; /* Accent Grey */
  --secondary: #333333; /* Dark Grey */
  --success: #999999; /* Light Grey */
  --danger: #ef4444;
  --warning: #f59e0b;

  --mint-green: #777777; /* Grey */

  --bg-primary: #000000; /* Black */
  --bg-secondary: #111111;
  --bg-tertiary: #222222;
  --text-primary: #F5F5F5;
  --text-secondary: #CCCCCC;
  --text-muted: #888888;
  --border: #444444;
  
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  
  --radius: 0.5rem;
  --radius-lg: 0.75rem;

  --black:#000000; /* Pure Black */
}

body {
  font-family: 'Inter', 'Poppins', 'Open Sans', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
}

h2 {color: var(--success)}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navigation */
.navbar {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

/* Main content */
.main {
  min-height: calc(100vh - 4rem);
  padding: 2rem 0;
}

/* Hero section */
.hero {
  text-align: center;
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border-radius: var(--radius-lg);
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Posts grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.post-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.post-card.featured {
  border-color: var(--secondary);
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 5%);
}

.featured-badge {
  position: absolute;
  top: -1px;
  right: -1px;
  background: var(--warning);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 0 var(--radius-lg) 0 var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
}

.post-card h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  line-height: 1.4;
}

.post-card h3 a {
  text-decoration: none;
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.post-card h3 a:hover {
  color: var(--primary);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.post-meta a {
  color: var(--text-secondary);
  text-decoration: none;
}

.post-meta a:hover {
  color: var(--primary);
}

.meta-link {
  background: var(--black); color: white; padding: 0.5rem 1rem;
  border-radius: var(--radius); font-size: 0.875rem; text-decoration: none; display: inline-block;
  border:1px solid var(--border);
}

.likes {
  cursor: pointer;
  transition: color 0.2s ease;
}

.likes:hover {
  color: var(--danger);
}

.tags, .category {
  margin-top: 1rem;
}

.tag {
  display: inline-block;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  text-decoration: none;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  transition: all 0.2s ease;
}

.tag:hover {
  background: var(--primary);
  color: white;
}

.tag.large {
  padding: 0.5rem 1rem;
  font-size: 1rem;
}

.category-link {
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.category-link:hover {
  opacity: 0.8;
}

/* Single post */
.post {
  max-width: 800px;
  margin: 0 auto;
}

.post-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.post-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.post-content {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 3rem;
}

.post-content h2 {
  font-size: 1.875rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  color: var(--text-primary);
}

.post-content p {
  margin-bottom: 1.5rem;
}

.content-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 2rem 0;
  box-shadow: var(--shadow-md);
}

/* Like button */
.like-btn {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: inherit;
  box-shadow: 0 0 8px var(--primary-light);
}

.like-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 0 12px var(--primary-light);
}

.like-btn:active {
  transform: translateY(0);
}

.like-btn.small {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

.like-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Comments */
.comments {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.comments h3 {
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.comment {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.comment-content {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.comment-actions {
  display: flex;
  justify-content: flex-end;
}

.comment-actions .feature-btn {
  font-size: 0.875rem;
  padding: 0.25rem 0.75rem;
}

/* User profile */
.user-profile {
  max-width: 800px;
  margin: 0 auto;
}

.user-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
}

.user-avatar {
  font-size: 4rem;
  width: 6rem;
  height: 6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: white;
  border-radius: 50%;
}

.user-info h1 {
  margin-bottom: 0.5rem;
}

.user-info p {
  color: var(--text-secondary);
  font-size: 1.125rem;
}

/* Tag and category pages */
.tag-page, .category-page {
  max-width: 1000px;
  margin: 0 auto;
}

.tag-header, .category-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
}

.tag-header h1, .category-header h1 {
  margin-bottom: 1rem;
  color: var(--mint-green);
}

.tag-header p, .category-header p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

/* Sections */
.featured-section, .recent-section, .user-posts, .tagged-posts, .category-posts {
  margin-bottom: 3rem;
}

.featured-section h2, .recent-section h2, .user-posts h2, .tagged-posts h2, .category-posts h2 {
  margin-bottom: 2rem;
  color: var(--text-primary);
  font-size: 2rem;
}

/* Posts page */
.posts-page h1 {
  margin-bottom: 2rem;
  text-align: center;
  font-size: 2.5rem;
}

/* Entity page fallback */
.entity-page {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.entity-page h1 {
  margin-bottom: 2rem;
}

.entity-content {
  margin-bottom: 2rem;
  text-align: left;
}

/* Feature button */
.feature-btn {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: inherit;
  margin-left: 1rem;
  box-shadow: 0 0 8px var(--primary-light);
}

.feature-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 0 12px var(--primary-light);
}

.feature-btn.featured {
  background: var(--primary);
  color: white;
}

.feature-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Post actions */
.post-actions, .user-actions, .tag-actions, .category-actions {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.post-actions .like-btn, .post-actions .feature-btn {
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
}

/* Tags and Categories grids */
.tags-grid, .categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.tag-card, .category-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.tag-card:hover, .category-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.tag-card.featured, .category-card.featured {
  border-color: var(--secondary);
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 5%);
}

.tag-card h3, .category-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.tag-card h3 a, .category-card h3 a {
  text-decoration: none;
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.tag-card h3 a:hover, .category-card h3 a:hover {
  color: var(--primary);
}

.tag-card p, .category-card p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.tag-meta, .category-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.tag-preview {
  padding: 0.75rem;
  border-radius: var(--radius);
  margin-top: 1rem;
}

.category-color {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Pages sections */
.featured-tags, .featured-categories, .regular-tags, .regular-categories {
  margin-bottom: 3rem;
}

.featured-tags h2, .featured-categories h2, .regular-tags h2, .regular-categories h2 {
  margin-bottom: 2rem;
  color: var(--text-primary);
  font-size: 1.75rem;
}

.tags-page h1, .categories-page h1 {
  margin-bottom: 2rem;
  text-align: center;
  font-size: 2.5rem;
}
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .posts-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .post-header h1 {
    font-size: 2rem;
  }
  
  .post-content {
    font-size: 1rem;
  }
  
  .user-header {
    flex-direction: column;
    text-align: center;
  }
  
  .user-avatar {
    width: 5rem;
    height: 5rem;
    font-size: 3rem;
  }
  
  .navbar .container {
    flex-direction: column;
    height: auto;
    padding: 1rem;
    gap: 1rem;
  }
  
  .nav-links {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
  }
  
  .post-card {
    padding: 1rem;
  }
  
  .hero {
    padding: 2rem 1rem;
  }
  
  .post-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .comment-header {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* Dodaj te style do frontend/public/styles.css */

/* Navigation arrows */
.navigation-arrows {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  pointer-events: none;
  width: 100%;
  height: 0; /* No height to avoid blocking */
  /* Debug: add temporary border */
  /* border: 2px solid red; */
}

.navigation-arrow {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  cursor: pointer;
  pointer-events: auto; /* Enable clicks on arrows */
  min-width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-primary);
  backdrop-filter: blur(10px);
  background: #4a5568
  /* Debug: add temporary border */
  /* border: 2px solid blue; */
}

.navigation-arrow:hover {
  background: #2b2b2b;
  border-color: var(--primary);
  transform: scale(1.05);
  box-shadow: 0 20px 25px -5px rgba(228, 228, 228, 0.1), 0 10px 10px -5px rgba(196, 196, 196, 0.04);
}

.navigation-arrow.prev {
  left: 20px;
  padding: 0.75rem;
  flex-direction: row;
  position: absolute;
  top: 0;
}

.navigation-arrow.next {
  right: 20px;
  padding: 0.75rem;
  flex-direction: row-reverse;
  position: absolute;
  top: 0;
}

.nav-arrow-icon {
  font-size: 1.5rem;
  color: var(--primary);
  flex-shrink: 0;
  margin: 0 0.5rem;
}

.nav-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 200px;
}

.nav-text {
  flex: 1;
  min-width: 0; /* Allow text to shrink */
}

.nav-title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--text-primary);
}

.nav-image {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .navigation-arrow {
    min-width: 40px;
    height: 40px;
    padding: 0.5rem;
  }
  
  .navigation-arrow.prev {
    left: 10px;
  }
  
  .navigation-arrow.next {
    right: 10px;
  }
  
  /* Hide text and images on mobile, show only arrows */
  .nav-content {
    display: none;
  }
  
  .nav-arrow-icon {
    margin: 0;
    font-size: 1.25rem;
    display: block; /* Show arrows on mobile */
  }
}

@media (max-width: 480px) {
  .navigation-arrow {
    min-width: 35px;
    height: 35px;
    padding: 0.4rem;
  }
  
  .navigation-arrow.prev {
    left: 5px;
  }
  
  .navigation-arrow.next {
    right: 5px;
  }
  
  .nav-arrow-icon {
    font-size: 1rem;
    display: block; /* Show arrows on mobile */
  }
}

/* Desktop: Hide arrow icons, show only content */
@media (min-width: 769px) {
  .nav-arrow-icon {
    display: none;
  }
  
  .navigation-arrow {
    padding: 1rem;
  }
}

/* Dark theme adjustments */
@media (prefers-color-scheme: dark) {
  .navigation-arrow {
    background: var(--bg-secondary);
    border-color: var(--border);
  }

  .navigation-arrow:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary);
  }
}

/* Animation for navigation loading */
.navigation-arrows.loading .navigation-arrow {
  opacity: 0.5;
  pointer-events: none;
}

/* Accessibility */
.navigation-arrow:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.navigation-arrow:focus:not(:focus-visible) {
  outline: none;
}

/* Remove the container padding override - it breaks layout */



/* Universal Search Styles - Add to frontend/public/styles.css */

/* ============= UNIVERSAL SEARCH COMPONENT ============= */

.universal-search {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.search-header {
  text-align: center;
  margin-bottom: 2rem;
}

.search-header h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.5rem;
}

/* Text Search */
.search-text {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.search-warning {
  color: var(--danger);
  font-size: 0.75rem;
  margin-top: -1rem;
  margin-bottom: 1rem;
  display: none;
}

.search-input {
  flex: 1;
  min-width: 300px;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-button, .clear-button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}


.search-button {
  background: var(--primary);
  color: white;
  box-shadow: 0 0 8px var(--primary-light);
}

.search-button:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 0 12px var(--primary-light);
}

.clear-button {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.clear-button:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

/* Filters */
.search-filters {
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}

.search-filters h4 {
  margin: 0 0 1rem 0;
  color: var(--text-primary);
  font-size: 1.125rem;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.filter-select {
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.875rem;
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary);
}

.filter-radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
  cursor: pointer;
  font-size: 0.875rem;
}

.filter-option input[type="radio"] {
  margin: 0;
}

.filter-option:hover {
  color: var(--primary);
}

.filters-loading, .filters-error, .filters-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
  font-style: italic;
}

.filters-error {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
  border-radius: var(--radius);
  padding: 1rem;
}

/* Sort */
.search-sort {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius);
}

.search-sort label {
  font-weight: 600;
  color: var(--text-primary);
}

.sort-select {
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-width: 150px;
}

/* Results */
.search-results {
  margin-top: 2rem;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius);
}

.results-header span {
  font-weight: 600;
  color: var(--text-primary);
}

#results-time {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: normal;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.search-result-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.search-result-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}

.result-title {
  text-decoration: none;
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.result-title:hover {
  color: var(--primary);
}

.result-type {
  background: var(--primary);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  flex-shrink: 0;
}

.result-content {
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.result-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.result-likes {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--danger);
}

/* Loading states */
.results-loading, .results-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
}

.results-loading {
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.results-error {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* No results */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: var(--text-secondary);
}

.no-results h3 {
  margin: 0 0 1rem 0;
  color: var(--text-primary);
}

/* Pagination */
.pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.pagination-info {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.pagination-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  background: var(--bg-primary);
  color: var(--text-primary);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.pagination-btn:hover:not(:disabled) {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.pagination-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .search-text {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-input {
    min-width: auto;
    width: 100%;
  }
  
  .filters-grid {
    grid-template-columns: 1fr;
  }
  
  .results-grid {
    grid-template-columns: 1fr;
  }
  
  .result-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .pagination-buttons {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .universal-search {
    padding: 1rem 0.5rem;
  }
  
  .search-filters,
  .search-sort {
    padding: 1rem;
  }
  
  .search-result-card {
    padding: 1rem;
  }
}

/* Dodaj do frontend/public/styles.css - KROK 1: Checkbox styles */

/* ============= CHECKBOX FILTER STYLES ============= */

.filter-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.filter-option:hover {
  background: var(--bg-tertiary);
}

.filter-option input[type="checkbox"] {
  margin: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

.filter-option input[type="checkbox"]:checked + span {
  font-weight: 600;
  color: var(--primary);
}

/* Multiple select styling */
.filter-select[multiple] {
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.875rem;
  min-height: 120px;
}

.filter-select[multiple]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.filter-select[multiple] option {
  padding: 0.5rem;
  margin: 0.125rem 0;
  border-radius: var(--radius);
}

.filter-select[multiple] option:checked {
  background: var(--primary);
  color: white;
}

/* Enhanced filter group styling */
.filter-group {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  transition: all 0.2s ease;
}

.filter-group:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.05);
}

.filter-label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  display: block;
}

/* Active filter state */
.filter-group.has-selection {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.02);
}

.filter-group.has-selection .filter-label {
  color: var(--primary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .filter-checkbox-group {
    gap: 0.375rem;
  }
  
  .filter-option {
    padding: 0.375rem;
    font-size: 0.875rem;
  }
  
  .filter-option input[type="checkbox"] {
    width: 14px;
    height: 14px;
  }
  
  .filter-select[multiple] {
    min-height: 100px;
    font-size: 0.8125rem;
  }
}

@media (max-width: 480px) {
  .filter-group {
    padding: 0.75rem;
  }
  
  .filter-label {
    font-size: 0.8125rem;
    margin-bottom: 0.5rem;
  }
  
  .filter-option {
    padding: 0.25rem;
    font-size: 0.8125rem;
  }
  
  .filter-select[multiple] {
    min-height: 80px;
  }
}



/* ============= ACTIVE FILTER PILLS ============= */

.active-filters {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  animation: pillFadeIn 0.3s ease;
  user-select: none;
}

.filter-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
  background: var(--primary-light);
}

.filter-pill-remove {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0;
  margin: 0;
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  transition: all 0.2s ease;
  font-weight: bold;
}

.filter-pill-remove:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.filter-pill-remove:active {
  transform: scale(0.95);
}

.clear-all-filters {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 0.375rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.clear-all-filters:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.clear-all-filters:active {
  transform: translateY(0);
}

/* Pill animations */
@keyframes pillFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Text search pill styling */
.filter-pill.text-search {
  background: var(--success);
}

.filter-pill.text-search:hover {
  background: #059669;
  box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

/* Filter pills container */
.active-filters-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.active-filters-label {
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  margin-right: 0.5rem;
}

.active-filters-pills {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  flex: 1;
}

/* Empty state */
.no-active-filters {
  display: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .active-filters {
    padding: 1rem;
  }
  
  .active-filters-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .active-filters-pills {
    width: 100%;
    justify-content: flex-start;
  }
  
  .filter-pill {
    font-size: 0.8125rem;
    padding: 0.375rem 0.625rem;
  }
  
  .clear-all-filters {
    font-size: 0.8125rem;
    padding: 0.375rem 0.625rem;
  }
}

@media (max-width: 480px) {
  .active-filters {
    padding: 0.75rem;
    margin-bottom: 1.5rem;
  }
  
  .filter-pill {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    gap: 0.375rem;
  }
  
  .filter-pill-remove {
    width: 16px;
    height: 16px;
    font-size: 0.875rem;
  }
  
  .clear-all-filters {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }
}

/* Dark theme adjustments */
@media (prefers-color-scheme: dark) {
  .active-filters {
    background: var(--bg-secondary);
    border-color: var(--border);
  }

  .clear-all-filters {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-color: var(--border);
  }

  .clear-all-filters:hover {
    background: var(--bg-secondary);
    color: white;
    border-color: var(--primary);
  }
}

/* Focus states for accessibility */
.filter-pill-remove:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.clear-all-filters:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .filter-pill {
    border: 2px solid white;
  }
  
  .filter-pill-remove {
    border: 1px solid rgba(255, 255, 255, 0.5);
  }
  
  .clear-all-filters {
    border: 2px solid var(--text-primary);
  }
}


.filter-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.filter-toggle-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
}

.filter-toggle-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--primary);
}

.filter-toggle-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.toggle-icon {
  transition: transform 0.2s ease;
  font-size: 0.8rem;
}

.filter-toggle-btn.active .toggle-icon {
  transform: rotate(180deg);
}

.filters-form {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  overflow: auto;
}

.filters-form.collapsed {
  max-height: 0;
  padding: 0 2rem;
  margin-bottom: 0;
  opacity: 0;
  border: none;
}

.filters-form.expanded {
  max-height: 1000px;
  opacity: 1;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}





/* Hierarchy Cards - Add to style.css */

.hierarchy-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  position: relative;
  transition: all 0.3s ease;
}

.hierarchy-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.hierarchy-card.featured {
  border-color: var(var(--secondary));
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 5%);
}

.hierarchy-root {
  margin-bottom: 0;
}

.hierarchy-root.has-children {
  margin-bottom: 1.5rem;
}

.hierarchy-root h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
}

.hierarchy-root h3 a {
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s ease;
}

.hierarchy-root h3 a:hover {
  color: var(--primary);
}

.hierarchy-root .user-avatar {
  font-size: 1.5rem;
}

.hierarchy-description {
  color: var(--text-secondary);
  margin: 0 0 1rem 0;
  line-height: 1.5;
}

.hierarchy-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hierarchy-root .tag-preview {
  margin-top: 0.75rem;
}

.hierarchy-root .tag-preview .tag {
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
}

.hierarchy-children {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.hierarchy-children .children-header h4 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.children-list {
  display: grid;
  gap: 0.75rem;
}

.child-item {
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: 0.5rem;
  border-left: 3px solid var(--primary);
}

.child-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.child-info {
  flex: 1;
}

.child-info h5 {
  margin: 0 0 0.25rem 0;
  font-size: 0.875rem;
}

.child-info h5 a {
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s ease;
}

.child-info h5 a:hover {
  color: var(--primary);
}

.child-description {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.child-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Series Cards */
.series-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  position: relative;
  transition: all 0.3s ease;
}

.series-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.series-header {
  margin-bottom: 1.5rem;
}

.series-header h3 {
  margin: 0 0 0.5rem 0;
}

.series-header h3 a {
  text-decoration: none;
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.series-header h3 a:hover {
  color: var(--primary);
}

.series-meta {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.series-description {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.series-parts h4 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  color: var(--text-secondary);
}

.parts-list {
  display: grid;
  gap: 0.75rem;
}

.part-item {
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: 0.5rem;
  border-left: 3px solid var(--primary);
}

.part-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.part-info {
  flex: 1;
}

.part-info h5 {
  margin: 0 0 0.25rem 0;
  font-size: 0.875rem;
}

.part-info h5 a {
  text-decoration: none;
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.part-info h5 a:hover {
  color: var(--primary);
}

.part-date {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.part-likes {
  font-size: 0.75rem;
  color: var(--text-muted);
}





/* End of frontend/public/styles.css *//* frontend/public/sidebar-menu.css - Sidebar Menu Styles */

/* Main Layout */
.main-layout {
  display: flex;
  min-height: calc(100vh - 4rem); /* navbar height */
  gap: 0;
}

.sidebar-menu {
  width: 280px;
  min-width: 280px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  padding: 0;
  overflow-y: auto;
  position: sticky;
  top: 4rem; /* navbar height */
  height: calc(100vh - 4rem);
}

.main-content {
  flex: 1;
  padding: 0;
  min-width: 0; /* Allow content to shrink */
}

/* Menu Header */
.menu-header {
  padding: 1.5rem 1rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-primary);
}

.menu-header h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.breadcrumb-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.breadcrumb-back:hover {
  background: var(--bg-tertiary);
  color: var(--primary);
}

/* Menu Sections */
.menu-section {
  padding: 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.menu-section:last-child {
  border-bottom: none;
}

.menu-section h4 {
  margin: 0 0 1rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Category List */
.category-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.category-item {
  position: relative;
  margin-bottom: 0.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s ease;
}

.category-item:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.category-item.featured {
  background: linear-gradient(135deg, var(--bg-primary) 0%, #fef3c7 10%);
}

.category-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.2s ease;
  position: relative;
}

.category-link:hover {
  background: var(--bg-tertiary);
}

.category-icon {
  font-size: 1.25rem;
  width: 1.5rem;
  text-align: center;
  flex-shrink: 0;
}

.category-name {
  flex: 1;
  font-weight: 500;
  font-size: 0.875rem;
}

.post-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-tertiary);
  padding: 0.25rem 0.5rem;
  border-radius: 1rem;
  min-width: 1.5rem;
  text-align: center;
}

.featured-badge {
  font-size: 0.75rem;
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
}

.category-color {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
}

/* Tags Cloud */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  position: relative;
}

.tag-link:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.tag-link.featured {
  box-shadow: 0 0 0 1px rgba(255, 193, 7, 0.3);
}

.tag-name {
  font-weight: 500;
}

.tag-count {
  font-size: 0.625rem;
  opacity: 0.8;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.125rem 0.375rem;
  border-radius: 0.75rem;
  min-width: 1rem;
  text-align: center;
}

.tag-star {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  font-size: 0.625rem;
  background: var(--warning);
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .sidebar-menu {
    width: 240px;
    min-width: 240px;
  }
  
  .menu-section {
    padding: 0.75rem;
  }
  
  .category-link {
    padding: 0.625rem;
    gap: 0.5rem;
  }
  
  .category-name {
    font-size: 0.8125rem;
  }
}

@media (max-width: 768px) {
  .main-layout {
    flex-direction: column;
  }
  
  .sidebar-menu {
    width: 100%;
    min-width: auto;
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    max-height: 300px;
  }
  
  .menu-header {
    padding: 1rem;
  }
  
  .menu-section {
    padding: 0.75rem 1rem;
  }
  
  .category-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
  }
  
  .category-item {
    margin-bottom: 0;
  }
  
  .tags-cloud {
    justify-content: center;
  }
  
  .tag-link {
    font-size: 0.6875rem;
    padding: 0.25rem 0.5rem;
  }
}

@media (max-width: 480px) {
  .sidebar-menu {
    max-height: 250px;
  }
  
  .menu-header {
    padding: 0.75rem;
  }
  
  .menu-header h3 {
    font-size: 1rem;
  }
  
  .menu-section {
    padding: 0.5rem 0.75rem;
  }
  
  .menu-section h4 {
    font-size: 0.8125rem;
    margin-bottom: 0.75rem;
  }
  
  .category-list {
    grid-template-columns: 1fr;
    gap: 0.375rem;
  }
  
  .category-link {
    padding: 0.5rem;
  }
  
  .category-icon {
    font-size: 1rem;
    width: 1.25rem;
  }
  
  .category-name {
    font-size: 0.75rem;
  }
  
  .post-count {
    font-size: 0.6875rem;
    padding: 0.125rem 0.375rem;
  }
}

/* Scrollbar Styling */
.sidebar-menu::-webkit-scrollbar {
  width: 6px;
}

.sidebar-menu::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
}

.sidebar-menu::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.sidebar-menu::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Animation for menu transitions */
.category-item,
.tag-link {
  animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
  .sidebar-menu {
    background: #1a202c;
    border-right-color: #2d3748;
  }
  
  .menu-header {
    background: #2d3748;
    border-bottom-color: #4a5568;
  }
  
  .menu-section {
    border-bottom-color: #2d3748;
  }
  
  .category-link:hover {
    background: #2d3748;
  }
  
  .category-item.featured {
    background: linear-gradient(135deg, #2d3748 0%, #744210 10%);
  }
  
  .post-count {
    background: #4a5568;
  }
  
  .tag-count {
    background: rgba(0, 0, 0, 0.3);
  }
}

/* Dodaj te style do frontend/public/sidebar-menu.css - zastąp sekcje category-link i tag-link */

/* Uproszczone kategorie - bez post-count i featured-badge */
.category-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.2s ease;
  position: relative;
}

.category-link:hover {
  background: var(--bg-tertiary);
  transform: translateX(4px);
}

.category-link.active {
  background: var(--primary) !important;
  color: white !important;
  font-weight: 600;
}

.category-link.active .category-name {
  color: white !important;
}

.category-link.active .category-icon {
  transform: scale(1.1);
}

.category-icon {
  font-size: 1.25rem;
  width: 1.5rem;
  text-align: center;
  flex-shrink: 0;
}

.category-name {
  flex: 1;
  font-weight: 500;
  font-size: 0.875rem;
}

/* Uproszczone tagi - bez count i star */
.tag-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  position: relative;
}

.tag-link:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.tag-link.active {
  background: var(--primary) !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.tag-link.active .tag-name {
  color: white !important;
}

.tag-name {
  font-weight: 500;
}

/* Usuń style dla nieużywanych elementów */
.post-count,
.featured-badge,
.tag-count,
.tag-star {
  display: none !important;
}

/* Responsive enhancements */
@media (max-width: 768px) {
  .category-link:hover:not(.active) {
    transform: none;
  }
  
  .tag-link:hover:not(.active) {
    transform: none;
  }
}

/* Zachowaj pozostałe style bez zmian... */
