/* Blog Index CSS - Styl dla strony głównej bloga */

/* Utility Classes */
.hidden {
  display: none !important;
}

/* Navigation Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 8px;
  border-radius: 8px;
  flex-shrink: 0;
}

.nav-logo:hover {
  transform: translateY(-2px);
  background: rgba(59, 130, 246, 0.05);
}

.nav-logo:active {
  transform: translateY(0);
}

.nav-logo picture {
  flex-shrink: 0;
  display: block;
}

.nav-logo-img {
  width: 120px;
  height: auto;
  max-height: 60px;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

@media (min-width: 768px) {
  .nav-logo-img {
    width: 180px;
    max-height: 80px;
  }
}

.nav-logo:hover .nav-logo-img {
  transform: scale(1.05);
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  color: #1f2937;
  transition: color 0.3s ease;
  letter-spacing: -0.3px;
}

.nav-logo:hover .brand-name {
  color: #3b82f6;
}

.brand-subtitle {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
  transition: color 0.3s ease;
  letter-spacing: 0.2px;
}

.nav-logo:hover .brand-subtitle {
  color: #9ca3af;
}

/* Navigation Container */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: flex-end;
}

.nav-links a {
  color: #4b5563;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  z-index: 1;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1e40af 100%);
  transition: width 0.3s ease;
  z-index: -1;
}

.nav-links a:not(.btn-contact):hover {
  color: #3b82f6;
  transform: translateY(-1px);
}

.nav-links a:not(.btn-contact):active {
  transform: translateY(0);
}

.nav-links a:not(.btn-contact):hover::after {
  width: 100%;
}

.nav-links .btn-contact {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1e40af 100%);
  color: white;
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  z-index: 1;
}

.nav-links .btn-contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1e40af 100%);
  z-index: -1;
  transition: opacity 0.3s ease;
}

.nav-links .btn-contact::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(25, 151, 170, 0.9) 0%, rgba(212, 122, 255, 0.9) 100%);
  transform: translate(-50%, -50%);
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), height 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
}

.nav-links .btn-contact:hover::after {
  width: 200px;
  height: 200px;
  opacity: 0.6;
}

.nav-links .btn-contact:hover {
  color: white;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.nav-links .btn-contact,
.nav-links .btn-contact * {
  position: relative;
  z-index: 2;
}

.nav-links a:not(.btn-contact) {
  z-index: 1;
}

.nav-links a:not(.btn-contact) * {
  position: relative;
  z-index: 1;
}

.nav-links .btn-contact:active {
  transform: scale(0.95);
}

.nav-links .btn-contact:active::after {
  width: 1.5rem;
  height: 1.5rem;
}

/* Mobile Theme Toggle */
.mobile-theme-toggle {
  width: 100%;
  text-align: left;
  padding: 12px 0;
  background: none;
  border: none;
  color: #4b5563;
  cursor: pointer;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding-left: 0;
}

.mobile-theme-toggle::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1e40af 100%);
  transition: width 0.3s ease;
}

.mobile-theme-toggle:hover::before {
  width: 4px;
}

.mobile-theme-toggle:hover {
  color: #2563eb;
  padding-left: 12px;
  background: rgba(59, 130, 246, 0.05);
  transform: translateX(4px);
}

.mobile-theme-toggle:active {
  transform: translateX(2px);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #1f2937;
  padding: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.mobile-menu-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.15) 50%, transparent 100%);
  transform: translate(-50%, -50%);
  transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), height 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.mobile-menu-btn:hover::before {
  width: 60px;
  height: 60px;
}

.mobile-menu-btn:hover {
  color: #2563eb;
  transform: scale(1.15) rotate(90deg);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
}

.mobile-menu-btn:active {
  transform: scale(0.95) rotate(45deg);
}

.mobile-menu-btn.active {
  transform: rotate(90deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.active {
  display: block;
  opacity: 1;
  visibility: visible;
}

.mobile-menu-content {
  position: absolute;
  top: 0;
  right: 0;
  left: auto;
  width: min(90vw, 380px);
  max-width: 380px;
  height: 100vh;
  height: 100dvh;
  background: white;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  padding: 80px 20px 20px;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu.active .mobile-menu-content {
  transform: translateX(0);
}

.dark .mobile-menu-content {
  background: #1f2937;
  border-top-color: #374151;
}

.mobile-menu a {
  display: block;
  padding: 12px 0;
  color: #4b5563;
  text-decoration: none;
  border-bottom: 1px solid #e5e7eb;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding-left: 0;
}

.mobile-menu a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1e40af 100%);
  transition: width 0.3s ease;
}

.mobile-menu a:hover::before {
  width: 4px;
}

.mobile-menu a:hover {
  color: #2563eb;
  padding-left: 12px;
  background: rgba(59, 130, 246, 0.05);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

/* Hero Section */
.hero-section {
  background: 
    linear-gradient(180deg, 
      transparent 0%, 
      transparent 45%,
      rgba(59, 130, 246, 0.2) 50%,
      rgba(37, 99, 235, 0.5) 55%,
      rgba(59, 130, 246, 0.75) 60%,
      rgba(37, 99, 235, 0.85) 70%,
      rgba(30, 64, 175, 0.85) 85%,
      rgba(30, 64, 175, 0.9) 100%
    ),
    url('https://images.unsplash.com/photo-1518770660439-4636190af475?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80') center/cover no-repeat;
  color: white;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
  animation: heroSectionFadeIn 1s ease-out;
  min-height: 300px;
  display: flex;
  align-items: center;
  background-blend-mode: overlay;
}

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

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(180deg, 
      transparent 0%,
      transparent 45%,
      radial-gradient(circle at 20% 60%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
      radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
      linear-gradient(135deg, rgba(59, 130, 246, 0.2) 50%, rgba(37, 99, 235, 0.2) 100%)
    );
  pointer-events: none;
  animation: heroBackgroundPulse 8s ease-in-out infinite;
  z-index: 1;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.05) 100%);
  pointer-events: none;
  z-index: 0;
}

@keyframes heroBackgroundPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  animation: fadeInUp 0.8s ease-out;
  width: 100%;
}

.hero-container::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: heroContainerLine 1.5s ease-out 1s forwards;
}

@keyframes heroContainerLine {
  to {
    width: 80%;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: stretch;
  margin-bottom: 32px;
  position: relative;
  z-index: 2;
}

@media (max-width: 1024px) {
  .hero-content {
    gap: 24px;
  }
}

/* Blog Hero Graphic */
/* Blog Hero Logo Animation */
@keyframes logoFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.02);
  }
}

@keyframes logoGlow {
  0%, 100% {
    filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.6));
  }
}

.blog-logo-animated {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 200px;
  position: relative;
}

.blog-hero-logo {
  width: 100%;
  height: auto;
  max-width: 200px;
  max-height: 200px;
  object-fit: contain;
  animation: logoFadeIn 1s ease-out forwards,
             logoFloat 3s ease-in-out 1s infinite,
             logoGlow 2s ease-in-out 1s infinite;
  transition: transform 0.3s ease;
}

.blog-hero-logo:hover {
  transform: scale(1.1) translateY(-5px) !important;
}

.blog-hero-graphic {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 2rem;
  animation: blogGraphicFadeIn 1s ease-out both;
  filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.2));
  position: relative;
  z-index: 3;
  margin-top: 1rem;
}

.blog-hero-graphic svg {
  width: 200px;
  height: 200px;
  max-width: 100%;
  animation: blogGraphicFloat 4s ease-in-out infinite;
}

@media (min-width: 768px) {
  .blog-hero-graphic svg {
    width: 250px;
    height: 250px;
  }
  
  .blog-logo-animated {
    width: 250px;
    height: 250px;
  }
  
  .blog-hero-logo {
    max-width: 250px;
    max-height: 250px;
  }
}

@media (min-width: 1024px) {
  .blog-hero-graphic svg {
    width: 300px;
    height: 300px;
  }
  
  .blog-logo-animated {
    width: 300px;
    height: 300px;
  }
  
  .blog-hero-logo {
    max-width: 300px;
    max-height: 300px;
  }
}

@keyframes blogGraphicFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes blogGraphicFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}

.blog-hero-graphic:hover svg {
  transform: translateY(-15px) scale(1.05);
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.3));
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-hero-graphic:hover .blog-hero-logo {
  transform: translateY(-15px) scale(1.1);
  filter: drop-shadow(0 12px 40px rgba(102, 126, 234, 0.5));
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Blog Title Container */
.blog-title-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  text-align: center;
  width: 100%;
  max-width: 100%;
  position: relative;
  z-index: 3;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Blog Main Title (H1) - Brand Title */
.blog-brand-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
  padding: 0;
  text-align: center;
  letter-spacing: -0.5px;
  animation: heroFadeInUp 0.8s ease-out 0.1s both;
  display: inline-flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  width: auto;
  max-width: 100%;
  position: relative;
  z-index: 1;
}

/* Blog Subtitle (H2) */
.blog-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  text-align: center;
  letter-spacing: -0.2px;
  animation: heroFadeInUp 0.8s ease-out 0.3s both;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  color: #1f2937;
  opacity: 1;
  width: auto;
  max-width: 100%;
  position: relative;
  z-index: 1;
}

/* Blog Main Title (H1) - Legacy support */
.blog-main-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 1.5rem 0;
  text-align: center;
  letter-spacing: -0.5px;
  animation: heroFadeInUp 0.8s ease-out 0.1s both;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .blog-title-container {
    gap: 1.25rem;
    margin-bottom: 2.5rem;
  }
  
  .blog-brand-title {
    font-size: 3rem;
    gap: 1rem;
    letter-spacing: -0.6px;
  }
  
  .blog-subtitle {
    font-size: 1.5rem;
    gap: 0.625rem;
  }
  
  .blog-main-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    gap: 0.75rem;
  }
}

@media (min-width: 1024px) {
  .blog-title-container {
    gap: 1.5rem;
    margin-bottom: 3rem;
  }
  
  .blog-brand-title {
    font-size: 3.5rem;
    gap: 1.25rem;
    letter-spacing: -0.8px;
  }
  
  .blog-subtitle {
    font-size: 1.75rem;
    gap: 0.75rem;
  }
  
  .blog-main-title {
    font-size: 3rem;
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  .blog-title-container {
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
  }
  
  .blog-brand-title {
    font-size: 1.75rem;
    gap: 0.5rem;
    flex-wrap: nowrap;
    white-space: nowrap;
    letter-spacing: -0.3px;
  }
  
  .blog-subtitle {
    font-size: 1rem;
    gap: 0.375rem;
    flex-wrap: wrap;
    line-height: 1.6;
  }
  
  .blog-brand-title .title-word,
  .blog-subtitle .title-word {
    display: inline-block;
  }
}

@media (max-width: 480px) {
  .blog-brand-title {
    font-size: 1.5rem;
    gap: 0.375rem;
  }
  
  .blog-subtitle {
    font-size: 0.9375rem;
    gap: 0.25rem;
  }
}

/* Title Word Effects */
.title-word {
  display: inline-block;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

/* Title words in brand title (Blog Kredo Labs) */
.blog-brand-title .title-word {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  filter: drop-shadow(0 2px 8px rgba(102, 126, 234, 0.3));
  animation: none;
}

/* Title words in subtitle (Automatyzacja Case Studies Poradniki) */
.blog-subtitle .title-word {
  color: #4b5563;
  opacity: 0.95;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.08));
  animation: none;
}

/* Legacy support for title-word in regular blog-main-title */
.blog-main-title:not(.blog-brand-title) .title-word {
  background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 50%, #c7d2fe 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite, letterFloat 4s ease-in-out infinite;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.title-word:nth-child(1) { animation-delay: 0s; }
.title-word:nth-child(2) { animation-delay: 0.1s; }
.title-word:nth-child(3) { animation-delay: 0.2s; }
.title-word:nth-child(5) { animation-delay: 0.3s; }
.title-word:nth-child(6) { animation-delay: 0.4s; }
.title-word:nth-child(7) { animation-delay: 0.5s; }
.title-word:nth-child(8) { animation-delay: 0.6s; }

/* Hover effects for brand title words */
.blog-brand-title .title-word:hover {
  transform: translateY(-2px) scale(1.05);
  filter: drop-shadow(0 4px 12px rgba(102, 126, 234, 0.5));
  background: linear-gradient(135deg, #667eea 0%, #fbbf24 50%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hover effects for subtitle words */
.blog-subtitle .title-word:hover {
  transform: translateY(-2px) scale(1.05);
  color: #667eea;
  filter: drop-shadow(0 2px 6px rgba(102, 126, 234, 0.25));
  opacity: 1;
}

/* Legacy hover support */
.title-word:hover {
  transform: translateY(-5px) scale(1.1);
  filter: drop-shadow(0 8px 16px rgba(255, 255, 255, 0.6));
  background: linear-gradient(135deg, #ffffff 0%, #fbbf24 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.title-separator {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
  animation: separatorPulse 2s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes letterFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-3px) rotate(1deg);
  }
  75% {
    transform: translateY(3px) rotate(-1deg);
  }
}

@keyframes separatorPulse {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Glow effect on hover */
.title-word::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
  border-radius: 50%;
}

.title-word:hover::before {
  opacity: 1;
  animation: glowPulse 1.5s ease-in-out infinite;
}

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

/* Hero Logo - Hidden */
.hero-logo {
  display: none !important;
}

.hero-logo-img {
  width: 180px;
  height: auto;
  max-height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 4px 20px rgba(255, 255, 255, 0.3)) brightness(1.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: heroLogoGlow 3s ease-in-out infinite;
  display: block;
}

@media (min-width: 768px) {
  .hero-logo-img {
    width: 240px;
    max-height: 120px;
  }
}

@media (min-width: 1024px) {
  .hero-logo-img {
    width: 300px;
    max-height: 150px;
  }
}

.hero-logo:hover .hero-logo-img {
  transform: scale(1.05);
  filter: drop-shadow(0 8px 30px rgba(255, 255, 255, 0.5)) brightness(1.2);
}

@keyframes heroLogoFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes heroLogoGlow {
  0%, 100% {
    filter: drop-shadow(0 4px 20px rgba(255, 255, 255, 0.3)) brightness(1.1);
  }
  50% {
    filter: drop-shadow(0 6px 25px rgba(255, 255, 255, 0.4)) brightness(1.15);
  }
}

.hero-text h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.2;
  animation: heroFadeInUp 0.8s ease-out 0.2s both;
  position: relative;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  letter-spacing: -0.5px;
}

.hero-text h1.blog-title {
  margin-bottom: 16px;
}

.hero-text h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  animation: expandLine 1s ease-out 0.8s forwards;
}

.hero-text h1.blog-title::after {
  display: none;
}

.hero-text p {
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.rss-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.rss-link:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.rss-icon {
  font-size: 16px;
}

@keyframes expandLine {
  to {
    width: 100%;
  }
}

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

/* Hero Text - Hidden */
.hero-text {
  display: none !important;
}

.hero-text p {
  font-size: 16px;
  opacity: 0.95;
  margin-bottom: 0;
  line-height: 1.6;
  animation: heroFadeInUp 0.8s ease-out 0.4s both;
  max-width: 100%;
}

.hero-search {
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  animation: heroSearchFadeIn 0.8s ease-out 0.3s both;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

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

.hero-search::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), height 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 0;
  pointer-events: none;
}

.hero-search:hover::before {
  width: 400px;
  height: 400px;
}

.hero-search:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.hero-search label {
  display: block;
  font-size: 12px;
  opacity: 0.8;
  margin-bottom: 8px;
}

.search-input-wrapper {
  position: relative;
}

/* Search Suggestions */
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  margin-top: 8px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.search-suggestions.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.search-suggestions[aria-hidden="false"] {
  display: block;
}

.search-suggestions[aria-hidden="true"] {
  display: none;
}

.search-suggestion-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-suggestion-item:last-child {
  border-bottom: none;
}

.search-suggestion-item:hover,
.search-suggestion-item[aria-selected="true"] {
  background-color: #f9fafb;
}

.search-suggestion-item .suggestion-icon {
  font-size: 16px;
  opacity: 0.6;
}

.search-suggestion-item .suggestion-title {
  font-weight: 500;
  color: #1f2937;
  flex: 1;
}

.search-suggestion-item .suggestion-category {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 8px;
  background: #f3f4f6;
  color: #6b7280;
}

.search-suggestions-empty {
  padding: 16px;
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
}

.hero-search input {
  width: 100%;
  padding: 14px 44px 14px 18px;
  border-radius: 10px;
  border: 2px solid transparent;
  font-size: 15px;
  background: white;
  color: #1f2937;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.clear-search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6b7280;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

.clear-search-btn[aria-hidden="false"] {
  display: flex;
}

.clear-search-btn:hover {
  background: rgba(0, 0, 0, 0.2);
  color: #1f2937;
  transform: translateY(-50%) scale(1.1);
}

.clear-search-btn:active {
  transform: translateY(-50%) scale(0.95);
}

/* Enhanced Focus States for Accessibility */
*:focus-visible {
  outline: 3px solid #3b82f6;
  outline-offset: 2px;
  border-radius: 4px;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid #3b82f6;
  outline-offset: 3px;
}

.filter-chip:focus-visible {
  outline: 3px solid #3b82f6;
  outline-offset: 2px;
}

.hero-search input:focus,
.hero-search input:focus-visible {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), 0 4px 20px rgba(59, 130, 246, 0.25);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.98);
  outline: 3px solid #3b82f6;
  outline-offset: 2px;
}

.hero-search input:hover:not(:focus) {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.05);
}

.hero-search input::placeholder {
  color: #9ca3af;
  transition: opacity 0.3s;
}

.hero-search input:focus::placeholder {
  opacity: 0.5;
}

.hero-search .hint {
  font-size: 11px;
  opacity: 0.7;
  margin-top: 8px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.hero-search:hover .hint {
  opacity: 1;
  color: rgba(255, 255, 255, 0.9);
}

.keyboard-hint {
  margin-left: 8px;
  opacity: 0.6;
}

kbd {
  display: inline-block;
  padding: 2px 6px;
  font-size: 10px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), inset 0 0 0 2px rgba(255, 255, 255, 0.1);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Featured Articles */
.featured-articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 32px;
  position: relative;
  max-width: 100%;
}

.featured-articles::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
}

.featured-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: #1f2937;
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
}

.featured-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.15) 50%, transparent 100%);
  transform: translate(-50%, -50%);
  transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), height 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
  pointer-events: none;
}

.featured-card:hover::before {
  width: 500px;
  height: 500px;
}

.featured-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 24px 48px rgba(102, 126, 234, 0.3);
}

.featured-card:active {
  transform: translateY(-4px) scale(0.98);
}

.featured-card > * {
  position: relative;
  z-index: 2;
}

.featured-card .badge {
  display: inline-block;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 12px;
  font-weight: 600;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.featured-card .badge::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), height 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.featured-card:hover .badge::before {
  width: 150px;
  height: 150px;
}

.featured-card:hover .badge {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.featured-card h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
  color: #1f2937;
  transition: all 0.3s ease;
  position: relative;
}

.featured-card h2::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.featured-card:hover h2::after {
  width: 100%;
}

.featured-card:hover h2 {
  color: #2563eb;
}

.featured-card p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 12px;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.featured-card .date {
  font-size: 14px;
  color: #9ca3af;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.featured-card .reading-time {
  font-size: 14px;
  color: #9ca3af;
  transition: all 0.3s ease;
}

.featured-card:hover .date,
.featured-card:hover .reading-time {
  color: #2563eb;
}

.featured-share {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
}

.share-btn {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  line-height: 1;
}

.share-btn:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.share-btn:active {
  transform: translateY(0);
}

.share-btn:focus-visible {
  outline: 3px solid #3b82f6;
  outline-offset: 2px;
}

/* Category Filters */
.filters-section {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  padding: 24px 20px;
  position: sticky;
  top: 73px;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.filters-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.filters-section:hover::after {
  opacity: 1;
}

.filters-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.filters-label {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
  margin-right: 8px;
  transition: all 0.3s ease;
  display: inline-block;
}

.filters-label:hover {
  transform: translateX(2px);
  color: #2563eb;
}

.filters-label.gradient-text {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1e40af 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.filter-chip {
  padding: 8px 16px;
  border-radius: 20px;
  border: 2px solid #e5e7eb;
  background: white;
  color: #4b5563;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.filter-chip::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.95) 0%, rgba(37, 99, 235, 0.95) 100%);
  transform: translate(-50%, -50%);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
  pointer-events: none;
}

.filter-chip:hover::before {
  width: 300px;
  height: 300px;
}

.filter-chip::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 0;
  pointer-events: none;
  border-radius: 2px;
}

.filter-chip:hover::after {
  width: 90%;
}

.filter-chip:hover {
  border-color: #3b82f6;
  color: white;
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
  background: transparent;
}

.filter-chip:active {
  transform: translateY(0) scale(0.98);
}

.filter-chip,
.filter-chip * {
  position: relative;
  z-index: 2;
}

.filter-chip.filter-active {
  background: var(--navy, #1e3a5f);
  color: white;
  border-color: var(--navy, #1e3a5f);
}

/* Category-specific colors */
.filter-chip[data-filter="edukacyjne"].filter-active {
  background: var(--cat-edukacyjne-text, #1e40af);
  border-color: var(--cat-edukacyjne-text, #1e40af);
}

.filter-chip[data-filter="praktyczne"].filter-active {
  background: var(--cat-praktyczne-text, #065f46);
  border-color: var(--cat-praktyczne-text, #065f46);
}

.filter-chip[data-filter="case-study"].filter-active {
  background: var(--cat-case-study-text, #92400e);
  border-color: var(--cat-case-study-text, #92400e);
}

.filter-chip[data-filter="poradnik"].filter-active {
  background: var(--cat-poradniki-text, #6b21a8);
  border-color: var(--cat-poradniki-text, #6b21a8);
}

.filter-chip[data-filter="checklist"].filter-active {
  background: var(--cat-checklist-text, #9f1239);
  border-color: var(--cat-checklist-text, #9f1239);
}

/* Blog Grid */
.blog-section {
  background: #f9fafb;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}

.blog-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
}

.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

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

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.blog-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  will-change: transform, box-shadow;
  transform: translateZ(0);
  min-height: 200px;
  contain: layout style paint;
  content-visibility: auto;
}

/* Fade-on-scroll animation - optimized to prevent CLS */
.fade-on-scroll {
  opacity: 0;
  transform: translateY(0);
  transition: opacity 0.6s ease;
  will-change: opacity;
  contain: layout style paint;
}

.fade-on-scroll.animate-fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .fade-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
  
  .fade-on-scroll.animate-fade-in {
    opacity: 1;
    transform: none;
  }
  
  .hero-section,
  .hero-container,
  .hero-text h1,
  .hero-text p,
  .hero-search,
  .blog-container {
    animation: none !important;
  }
  
  .hero-section::before {
    animation: none !important;
  }
  
  .hero-container::after {
    animation: none !important;
  }
  
  .hero-text h1::after {
    animation: none !important;
    width: 100%;
  }
  
  .no-results::before {
    animation: none !important;
  }
}

.blog-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.1) 50%, transparent 100%);
  transform: translate(-50%, -50%);
  transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), height 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 0;
  pointer-events: none;
}

.blog-card:hover::before {
  width: 400px;
  height: 400px;
}

.blog-card > * {
  position: relative;
  z-index: 1;
}

.blog-card:hover {
  transform: translateY(-8px) scale(1.02);
  will-change: transform, box-shadow;
}

.blog-card[data-category="edukacyjne"]:hover {
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
  border-left-color: #2563eb;
}

.blog-card[data-category="praktyczne"]:hover {
  box-shadow: 0 20px 40px rgba(14, 165, 233, 0.3);
  border-left-color: #0284c7;
}

.blog-card[data-category="case-study"]:hover {
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.3);
  border-left-color: #1e40af;
}

.blog-card[data-category="poradniki"]:hover {
  box-shadow: 0 20px 40px rgba(96, 165, 250, 0.3);
  border-left-color: #3b82f6;
}

.blog-card[data-category="checklist"]:hover {
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
  border-left-color: #2563eb;
}

.blog-card:hover .read-more {
  transform: translateX(4px);
  color: #2563eb;
}

.blog-card:hover .excerpt {
  color: #374151;
}

.blog-card:hover .meta {
  opacity: 0.9;
}

.blog-card .badge {
  display: inline-block;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 12px;
  font-weight: 600;
  margin-bottom: 12px;
  width: fit-content;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .badge {
  transform: translateY(-2px) scale(1.05);
}

/* Category badges */
.badge {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.badge::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), height 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.badge:hover::before {
  width: 200px;
  height: 200px;
}

/* Popularity Badges */
.popularity-badge {
  display: inline-block;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 700;
  margin-bottom: 8px;
  width: fit-content;
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.popularity-badge.new-badge {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: 1px solid #047857;
}

.popularity-badge.popular-badge {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  border: 1px solid #b45309;
}

.blog-card:hover .popularity-badge {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.featured-card:hover .popularity-badge {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

/* Multiple badges positioning */
.blog-card .popularity-badge:first-of-type {
  top: 12px;
}

.blog-card .popularity-badge:last-of-type {
  top: 12px;
}

.blog-card .popularity-badge:first-of-type:not(:only-child) {
  top: 12px;
}

.blog-card .popularity-badge:last-of-type:not(:first-child) {
  top: 45px;
}

.featured-card .popularity-badge:first-of-type {
  top: 12px;
}

.featured-card .popularity-badge:last-of-type {
  top: 12px;
}

.featured-card .popularity-badge:first-of-type:not(:only-child) {
  top: 12px;
}

.featured-card .popularity-badge:last-of-type:not(:first-child) {
  top: 45px;
}

.badge.edukacyjne {
  background: var(--cat-edukacyjne-bg, #dbeafe);
  color: var(--cat-edukacyjne-text, #1e40af);
  border-left: 3px solid #3b82f6;
}

.badge.edukacyjne:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  background: #bfdbfe;
}

.badge.praktyczne {
  background: var(--cat-praktyczne-bg, #e0f2fe);
  color: var(--cat-praktyczne-text, #0369a1);
  border-left: 3px solid #0ea5e9;
}

.badge.praktyczne:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
  background: #bae6fd;
}

.badge.case-study {
  background: var(--cat-case-study-bg, #dbeafe);
  color: var(--cat-case-study-text, #1e3a8a);
  border-left: 3px solid #3b82f6;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.badge.case-study:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%);
}

.badge.poradniki {
  background: var(--cat-poradniki-bg, #eff6ff);
  color: var(--cat-poradniki-text, #1e40af);
  border-left: 3px solid #60a5fa;
}

.badge.poradniki:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
  background: #dbeafe;
}

.badge.checklist {
  background: var(--cat-checklist-bg, #dbeafe);
  color: var(--cat-checklist-text, #1e40af);
  border-left: 3px solid #3b82f6;
}

.badge.checklist:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  background: #bfdbfe;
}

.blog-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
  position: relative;
}

.blog-card h3 a {
  color: #1f2937;
  background: linear-gradient(135deg, #1f2937 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: inline-block;
}

.blog-card h3 a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.blog-card h3 a:hover {
  color: #2563eb;
  transform: translateX(2px);
}

.blog-card h3 a:hover::after {
  width: 100%;
}

.blog-card .excerpt {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.blog-card:hover .excerpt {
  color: #4b5563;
  transform: translateY(-2px);
}

.blog-card .excerpt::first-line {
  font-weight: 500;
}

.blog-card .meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  will-change: color, opacity;
  transform: translateZ(0);
}

.blog-card:hover .meta {
  color: #2563eb;
}

.blog-card .meta span {
  transition: all 0.3s ease;
  position: relative;
}

.blog-card .reading-time {
  color: #9ca3af;
  font-size: 13px;
}

.blog-card:hover .meta span {
  transform: translateX(4px);
  font-weight: 600;
}

.blog-card .read-more {
  font-size: 14px;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  will-change: transform;
  transform: translateZ(0);
  padding: 4px 0;
}

.blog-card .read-more::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1e40af 100%);
  transition: width 0.3s ease;
  z-index: 1;
}

.blog-card .read-more::after {
  content: '→';
  transition: transform 0.3s ease;
  display: inline-block;
}

.blog-card .read-more:hover {
  gap: 10px;
  color: #2563eb;
}

/* Copy link button */
.copy-link-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: scale(0.8);
  z-index: 2;
}

.blog-card:hover .copy-link-btn {
  opacity: 1;
  transform: scale(1);
}

.copy-link-btn:hover {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
  transform: scale(1.1);
}

.copy-link-btn.copied {
  background: #22c55e;
  border-color: #22c55e;
  color: white;
}

.copy-link-btn:focus-visible {
  opacity: 1;
  transform: scale(1);
  outline: 3px solid #3b82f6;
  outline-offset: 2px;
}

.blog-card .read-more:hover::before {
  width: 100%;
}

.blog-card .read-more:hover::after {
  transform: translateX(4px);
}

/* Load More Button */
.load-more-container {
  text-align: center;
  margin-top: 40px;
}

.load-more-btn {
  padding: 12px 32px;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.load-more-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.15) 50%, transparent 100%);
  transform: translate(-50%, -50%);
  transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), height 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 0;
  pointer-events: none;
}

.load-more-btn:hover::before {
  width: 350px;
  height: 350px;
}

.load-more-btn:hover {
  border-color: #3b82f6;
  color: #2563eb;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.35);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(37, 99, 235, 0.05) 100%);
}

.load-more-btn > * {
  position: relative;
  z-index: 1;
}

.load-more-btn:active {
  transform: translateY(-1px) scale(0.98);
}

/* Gradient Button with Hover Effect */
.btn-gradient {
  position: relative;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1e40af 100%);
  color: white;
  padding: 14px 24px;
  border-radius: 32px;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
  z-index: 1;
}

.btn-gradient::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(25, 151, 170, 0.9) 0%, rgba(212, 122, 255, 0.9) 100%);
  transform: translate(-50%, -50%);
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), height 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
}

.btn-gradient:hover::after {
  width: 250px;
  height: 250px;
  opacity: 0.6;
}

.btn-gradient span {
  position: relative;
  z-index: 2;
}

.btn-gradient:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.btn-gradient:hover span i,
.btn-gradient:hover i {
  transform: translate(4px, -50%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Gradient Text - Radial */
/* Blog Title Styling */
.blog-title {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.blog-icon {
  font-size: 48px;
  line-height: 1;
  display: inline-block;
  animation: iconBounce 2s ease-in-out infinite;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

@keyframes iconBounce {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-5px) scale(1.05);
  }
}

.blog-title-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.1;
}

.blog-title-main {
  font-size: 42px;
  font-weight: 800;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1e40af 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
  text-shadow: 0 2px 10px rgba(59, 130, 246, 0.2);
}

.blog-title-brand {
  font-size: 28px;
  font-weight: 600;
  color: #1f2937;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .blog-title {
    gap: 12px;
  }
  
  .blog-icon {
    font-size: 40px;
  }
  
  .blog-title-main {
    font-size: 32px;
  }
  
  .blog-title-brand {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .blog-icon {
    font-size: 36px;
  }
  
  .blog-title-main {
    font-size: 28px;
  }
  
  .blog-title-brand {
    font-size: 18px;
  }
}

.gradient-text-radial {
  background: radial-gradient(
    81.97% 84.34% at 60.76% 33.92%,
    #ffffff 0.5%,
    #1997aa 21.5%,
    #ffcd55 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Radial Gradient Overlay */
.radial-gradient-overlay {
  position: relative;
}

.radial-gradient-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    81.97% 84.34% at 60.76% 33.92%,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(25, 151, 170, 0.3) 50%,
    rgba(255, 205, 85, 0.2) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.radial-gradient-overlay > * {
  position: relative;
  z-index: 2;
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: #9ca3af;
  font-size: 16px;
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.no-results::before {
  content: '🔍';
  display: block;
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
  animation: noResultsIconPulse 2s ease-in-out infinite;
}

@keyframes noResultsIconPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }
}

.no-results.show {
  display: block;
  animation: noResultsFadeIn 0.5s ease-out forwards;
}

/* Error message styles */
.error-message {
  text-align: center;
  padding: 60px 20px;
  background: #fef2f2;
  border: 2px solid #fecaca;
  border-radius: 16px;
  margin: 40px auto;
  max-width: 600px;
}

.error-message p {
  font-size: 18px;
  color: #991b1b;
  margin-bottom: 24px;
  font-weight: 500;
}

.no-articles-message {
  text-align: center;
  padding: 60px 20px;
  color: #6b7280;
}

.no-articles-message p {
  font-size: 18px;
  margin: 0;
}

@keyframes noResultsFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Footer */
.footer {
  background: var(--gradient-hero, linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1e40af 100%));
  color: white;
  padding: 60px 20px 30px;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.3s ease;
}

.footer-section:hover h3 {
  background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-section p {
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 16px;
  transition: opacity 0.3s ease;
}

.footer-section:hover p {
  opacity: 1;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}

.footer-section ul li:hover {
  transform: translateX(4px);
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: inline-block;
  padding: 2px 0;
}

.footer-section a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1e40af 100%);
  transition: width 0.3s ease;
}

.footer-section a:hover {
  color: white;
  transform: translateX(4px);
}

.footer-section a:hover::after {
  width: 100%;
}

.footer-section a:active {
  transform: translateX(2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  position: relative;
}

.footer-bottom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1e40af 100%);
  transition: width 0.6s ease;
}

.footer:hover .footer-bottom::before {
  width: 200px;
}

.footer-bottom p {
  opacity: 0.7;
  font-size: 14px;
  transition: opacity 0.3s ease;
}

.footer:hover .footer-bottom p {
  opacity: 0.9;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding: 4px 0;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.9);
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-links a:active {
  transform: scale(0.95);
}

/* Dark Mode */
html[data-theme='dark'] {
  --gradient-hero: linear-gradient(135deg, #020617 0%, #1e293b 100%);
}

html[data-theme='dark'] body {
  background-color: #020617;
  color: #e5e7eb;
}

html[data-theme='dark'] .blog-title-brand {
  color: #e5e7eb;
  opacity: 0.95;
}

html[data-theme='dark'] .blog-title-main {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #2563eb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

html[data-theme='dark'] .main-nav {
  background: rgba(15, 23, 42, 0.95);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

html[data-theme='dark'] .nav-logo-text .brand-name,
html[data-theme='dark'] .nav-links a {
  color: #e5e7eb;
}

html[data-theme='dark'] .nav-logo:hover {
  background: rgba(59, 130, 246, 0.1);
}

html[data-theme='dark'] .brand-name {
  color: #e5e7eb;
}

html[data-theme='dark'] .brand-subtitle {
  color: #9ca3af;
}

html[data-theme='dark'] .filters-section {
  background: #0f172a;
  border-bottom-color: #1e293b;
}

html[data-theme='dark'] .blog-section {
  background: #020617;
}

html[data-theme='dark'] .blog-card {
  background: #1e293b;
  border-color: #334155;
}

html[data-theme='dark'] .blog-card h3 a {
  color: #f1f5f9;
}

html[data-theme='dark'] .blog-card .excerpt {
  color: #94a3b8;
}

html[data-theme='dark'] .filter-chip {
  background: #1e293b;
  border-color: #334155;
  color: #e5e7eb;
}

html[data-theme='dark'] .load-more-btn {
  background: #1e293b;
  border-color: #334155;
  color: #e5e7eb;
}

html[data-theme='dark'] .featured-card {
  background: #1e293b;
  color: #f1f5f9;
}

html[data-theme='dark'] .featured-card h2 {
  color: #f1f5f9;
}

html[data-theme='dark'] .mobile-menu {
  background: #0f172a;
  border-top-color: rgba(255, 255, 255, 0.1);
}

html[data-theme='dark'] .mobile-menu a {
  color: #e5e7eb;
  border-bottom-color: #334155;
}

html[data-theme='dark'] .mobile-theme-toggle {
  color: #e5e7eb;
  border-bottom-color: #334155;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-section {
    padding: 30px 20px;
    min-height: 250px;
  }

  .hero-text {
    text-align: center;
    align-items: center;
  }

  .hero-text h1 {
    font-size: 28px;
  }
  
  .hero-text h1.blog-title .blog-title-main {
    font-size: 28px;
  }
  
  .hero-text h1.blog-title .blog-title-brand {
    font-size: 20px;
  }

  .hero-text p {
    font-size: 15px;
  }

  .featured-articles {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
  }

  .blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

/* Touch-friendly optimizations */
button,
a,
.filter-chip {
  -webkit-tap-highlight-color: rgba(59, 130, 246, 0.2);
  touch-action: manipulation;
}

/* Ensure minimum touch target size (44x44px) */
button,
.filter-chip,
.nav-links a {
  min-height: 44px;
  min-width: 44px;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }
  
  .nav-logo-img {
    width: 100px;
    max-height: 50px;
  }
  
  .nav-logo picture {
    width: auto;
    height: auto;
  }

  .hero-section {
    padding: 30px 16px;
    min-height: 200px;
  }

  .hero-text h1 {
    font-size: 24px;
  }
  
  .hero-text h1.blog-title .blog-title-main {
    font-size: 24px;
  }
  
  .hero-text h1.blog-title .blog-title-brand {
    font-size: 18px;
  }

  .hero-text p {
    font-size: 14px;
  }

  .hero-search {
    padding: 16px;
  }

  .featured-articles {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
  }

  .filters-section {
    top: 73px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 24px 16px;
    min-height: 180px;
  }

  .hero-text h1 {
    font-size: 22px;
  }
  
  .hero-text h1.blog-title .blog-title-main {
    font-size: 22px;
  }
  
  .hero-text h1.blog-title .blog-title-brand {
    font-size: 16px;
  }

  .hero-text p {
    font-size: 13px;
  }

  .featured-card {
    padding: 20px;
  }

  .featured-card h2 {
    font-size: 18px;
  }

  .featured-card p {
    font-size: 13px;
  }

  .blog-card {
    padding: 20px;
  }
}

/* Print Styles */
@media print {
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  .main-nav,
  .mobile-menu,
  .mobile-menu-btn,
  .scroll-progress,
  .load-more-container,
  .btn-gradient,
  .filter-chip,
  .filters-section,
  .hero-search,
  .copy-link-btn,
  .clear-search-btn,
  .footer {
    display: none !important;
  }

  .hero-section {
    background: white !important;
    padding: 20px 0 !important;
  }

  .hero-text h1 {
    color: black !important;
    font-size: 24pt !important;
    margin-bottom: 10pt !important;
  }

  .hero-text p {
    color: #333 !important;
    font-size: 12pt !important;
  }

  .blog-section {
    background: white !important;
    padding: 0 !important;
  }

  .blog-card {
    page-break-inside: avoid;
    border: 1px solid #ccc !important;
    margin-bottom: 20pt !important;
    padding: 15pt !important;
    box-shadow: none !important;
  }

  .blog-card h3 {
    color: black !important;
    font-size: 14pt !important;
    margin-bottom: 8pt !important;
  }

  .blog-card .excerpt {
    color: #333 !important;
    font-size: 11pt !important;
  }

  .blog-card a {
    color: black !important;
    text-decoration: underline !important;
  }

  .blog-card a::after {
    content: ' (' attr(href) ')';
    font-size: 9pt;
    color: #666;
  }

  .featured-card {
    page-break-inside: avoid;
    border: 2px solid #000 !important;
    background: white !important;
  }

  .badge {
    border: 1px solid #000 !important;
    background: white !important;
    color: black !important;
  }

  @page {
    margin: 2cm;
  }

  h1, h2, h3 {
    page-break-after: avoid;
  }

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
}

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

/* Skip Links */
.skip-links {
  position: absolute;
  top: -100px;
  left: 0;
  z-index: 10000;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  background: #3b82f6;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0 0 8px 0;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  z-index: 10000;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}

.skip-link + .skip-link {
  top: 50px;
}

.skip-link + .skip-link + .skip-link {
  top: 100px;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1e40af 100%);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.show,
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.6);
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
}

.back-to-top:active {
  transform: translateY(-2px);
}

.back-to-top:focus-visible {
  outline: 3px solid #3b82f6;
  outline-offset: 2px;
}

.back-to-top-icon {
  line-height: 1;
  font-weight: bold;
  position: relative;
  z-index: 2;
}

/* Back to Top Progress Indicator */
.back-to-top-progress-circle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.back-to-top-progress-bg {
  stroke: rgba(255, 255, 255, 0.3);
}

.back-to-top-progress {
  stroke: white;
  transition: stroke-dashoffset 0.1s linear;
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
}

/* Button Loading States */
.btn-gradient.loading,
.load-more-btn.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
  opacity: 0.7;
}

.btn-gradient.loading::after,
.load-more-btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.btn-gradient:disabled,
.load-more-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* Skeleton Loaders */
.skeleton-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes skeleton-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

.skeleton-badge,
.skeleton-title,
.skeleton-excerpt,
.skeleton-meta {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

.skeleton-badge {
  width: 100px;
  height: 24px;
}

.skeleton-title {
  width: 80%;
  height: 24px;
}

.skeleton-excerpt {
  width: 100%;
  height: 16px;
}

.skeleton-excerpt:last-of-type {
  width: 70%;
}

.skeleton-meta {
  width: 120px;
  height: 16px;
  margin-top: auto;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Respect reduced motion for skeleton loaders */
@media (prefers-reduced-motion: reduce) {
  .skeleton-badge,
  .skeleton-title,
  .skeleton-excerpt,
  .skeleton-meta {
    animation: none;
    background: #f0f0f0;
  }
}

@media print {
  .back-to-top {
    display: none !important;
  }
  
  .skeleton-card {
    display: none !important;
  }
}

/* Error Boundary Styles */
.error-boundary {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: errorBoundaryFadeIn 0.3s ease-out;
}

@keyframes errorBoundaryFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.error-boundary-content {
  background: white;
  border-radius: 16px;
  padding: 32px;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: errorBoundarySlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes errorBoundarySlideIn {
  from {
    transform: translateY(-20px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.error-boundary-icon {
  font-size: 48px;
  text-align: center;
  margin-bottom: 16px;
}

.error-boundary-title {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  text-align: center;
  margin-bottom: 12px;
}

.error-boundary-message {
  font-size: 16px;
  color: #6b7280;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 24px;
}

.error-boundary-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.error-boundary-btn {
  padding: 12px 24px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  background: white;
  color: #1f2937;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 120px;
}

.error-boundary-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.error-boundary-btn:active {
  transform: translateY(0);
}

.error-boundary-btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1e40af 100%);
  color: white;
  border-color: transparent;
}

.error-boundary-btn-primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.error-boundary-btn:focus-visible {
  outline: 3px solid #3b82f6;
  outline-offset: 2px;
}

.error-boundary-details {
  margin-top: 24px;
  border-top: 1px solid #e5e7eb;
  padding-top: 16px;
}

.error-boundary-summary {
  font-size: 14px;
  color: #6b7280;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  font-weight: 500;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.error-boundary-summary:hover {
  background-color: #f9fafb;
}

.error-boundary-stack {
  margin-top: 12px;
  padding: 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 12px;
  font-family: 'Courier New', monospace;
  color: #1f2937;
  overflow-x: auto;
  max-height: 300px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Tools Section Styles */
.tools-section {
  background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
  padding: 3rem 0;
  margin: 3rem 0;
}

.tools-section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.tools-section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.dark .tools-section-title {
  color: #e5e7eb;
}

.tools-section-description {
  color: #6b7280;
  font-size: 1.125rem;
}

.dark .tools-section-description {
  color: #9ca3af;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.tool-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
}

.dark .tool-card {
  background: #1f2937;
  color: white;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.2);
}

.tool-card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.tool-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.dark .tool-card-title {
  color: #e5e7eb;
}

.tool-card-description {
  color: #6b7280;
  line-height: 1.6;
}

.dark .tool-card-description {
  color: #9ca3af;
}

/* Newsletter Section */
.newsletter-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 4rem 0;
  margin: 3rem 0;
}

.newsletter-widget {
  max-width: 800px;
  margin: 0 auto;
}

.newsletter-content {
  text-align: center;
  color: white;
}

.newsletter-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.newsletter-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.newsletter-description {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  line-height: 1.6;
}

.newsletter-form {
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-input-wrapper {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.newsletter-input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  color: #1f2937;
}

.newsletter-input:focus {
  outline: 3px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.newsletter-button {
  padding: 1rem 2rem;
  background: white;
  color: #667eea;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.newsletter-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.newsletter-button:active {
  transform: translateY(0);
}

.newsletter-privacy {
  font-size: 0.875rem;
  opacity: 0.9;
  margin: 0;
}

.newsletter-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  display: none;
}

.newsletter-message.success {
  background: rgba(16, 185, 129, 0.2);
  border: 2px solid rgba(16, 185, 129, 0.5);
  display: block;
}

.newsletter-message.error {
  background: rgba(239, 68, 68, 0.2);
  border: 2px solid rgba(239, 68, 68, 0.5);
  display: block;
}

@media (max-width: 768px) {
  .newsletter-section {
    padding: 3rem 1rem;
  }
  
  .newsletter-input-wrapper {
    flex-direction: column;
  }
  
  .newsletter-button {
    width: 100%;
  }
}

/* Popular Articles Widget */
.popular-articles-widget {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.dark .popular-articles-widget {
  background: #1f2937;
  color: white;
}

.popular-articles-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dark .popular-articles-title {
  color: #e5e7eb;
}

.popular-article-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s;
  text-decoration: none;
  color: inherit;
}

.popular-article-item:hover {
  background: #f3f4f6;
}

.dark .popular-article-item:hover {
  background: #374151;
}

.popular-article-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #667eea;
  min-width: 2rem;
}

.popular-article-content {
  flex: 1;
}

.popular-article-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #1f2937;
}

.dark .popular-article-title {
  color: #e5e7eb;
}

.popular-article-meta {
  font-size: 0.875rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dark .popular-article-meta {
  color: #9ca3af;
}

.reading-time {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.dark .reading-time {
  color: #9ca3af;
}


/* Search Improvements */
.search-popular-section {
  padding: 1rem;
}

.search-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 0.75rem;
  margin-top: 1rem;
  letter-spacing: 0.05em;
}

.dark .search-section-title {
  color: #9ca3af;
}

.search-section-title:first-child {
  margin-top: 0;
}

.search-history-list,
.search-popular-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.search-history-item,
.search-popular-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  width: 100%;
  font-size: 0.875rem;
}

.dark .search-history-item,
.dark .search-popular-item {
  background: #374151;
  border-color: #4b5563;
  color: #e5e7eb;
}

.search-history-item:hover,
.search-popular-item:hover {
  background: #f3f4f6;
  border-color: #667eea;
  color: #667eea;
}

.dark .search-history-item:hover,
.dark .search-popular-item:hover {
  background: #4b5563;
  border-color: #818cf8;
  color: #818cf8;
}

.history-icon,
.popular-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.history-term,
.popular-term {
  flex: 1;
}

.history-remove {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  transition: all 0.2s;
  flex-shrink: 0;
}

.history-remove:hover {
  background: #fee2e2;
  color: #ef4444;
}

.dark .history-remove:hover {
  background: #7f1d1d;
  color: #fca5a5;
}

@media (max-width: 768px) {
  .tools-section {
    padding: 2rem 0;
  }
  
  .tools-grid {
    grid-template-columns: 1fr;
  }
  
  .popular-articles-widget {
    padding: 1.5rem;
  }
  
}

@media (max-width: 768px) {
  .error-boundary-content {
    padding: 24px;
  }
  
  .error-boundary-title {
    font-size: 20px;
  }
  
  .error-boundary-message {
    font-size: 14px;
  }
  
  .error-boundary-actions {
    flex-direction: column;
  }
  
  .error-boundary-btn {
    width: 100%;
  }
}

