* { font-family: 'Fredoka', sans-serif; }
.article-card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.article-card:hover { transform: translateY(-2px); }
.filter-btn.active { background-color: #393E46; color: white; }
.view-btn.active { background-color: #393E46; color: white; }
.reading-progress { transition: width 0.1s linear; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #DFD0B8; }
::-webkit-scrollbar-thumb { background: #948979; border-radius: 3px; }
   * { font-family: 'Fredoka', sans-serif; }
html, body { height: 100%; }

/* Smooth scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #948979; border-radius: 4px; transition: background 0.3s; }
::-webkit-scrollbar-thumb:hover { background: #393E46; }

/* Hero section animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Staggered animations */
.hero-title {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

.hero-subtitle {
  animation: fadeInUp 0.8s ease-out 0.15s forwards;
  opacity: 0;
}

.hero-description {
  animation: fadeInUp 0.8s ease-out 0.3s forwards;
  opacity: 0;
}

.hero-cta {
  animation: fadeInUp 0.8s ease-out 0.45s forwards;
  opacity: 0;
}

.filter-badge {
  animation: slideInLeft 0.6s ease-out;
}

.article-card {
  animation: scaleIn 0.5s ease-out;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(57, 62, 70, 0.15);
}

.article-image {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.article-card:hover .article-image {
  transform: scale(1.05);
}

/* Button animations */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.4s ease;
  z-index: 1;
}

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

.btn-secondary {
  position: relative;
  transition: all 0.3s ease;
}

.btn-secondary::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #393E46;
  transition: width 0.3s ease;
}

.btn-secondary:hover::after {
  width: 100%;
}

/* Filter section */
.filters-container {
  animation: slideInDown 0.6s ease-out;
}

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

/* Badge animations */
.badge {
  transition: all 0.2s ease;
}

.badge:hover {
  transform: translateY(-2px);
}

/* Progress indicator */
.progress-bar {
  transition: width 0.1s linear;
  box-shadow: 0 0 20px rgba(57, 62, 70, 0.3);
}

/* Smooth transitions for content */
.content-fade {
  transition: opacity 0.3s ease;
}

/* Scroll reveal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Sidebar animations */
.sidebar-card {
  animation: slideInRight 0.6s ease-out;
}

/* Newsletter form */
.newsletter-input {
  transition: all 0.3s ease;
  border-color: #948979;
}

.newsletter-input:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(57, 62, 70, 0.1);
  border-color: #393E46;
}

/* Pagination */
.pagination-btn {
  transition: all 0.2s ease;
  position: relative;
}

.pagination-btn:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(57, 62, 70, 0.15);
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .article-card {
    animation-delay: 0s;
  }

  .filter-badge {
    font-size: 0.875rem;
  }
}

/* Intersection Observer */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* Share modal backdrop */
.modal-backdrop {
  animation: fadeIn 0.3s ease;
}

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

/* Breadcrumb separators */
.breadcrumb-item {
  animation: slideInLeft 0.6s ease-out;
}

/* Hero background gradient animation */
.hero-gradient {
  background: linear-gradient(135deg, #DFD0B8, #948979);
  position: relative;
  overflow: hidden;
}

.hero-gradient::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(57, 62, 70, 0.1) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
}

.hero-gradient::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(34, 40, 49, 0.05) 0%, transparent 70%);
  animation: float 8s ease-in-out infinite reverse;
}

/* View toggle active state */
.view-btn.active {
  background-color: #393E46;
  color: white;
  box-shadow: 0 4px 12px rgba(57, 62, 70, 0.2);
}

.view-btn {
  transition: all 0.3s ease;
}

.view-btn:hover:not(.active) {
  background-color: #DFD0B8;
  transform: translateY(-2px);
}

/* Responsive spacing for mobile */
@media (max-width: 640px) {
  .hero-title {
    font-size: 1.875rem;
  }

  .hero-gradient::before {
    width: 300px;
    height: 300px;
  }

  .hero-gradient::after {
    width: 250px;
    height: 250px;
  }
}
.hero-cta {
    position: relative;
    z-index: 10;
}

.btn-primary {
    position: relative;
    z-index: 20;
    cursor: pointer;
    pointer-events: auto;
}

.hero-gradient::before,
.hero-gradient::after {
    pointer-events: none;
}
.article-card.group:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}