/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #2563eb;
  --primary-light: #60a5fa;
  --secondary: #64748b;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  
  --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;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
}

.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(--warning);
  background: linear-gradient(135deg, var(--bg-primary) 0%, #fef3c7 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);
}

.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(--danger);
  color: var(--danger);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: inherit;
}

.like-btn:hover {
  background: var(--danger);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.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;
}

.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(--warning);
  color: var(--warning);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: inherit;
  margin-left: 1rem;
}

.feature-btn:hover {
  background: var(--warning);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.feature-btn.featured {
  background: var(--warning);
  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(--warning);
  background: linear-gradient(135deg, var(--bg-primary) 0%, #fef3c7 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: rgba(255, 255, 255, 0.95);
  /* Debug: add temporary border */
  /* border: 2px solid blue; */
}

.navigation-arrow:hover {
  background: rgba(255, 255, 255, 1);
  border-color: var(--primary);
  transform: scale(1.05);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 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 mode support */
@media (prefers-color-scheme: dark) {
  .navigation-arrow {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(71, 85, 105, 0.5);
  }
  
  .navigation-arrow:hover {
    background: rgba(30, 41, 59, 1);
    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;
}

.search-button:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.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;
  }
}