/* ==========================================================================
   ACADEMY XNK - E-LEARNING PLATFORM STYLING
   ========================================================================== */

:root {
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --accent: #10b981;
  --bg-dark: #0f172a;
  --card-dark: #1e293b;
  --border-dark: #334155;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  /* Anti-Copy Protection */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Allow text selection only in personal notes area */
.selectable-text, .note-editor {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

/* Print Protection */
@media print {
  body {
    display: none !important;
  }
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Video Wrapper & Anti-Download Overlay */
.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
}

.video-player-frame {
  width: 100%;
  height: 100%;
  border: none;
}

/* Anti-Download Click Shield */
.video-shield-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px; /* Shields the YouTube title/link bar */
  z-index: 20;
  background: transparent;
  pointer-events: auto;
  cursor: default;
}

/* Security Dynamic Watermark - Subtle, Elegant & Anti-piracy */
.security-watermark {
  position: absolute;
  z-index: 30;
  pointer-events: none;
  color: rgba(255, 255, 255, 0.13);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  background: transparent;
  border-radius: 4px;
  transition: all 6s ease-in-out;
  user-select: none;
  mix-blend-mode: overlay;
}

/* Badge & Progress Pulse */
.progress-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

/* Active Lesson Indicator */
.lesson-item.active {
  background: rgba(2, 132, 199, 0.15);
  border-left: 4px solid var(--primary);
}

.lesson-item.active .lesson-title {
  color: #38bdf8;
  font-weight: 600;
}
