/* ApnaTest.in Premium Styles - 2026 */

:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --radius: 16px;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Premium card */
.premium-card {
  background: white;
  border: 1px solid rgba(226,232,240,0.8);
  border-radius: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 20px rgba(0,0,0,0.03);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.premium-card:hover {
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

/* Gradient border */
.gradient-border {
  position: relative;
  background: white;
  border-radius: 20px;
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg,#6366f1,#8b5cf6,#ec4899);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Test player */
.question-card {
  background: white;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}

/* Video player */
.video-wrapper {
  position: relative;
  background: #0f172a;
  border-radius: 20px;
  overflow: hidden;
}

/* PDF viewer protected */
.pdf-protected {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.pdf-protected img {
  pointer-events: none;
}

/* Animations */
@keyframes slideIn { from { opacity:0; transform: translateY(20px)} to { opacity:1; transform: translateY(0)} }
.animate-slide-in { animation: slideIn 0.6s ease-out forwards; }
.animate-slide { animation: slideIn 0.6s ease-out both; }

/* Pro badge */
.pro-badge {
  background: linear-gradient(135deg,#f59e0b,#ef4444);
  color: white;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}

/* Dark mode overrides - COMPREHENSIVE so no text vanishes */
.dark .premium-card { background:#1e293b !important; border-color:#334155 !important; color:#e2e8f0 !important; }
.dark .question-card { background:#1e293b !important; border-color:#334155 !important; color:#e2e8f0 !important; }
.dark .gradient-border { background:#1e293b !important; }
.dark ::-webkit-scrollbar-thumb { background:#475569; }
.dark ::-webkit-scrollbar-thumb:hover { background:#64748b; }
.dark .pro-badge { background: linear-gradient(135deg,#f59e0b,#ef4444); }
/* Global dark text visibility */
.dark .bg-white { background-color:#1e293b !important; }
.dark .bg-slate-50 { background-color:#1e293b !important; }
.dark .bg-slate-100 { background-color:#334155 !important; }
.dark .bg-slate-50\/50 { background-color:rgba(30,41,59,0.5) !important; }
.dark .text-slate-900 { color:#f1f5f9 !important; }
.dark .text-slate-800 { color:#e2e8f0 !important; }
.dark .text-slate-700 { color:#cbd5e1 !important; }
.dark .text-slate-600 { color:#94a3b8 !important; }
.dark .text-slate-500 { color:#64748b !important; }
.dark .border-slate-200 { border-color:#334155 !important; }
.dark .border-slate-100 { border-color:#334155 !important; }
.dark .border-slate-200\/60 { border-color:rgba(51,65,85,0.6) !important; }
.dark input, .dark textarea, .dark select { background:#334155 !important; border-color:#475569 !important; color:#f1f5f9 !important; }
.dark input::placeholder { color:#64748b !important; }
/* Ensure all headings visible */
.dark h1, .dark h2, .dark h3, .dark h4 { color:#f1f5f9 !important; }
/* Fix for course/test cards */
.dark .bg-white.border { background:#1e293b !important; border-color:#334155 !important; }

/* Mobile bottom nav */
@media (max-width: 1024px) {
  .mobile-bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-around;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    z-index: 40;
  }
}
