/*
 * Modern Sidebar Design
 * Enhanced styling for sidebar widgets and controls
 */

/* ===== MODERN SIDEBAR WIDGETS ===== */
.sidebar-widget-modern {
  background: white;
  border-radius: 20px;
  margin-bottom: 32px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-widget-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.widget-background-modern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.widget-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.02) 0%, rgba(147, 51, 234, 0.02) 100%);
}

.widget-pattern-modern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(59, 130, 246, 0.1) 1px, transparent 0);
  background-size: 20px 20px;
  opacity: 0.3;
}

.widget-header-modern {
  position: relative;
  z-index: 2;
  padding: 24px 24px 16px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.widget-icon-container-modern {
  position: relative;
  flex-shrink: 0;
}

.widget-icon-modern {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  position: relative;
  z-index: 2;
}

.icon-pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border: 2px solid #3b82f6;
  border-radius: 12px;
  animation: pulseRing 2s infinite;
  opacity: 0.6;
}

@keyframes pulseRing {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.3;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
}

.widget-title-content {
  flex: 1;
}

.widget-title-modern {
  margin: 0 0 4px 0;
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  font-family: var(--font-secondary);
}

.widget-subtitle-modern {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
}

.widget-content-modern {
  position: relative;
  z-index: 2;
  padding: 0 24px 24px 24px;
}

/* ===== MODERN SEARCH WIDGET ===== */
.search-widget-modern .widget-icon-modern {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.search-widget-modern .icon-pulse-ring {
  border-color: #10b981;
}

.modern-search-form {
  margin-bottom: 20px;
}

.search-input-group-modern {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.search-input-wrapper-modern {
  flex: 1;
  position: relative;
}

.search-icon-modern {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 16px;
  z-index: 2;
}

.search-field-modern {
  width: 100%;
  height: 48px;
  padding: 0 48px 0 48px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
  color: #1f2937;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.search-field-modern:focus {
  outline: none;
  border-color: #3b82f6;
  background: white;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.search-clear-modern {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
  z-index: 2;
}

.search-clear-modern:hover {
  color: #6b7280;
  background: #f3f4f6;
}

.search-focus-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.search-field-modern:focus + .search-clear-modern + .search-focus-line {
  transform: scaleX(1);
}

.search-submit-modern {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  border: none;
  border-radius: 12px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.search-submit-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.search-submit-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.search-submit-modern:hover::before {
  left: 100%;
}

.search-suggestions-modern {
  background: #f8fafc;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #e2e8f0;
}

.suggestions-header-modern {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.suggestions-header-modern i {
  color: #f59e0b;
}

.suggestions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.suggestion-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  color: #475569;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.suggestion-pill:hover {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
  transform: translateY(-1px);
}

.suggestion-pill i {
  font-size: 10px;
  opacity: 0.7;
}

/* ===== MODERN CATEGORIES WIDGET ===== */
.categories-widget-modern .widget-icon-modern {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.categories-widget-modern .icon-pulse-ring {
  border-color: #8b5cf6;
}

.category-grid-modern {
  display: grid;
  gap: 16px;
}

.category-card-modern {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card-modern:hover {
  transform: translateY(-4px);
}

.category-link-modern {
  display: block;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  position: relative;
  z-index: 2;
}

.category-card-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.category-pattern-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.1) 1px, transparent 0);
  background-size: 16px 16px;
}

.category-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.category-card-modern.medical {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}

.category-card-modern.online {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.category-card-modern.professional {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
}

.category-card-modern.usa {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
}

.category-icon-wrapper-modern {
  position: relative;
  margin-bottom: 12px;
}

.category-icon-modern {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  position: relative;
  z-index: 2;
}

.category-icon-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-card-modern:hover .category-icon-glow {
  opacity: 1;
}

.category-content-modern {
  flex: 1;
}

.category-name-modern {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-secondary);
}

.category-description-modern {
  margin: 0 0 12px 0;
  font-size: 13px;
  opacity: 0.9;
  line-height: 1.4;
}

.category-stats-modern {
  display: flex;
  gap: 16px;
}

.stat-item-modern {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number-modern {
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.stat-label-modern {
  font-size: 11px;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.category-arrow-modern {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.3s ease;
}

.category-card-modern:hover .category-arrow-modern {
  background: rgba(255, 255, 255, 0.3);
  transform: translateX(4px);
}

/* ===== MODERN FEATURED POSTS WIDGET ===== */
.featured-posts-widget-modern .widget-icon-modern {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.featured-posts-widget-modern .icon-pulse-ring {
  border-color: #f59e0b;
}

.featured-posts-list-modern {
  display: grid;
  gap: 16px;
}

.featured-post-item-modern {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.featured-post-item-modern.aos-animate {
  opacity: 1;
  transform: translateY(0);
}

.featured-post-card-modern {
  background: #f8fafc;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  position: relative;
}

.featured-post-card-modern:hover {
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.featured-post-thumbnail-modern {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  aspect-ratio: 16/9;
}

.featured-post-thumbnail-modern img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.featured-post-card-modern:hover .featured-post-thumbnail-modern img {
  transform: scale(1.05);
}

.thumbnail-overlay-modern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.featured-post-card-modern:hover .thumbnail-overlay-modern {
  opacity: 1;
}

.play-icon-modern {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1f2937;
  font-size: 16px;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.featured-post-card-modern:hover .play-icon-modern {
  transform: scale(1);
}

.featured-post-category-modern {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  color: white;
  display: flex;
  align-items: center;
  gap: 4px;
}

.featured-post-category-modern.medical-bg {
  background: #ef4444;
}

.featured-post-category-modern.online-bg {
  background: #10b981;
}

.featured-post-category-modern.professional-bg {
  background: #8b5cf6;
}

.featured-post-category-modern.usa-bg {
  background: #3b82f6;
}

.featured-rank-modern {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.featured-post-content-modern {
  flex: 1;
}

.featured-post-title-modern {
  margin: 0 0 8px 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.featured-post-title-modern a {
  color: #1f2937;
  text-decoration: none;
  transition: color 0.2s ease;
}

.featured-post-title-modern a:hover {
  color: #3b82f6;
}

.featured-post-meta-modern {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
}

.meta-item-modern {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #6b7280;
}

.meta-item-modern i {
  font-size: 10px;
}

.featured-post-excerpt-modern {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
  margin-bottom: 12px;
}

.featured-post-footer-modern {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-rating-modern {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rating-stars-modern {
  display: flex;
  gap: 1px;
}

.rating-stars-modern i {
  font-size: 10px;
  color: #fbbf24;
}

.rating-text-modern {
  font-size: 11px;
  font-weight: 600;
  color: #374151;
}

.bookmark-btn-modern {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.bookmark-btn-modern:hover {
  color: #3b82f6;
  background: #eff6ff;
}

/* ===== MODERN NEWSLETTER WIDGET ===== */
.newsletter-widget-modern .widget-icon-modern {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.newsletter-widget-modern .icon-pulse-ring {
  border-color: #06b6d4;
}

.newsletter-widget-modern .widget-background-modern.newsletter-bg {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.05) 0%, rgba(8, 145, 178, 0.05) 100%);
}

.newsletter-pattern-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(6, 182, 212, 0.1) 1px, transparent 0);
  background-size: 20px 20px;
  opacity: 0.3;
}

.newsletter-stats-modern {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 16px;
  background: rgba(6, 182, 212, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(6, 182, 212, 0.1);
}

.stat-item-newsletter {
  text-align: center;
}

.stat-number-newsletter {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #0891b2;
  line-height: 1;
}

.stat-label-newsletter {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.newsletter-form-modern {
  margin-bottom: 16px;
}

.newsletter-input-group-modern {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.newsletter-input-wrapper-modern {
  flex: 1;
  position: relative;
}

.newsletter-icon-modern {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 14px;
  z-index: 2;
}

.newsletter-input-wrapper-modern input {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 44px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
  color: #1f2937;
  font-size: 14px;
  transition: all 0.3s ease;
}

.newsletter-input-wrapper-modern input:focus {
  outline: none;
  border-color: #06b6d4;
  background: white;
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1);
}

.newsletter-focus-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #06b6d4, #0891b2);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.newsletter-input-wrapper-modern input:focus + .newsletter-focus-line {
  transform: scaleX(1);
}

.newsletter-submit-modern {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  border: none;
  border-radius: 12px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.3s ease;
}

.newsletter-submit-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.3);
}

.newsletter-privacy-modern {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #64748b;
  margin-bottom: 16px;
}

.newsletter-privacy-modern i {
  color: #10b981;
}

.newsletter-benefits-modern {
  display: grid;
  gap: 8px;
}

.benefit-item-modern {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #475569;
}

.benefit-item-modern i {
  color: #10b981;
  font-size: 10px;
}

/* ===== MODERN QUICK LINKS WIDGET ===== */
.quick-links-widget-modern .widget-icon-modern {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.quick-links-widget-modern .icon-pulse-ring {
  border-color: #f59e0b;
}

.quick-links-grid-modern {
  display: grid;
  gap: 12px;
}

.quick-link-item-modern {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.quick-link-item-modern:hover {
  background: white;
  border-color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.quick-link-item-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.05), transparent);
  transition: left 0.5s ease;
}

.quick-link-item-modern:hover::before {
  left: 100%;
}

.quick-link-icon-modern {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  flex-shrink: 0;
}

.quick-link-content-modern {
  flex: 1;
}

.quick-link-content-modern h5 {
  margin: 0 0 2px 0;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}

.quick-link-content-modern span {
  font-size: 12px;
  color: #6b7280;
}

.quick-link-arrow-modern {
  color: #9ca3af;
  font-size: 12px;
  transition: all 0.3s ease;
}

.quick-link-item-modern:hover .quick-link-arrow-modern {
  color: #3b82f6;
  transform: translateX(4px);
}

/* ===== MODERN CONTROLS HEADER ===== */
.category-controls-professional,
.search-filters-professional {
  background: white;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.category-controls-professional::before,
.search-filters-professional::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.02) 0%, rgba(147, 51, 234, 0.02) 100%);
  z-index: 1;
}

.controls-header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.results-info h2 {
  margin: 0 0 4px 0;
  font-size: 24px;
  font-weight: 800;
  color: #1f2937;
  font-family: var(--font-secondary);
}

.results-count {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
}

.view-controls {
  display: flex;
  gap: 8px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.view-btn {
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.3s ease;
  position: relative;
}

.view-btn:hover {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
}

.view-btn.active {
  background: white;
  color: #3b82f6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filters-controls {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  align-items: end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-group label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.filter-select {
  height: 44px;
  padding: 0 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
  color: #1f2937;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
}

.filter-select:focus {
  outline: none;
  border-color: #3b82f6;
  background: white;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.filter-actions {
  display: flex;
  gap: 12px;
  align-items: end;
}

.btn {
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.btn-outline {
  background: white;
  color: #6b7280;
  border: 2px solid #e5e7eb;
}

.btn-outline:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #374151;
}

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

.btn:hover::before {
  left: 100%;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .sidebar-widget-modern {
    margin-bottom: 24px;
  }
  
  .widget-header-modern {
    padding: 20px 20px 12px 20px;
  }
  
  .widget-content-modern {
    padding: 0 20px 20px 20px;
  }
  
  .controls-header {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  
  .view-controls {
    align-self: flex-end;
  }
  
  .filters-controls {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .filter-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .suggestions-grid {
    grid-template-columns: 1fr;
  }
  
  .category-stats-modern {
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .search-input-group-modern {
    flex-direction: column;
  }
  
  .search-submit-modern {
    width: 100%;
    height: 48px;
  }
  
  .newsletter-input-group-modern {
    flex-direction: column;
  }
  
  .newsletter-submit-modern {
    width: 100%;
    height: 44px;
  }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
  .sidebar-widget-modern {
    background: #1f2937;
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  .widget-title-modern {
    color: #f9fafb;
  }
  
  .widget-subtitle-modern {
    color: #9ca3af;
  }
  
  .search-field-modern,
  .filter-select,
  .newsletter-input-wrapper-modern input {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
  }
  
  .search-field-modern:focus,
  .filter-select:focus,
  .newsletter-input-wrapper-modern input:focus {
    background: #4b5563;
  }
  
  .featured-post-card-modern {
    background: #374151;
    border-color: #4b5563;
  }
  
  .featured-post-card-modern:hover {
    background: #4b5563;
  }
  
  .quick-link-item-modern {
    background: #374151;
    border-color: #4b5563;
  }
  
  .quick-link-item-modern:hover {
    background: #4b5563;
  }
  
  .category-controls-professional,
  .search-filters-professional {
    background: #1f2937;
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  .results-info h2 {
    color: #f9fafb;
  }
  
  .results-count {
    color: #9ca3af;
  }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
  .sidebar-widget-modern,
  .category-card-modern,
  .featured-post-card-modern,
  .quick-link-item-modern,
  .btn,
  .view-btn,
  .search-submit-modern,
  .newsletter-submit-modern {
    transition: none;
  }
  
  .icon-pulse-ring {
    animation: none;
  }
  
  .featured-post-item-modern {
    opacity: 1;
    transform: none;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
  .sidebar-widget-modern {
    border: 2px solid #000;
  }
  
  .widget-icon-modern {
    border: 2px solid #fff;
  }
  
  .search-field-modern,
  .filter-select,
  .newsletter-input-wrapper-modern input {
    border: 2px solid #000;
  }
  
  .btn-primary {
    background: #000;
    border: 2px solid #000;
  }
  
  .btn-outline {
    border: 2px solid #000;
    color: #000;
  }
}