/* css/global.css
   Master stylesheet for Ready4Exam — imported by ALL pages.
   Contains: base resets, shared component styles, animations.
   Tailwind utility classes are handled by the CDN + js/tailwind-config.js.
*/

/* ===========================
   BASE
   =========================== */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #f8fafc;
  color: #1f2937;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

/* Add this to your base section */
#app-header {
  position: sticky;
  top: 0;
  z-index: 50; /* Stays above content but below modals */
}

/* ===========================
   GLASSMORPHISM
   =========================== */
.glass-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

/* ===========================
   SKELETON LOADER
   =========================== */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 8px;
}
@keyframes skeleton-loading {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===========================
   ANIMATIONS
   =========================== */
.fade-in {
  animation: fade 0.5s ease-out forwards;
  opacity: 0;
}
@keyframes fade {
  to { opacity: 1; }
}

@keyframes peel-back {
  0%   { transform: scale(1); opacity: 1; }
  50%  { transform: scale(0.95) rotate(-2deg); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}
.peel-back-anim {
  animation: peel-back 0.6s ease-in-out;
  border: 2px solid #ef4444;
}

/* ===========================
   FOCUS MODE (Quiz Engine)
   =========================== */
body.focus-mode {
  background: #f8fafc;
}
body.focus-mode header,
body.focus-mode footer,
body.focus-mode #app-header,
body.focus-mode #app-footer,
body.focus-mode .glass-nav {
  display: none !important;
}
body.focus-mode #quiz-content {
  max-width: 800px;
  margin: 40px auto;
}

/* ===========================
   QUIZ ENGINE OPTIONS
   =========================== */
.option-label {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 2px solid transparent;
}
.option-label:hover {
  border-color: #3b82f6;
  background-color: #eff6ff;
}
.option-label.selected {
  border-color: #2563eb;
  background-color: #dbeafe;
}

.option-label:hover, .option-label:focus-within {
  border-color: #3b82f6;
  background-color: #eff6ff;
}
/* ===========================
   RESULT CARD ANIMATION
   =========================== */
.result-card {
  animation: slideUp 0.5s ease-out;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===========================
   MODAL OVERLAY
   =========================== */
.modal-overlay {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
}

/* ===========================
   MARQUEE (Testimonials)
   =========================== */
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.animate-marquee {
  display: flex;
  animation: marquee 40s linear infinite;
}
.animate-marquee:hover {
  animation-play-state: paused;
}

/* ===========================
   SCROLLBAR UTILITIES
   =========================== */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#analysis-modal div::-webkit-scrollbar { width: 6px; }
#analysis-modal div::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

/* ===========================
   EXAM PULSE PRIORITY SECTION
   =========================== */
.priority-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}
.priority-card:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    border-color: #1a3e6a;
}
.repetition-badge {
    background: #f0f7ff;
    color: #1a3e6a;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    text-transform: uppercase;
}

/* ===========================
   WHATSAPP FLOAT
   =========================== */
.whatsapp-float {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background-color: #25d366;
  color: white;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition: transform 0.2s;
}
.whatsapp-float:hover {
  transform: scale(1.1);
}
