@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Hind+Siliguri:wght@400;500;600;700&display=swap');

:root {
  --font-primary: 'Outfit', 'Hind Siliguri', sans-serif;
  --bg-site: #F7F7F5;
  --bg-card: #FFFFFF;
  --text-main: #111111;
  --text-muted: #555555;
  --color-red: #D32F2F;
  --color-red-light: #FFEBEE;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-site);
  color: var(--text-main);
  scroll-behavior: smooth;
}

/* Custom scrollbar matching the red/black theme */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb {
  background: rgba(211, 47, 47, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(211, 47, 47, 0.8);
}

/* Card lift hover animation */
.news-card {
  background-color: var(--bg-card);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.05), 0 8px 8px -5px rgba(0, 0, 0, 0.03);
  border-color: rgba(211, 47, 47, 0.3);
}

/* Article link hover animation */
.article-item {
  transition: all 0.2s ease-in-out;
}

.article-item:hover {
  transform: translateX(4px);
}

/* Shimmer placeholder animation for light theme */
@keyframes shimmer {
  0% {
    background-position: -468px 0;
  }
  100% {
    background-position: 468px 0;
  }
}

.animate-shimmer {
  background: linear-gradient(to right, #eef0f3 8%, #e2e5e9 18%, #eef0f3 33%);
  background-size: 800px 104px;
  animation: shimmer 1.25s infinite linear;
}

/* Toast animations */
@keyframes slideIn {
  from {
    transform: translateY(100%) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.animate-toast {
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Custom Red Badge styles */
.badge-red {
  background-color: var(--color-red-light);
  color: var(--color-red);
  border: 1px solid rgba(211, 47, 47, 0.15);
}
