/* Base Setup */
:root {
  --nav-height: 80px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  background-color: #F9FAFB;
  /* Light Gray */
  color: #111827;
  /* Dark Gray Text */
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 50% 0%, rgba(112, 0, 255, 0.05), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(0, 240, 255, 0.05), transparent 30%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #F3F4F6;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #7000FF, #00F0FF);
  border-radius: 4px;
}

/* Typography Enhancements */
h1,
h2,
h3,
h4,
h5,
h6 {
  letter-spacing: -0.02em;
  color: #111827;
}

/* Glass Panel System (Light Mode) */
.glass-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  /* Darker border for light mode */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(112, 0, 255, 0.2);
  /* Subtle purple accent on hover */
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  transition: all 0.3s ease;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn--glow {
  background: #111827;
  color: #ffffff;
  border: 1px solid transparent;
}

.btn--glow::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: 0.5s;
}

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

.btn--glow:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.btn--primary {
  background: linear-gradient(135deg, #7000FF 0%, #00F0FF 100%);
  color: white;
  border: none;
}

.btn--primary:hover {
  opacity: 0.9;
  box-shadow: 0 0 20px rgba(112, 0, 255, 0.4);
}

.btn--secondary {
  background: transparent;
  color: #111827;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn--secondary:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: #000;
}

/* Legacy News Feed Styling */
.crypto-news {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .crypto-news {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .crypto-news {
    grid-template-columns: repeat(3, 1fr);
  }
}

.crypto-news-item {
  margin-top: 0 !important;
  /* Override inline styles */
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.crypto-news-item:hover {
  
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border-color: rgba(112, 0, 255, 0.2);
}

.crypto-news-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.crypto-news-title a {
  color: #111827;
  text-decoration: none;
  transition: color 0.2s;
}

.crypto-news-title a:hover {
  color: #7000FF;
  /* Brand Purple */
}

.crypto-news-date {
  font-size: 0.875rem;
  color: #6B7280;
  /* Gray-500 */
  margin-bottom: 1rem;
  font-family: 'Inter', sans-serif;
}

.crypto-news-preview {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #374151;
  /* Gray-700 */
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: 3;
  /* Fix for standard property warning */
}

/* Pagination Styling */
.crypto-news-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
  font-family: 'Space Grotesk', sans-serif;
}

.crypto-news-pagination a,
.crypto-news-pagination strong {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.crypto-news-pagination a {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #374151;
  /* Gray-700 */
}

.crypto-news-pagination a:hover {
  border-color: #00F0FF;
  /* Brand Accent */
  color: #111827;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.crypto-news-pagination strong {
  background: #111827;
  /* Dark active state */
  color: #00F0FF;
  /* Accent text */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Shimmer Effect */
.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transform: translateX(-100%);
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.05) 20%, rgba(255, 255, 255, 0.1) 60%, rgba(255, 255, 255, 0));
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* Crypto Ticker smooth fade edges */
.ticker-mask {
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}