/* NetMargdarshan Custom Stylesheet
   Enhanced aesthetics, typography, animations, dark mode variables, and print styles */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --brand-primary: #4f46e5;
  --brand-emerald: #10b981;
  --brand-amber: #f59e0b;
}

html {
  font-family: var(--font-body);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.025em;
}

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

::-webkit-scrollbar-track {
  background: rgba(148, 163, 184, 0.1);
}

::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.7);
}

/* Glassmorphism Styles */
.glass-nav {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.dark .glass-nav {
  background: rgba(15, 23, 42, 0.88);
  border-bottom: 1px solid rgba(51, 65, 85, 0.8);
}

.glass-card {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(241, 245, 249, 0.9);
}

.dark .glass-card {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(51, 65, 85, 0.6);
}

/* Modern Card Hover Effects */
.hover-lift {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.08), 0 10px 15px -8px rgba(0, 0, 0, 0.04);
}

.dark .hover-lift:hover {
  box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.35), 0 10px 15px -8px rgba(0, 0, 0, 0.25);
}

/* Hero Gradient Background */
.hero-gradient {
  background: radial-gradient(circle at 15% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
              radial-gradient(circle at 85% 30%, rgba(16, 185, 129, 0.12) 0%, transparent 45%),
              radial-gradient(circle at 50% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
}

.dark .hero-gradient {
  background: radial-gradient(circle at 15% 20%, rgba(99, 102, 241, 0.2) 0%, transparent 40%),
              radial-gradient(circle at 85% 30%, rgba(16, 185, 129, 0.15) 0%, transparent 45%),
              radial-gradient(circle at 50% 80%, rgba(245, 158, 11, 0.12) 0%, transparent 50%);
}

/* 16:9 Video Aspect Container */
.video-responsive-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 1rem;
}

.video-responsive-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Text-to-Speech Pulse Animation */
@keyframes audio-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.8;
  }
}

.tts-active-indicator {
  animation: audio-pulse 1.2s infinite ease-in-out;
}

/* Line Clamps */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Subtle Badge Glow */
.badge-glow-emerald {
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
}

.badge-glow-blue {
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.35);
}

.badge-glow-amber {
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Print Styles for Study Notes & Articles */
@media print {
  nav, footer, #toast-container, .no-print, button, .video-player-section {
    display: none !important;
  }

  body {
    background: #fff !important;
    color: #000 !important;
  }

  .print-clean {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
}
