/* 🎨 Moderne, Toegankelijke Styling voor Digitaal Veilig Werken */

/* Animaties */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.animate-slide-in {
  animation: slideIn 0.3s ease-out;
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out;
}

/* Toast Notificaties */
.toast {
  animation: slideIn 0.3s ease-out;
}

/* Modal Transities */
.modal-enter-from {
  opacity: 0;
  transform: scale(0.95);
}

.modal-enter-to {
  opacity: 1;
  transform: scale(1);
}

.modal-leave-to {
  opacity: 0;
  transform: scale(0.95);
}

.modal-transition {
  transition: all 0.3s ease-in-out;
}

/* Progress Ring (XP Cirkel) */
.progress-ring {
  transform: rotate(-90deg);
}

.progress-ring__background {
  fill: none;
  stroke: #e5e7eb;
}

.progress-ring__circle {
  fill: none;
  stroke: #f59e0b;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s ease, stroke 0.3s ease;
}

/* Hover effecten */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Emoji animaties */
.emoji-bounce {
  display: inline-block;
  animation: bounce 2s ease-in-out infinite;
}

/* Gradient tekst */
.gradient-text {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Tag pills */
.tag-pill {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.tag-pill:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%);
}

/* Info badges */
.info-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  background: #f3f4f6;
  color: #4b5563;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.info-badge.premium {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: white;
}

/* Card hover effect */
.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-8px) scale(1.02);
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Focus states (toegankelijkheid) */
*:focus-visible {
  outline: 3px solid #3b82f6;
  outline-offset: 2px;
  border-radius: 0.25rem;
}

/* Button effects */
button {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

button:active::after {
  width: 300px;
  height: 300px;
}

/* Loading states */
.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Stopwatch styling */
.stopwatch {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}

/* Responsive aanpassingen */
@media (max-width: 640px) {
  .emoji-float {
    animation: none; /* Minder animaties op mobiel voor betere performance */
  }
  
  .card-hover:hover {
    transform: translateY(-4px); /* Minder beweging op mobiel */
  }
}

/* Dark mode ondersteuning (optioneel) */
@media (prefers-color-scheme: dark) {
  /* Hier kan je later dark mode styling toevoegen */
}

/* Print styling */
@media print {
  .no-print {
    display: none !important;
  }
}

/* Toegankelijkheid: Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-radius: 10px;
  border: 2px solid #f1f5f9;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

/* Selection styling */
::selection {
  background: #bfdbfe;
  color: #1e40af;
}

::-moz-selection {
  background: #bfdbfe;
  color: #1e40af;
}

/* ============================================
   MODAL SPECIFIEKE STYLING
   ============================================ */

/* Modal overlay */
#exercise-modal,
#completion-modal {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* Modal content animaties */
.modal-content {
  animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(100px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Steps content styling */
.steps-content {
  line-height: 1.8;
}

.steps-content h1,
.steps-content h2,
.steps-content h3,
.steps-content h4 {
  color: #1e40af;
  font-weight: 700;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  line-height: 1.3;
}

.steps-content h1 {
  font-size: 2em;
  border-bottom: 3px solid #3b82f6;
  padding-bottom: 0.5em;
}

.steps-content h2 {
  font-size: 1.75em;
}

.steps-content h3 {
  font-size: 1.5em;
  color: #2563eb;
}

.steps-content h4 {
  font-size: 1.25em;
  color: #3b82f6;
}

.steps-content p {
  margin-bottom: 1em;
  color: #374151;
}

.steps-content strong,
.steps-content b {
  color: #1e40af;
  font-weight: 600;
}

.steps-content em,
.steps-content i {
  color: #6366f1;
}

.steps-content ul,
.steps-content ol {
  margin: 1em 0;
  padding-left: 0;
  list-style: none;
}

.steps-content li {
  position: relative;
  padding-left: 2em;
  margin-bottom: 0.75em;
  color: #374151;
  line-height: 1.8;
}

.steps-content ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #3b82f6;
  font-weight: bold;
  font-size: 1.2em;
}

.steps-content ol {
  counter-reset: item;
}

.steps-content ol li::before {
  counter-increment: item;
  content: counter(item) ".";
  position: absolute;
  left: 0;
  color: #3b82f6;
  font-weight: bold;
}

.steps-content a {
  color: #2563eb;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s ease;
}

.steps-content a:hover {
  color: #1d4ed8;
}

.steps-content code {
  background: #f1f5f9;
  color: #dc2626;
  padding: 0.2em 0.5em;
  border-radius: 0.375rem;
  font-size: 0.9em;
  font-family: 'Courier New', monospace;
  border: 1px solid #e2e8f0;
}

.steps-content pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 1.5em;
  border-radius: 0.75rem;
  overflow-x: auto;
  margin: 1.5em 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.steps-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border: none;
}

.steps-content blockquote {
  border-left: 4px solid #3b82f6;
  background: #eff6ff;
  padding: 1em 1.5em;
  margin: 1.5em 0;
  border-radius: 0.5rem;
  font-style: italic;
  color: #1e40af;
}

.steps-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 1.5em 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.steps-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  background: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.steps-content th {
  background: #3b82f6;
  color: white;
  padding: 0.75em 1em;
  text-align: left;
  font-weight: 600;
}

.steps-content td {
  padding: 0.75em 1em;
  border-bottom: 1px solid #e5e7eb;
  color: #374151;
}

.steps-content tr:last-child td {
  border-bottom: none;
}

.steps-content tr:hover td {
  background: #f9fafb;
}

/* Step cards specifieke styling */
.step-content strong {
  color: #1e40af;
  font-weight: 600;
}

.step-content code {
  background: #dbeafe;
  color: #1e40af;
  padding: 0.2em 0.5em;
  border-radius: 0.375rem;
  font-size: 0.9em;
  font-weight: 500;
}

.step-content a {
  color: #2563eb;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.step-content a:hover {
  color: #1d4ed8;
}

/* Video container responsive */
.video-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.video-container iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
}

/* Prose utility klasse voor content */
.prose {
  max-width: 65ch;
}

.prose-lg {
  font-size: 1.125rem;
}

/* Highlight boxes voor belangrijke info */
.info-box {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-left: 4px solid #3b82f6;
  padding: 1.25em;
  border-radius: 0.75rem;
  margin: 1.5em 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.warning-box {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-left: 4px solid #f59e0b;
  padding: 1.25em;
  border-radius: 0.75rem;
  margin: 1.5em 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.success-box {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border-left: 4px solid #10b981;
  padding: 1.25em;
  border-radius: 0.75rem;
  margin: 1.5em 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.danger-box {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border-left: 4px solid #ef4444;
  padding: 1.25em;
  border-radius: 0.75rem;
  margin: 1.5em 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Modal scroll styling */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: #f8fafc;
}

.modal-content::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Responsive modal aanpassingen */
@media (max-width: 768px) {
  .modal-content {
    max-height: 95vh !important;
    border-radius: 1.5rem !important;
  }
  
  .steps-content {
    font-size: 0.95rem;
  }
  
  .video-container iframe {
    min-height: 250px;
  }
}

/* ============================================
   LIJST WEERGAVE STYLING
   ============================================ */

/* Details/Summary styling */
details {
  transition: all 0.3s ease;
}

details[open] {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

details summary {
  list-style: none;
  position: relative;
  padding-right: 3rem;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: "▼";
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: #3b82f6;
  transition: transform 0.3s ease;
}

details[open] summary::after {
  transform: translateY(-50%) rotate(180deg);
}

details summary:hover::after {
  color: #2563eb;
  transform: translateY(-50%) scale(1.2);
}

details[open] summary:hover::after {
  transform: translateY(-50%) rotate(180deg) scale(1.2);
}

/* Animatie voor opening van details */
details[open] > :not(summary) {
  animation: detailsOpen 0.4s ease-out;
}

@keyframes detailsOpen {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Focus state voor details */
details summary:focus {
  outline: 3px solid #3b82f6;
  outline-offset: 2px;
}

/* Hover effect voor summary */
details summary {
  -webkit-user-select: none;
  user-select: none;
}

details summary:active {
  transform: scale(0.99);
}

/* ============================================
   EXTRA TEKST VERBETERINGEN
   ============================================ */

/* Highlight tekst */
mark {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  padding: 0.125em 0.25em;
  border-radius: 0.25rem;
  font-weight: 500;
}

/* Keyboard shortcuts styling */
kbd {
  background: #1e293b;
  color: #e2e8f0;
  padding: 0.25em 0.5em;
  border-radius: 0.375rem;
  font-family: 'Courier New', monospace;
  font-size: 0.875em;
  font-weight: 600;
  border: 1px solid #334155;
  box-shadow: 0 2px 0 #0f172a;
  display: inline-block;
}

/* Numbered headings in steps */
.steps-content h3::before {
  content: "📌 ";
  color: #3b82f6;
  margin-right: 0.5em;
}

.steps-content h4::before {
  content: "➤ ";
  color: #8b5cf6;
  margin-right: 0.5em;
}

/* Tips en notities */
.tip,
.note {
  padding: 1.25em;
  border-radius: 0.75rem;
  margin: 1.5em 0;
  border-left: 4px solid;
  position: relative;
  padding-left: 3em;
}

.tip::before,
.note::before {
  position: absolute;
  left: 1em;
  top: 1.25em;
  font-size: 1.5em;
}

.tip {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-color: #3b82f6;
  color: #1e40af;
}

.tip::before {
  content: "💡";
}

.note {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-color: #f59e0b;
  color: #92400e;
}

.note::before {
  content: "📝";
}

/* Checklist styling */
.steps-content input[type="checkbox"] {
  width: 1.25em;
  height: 1.25em;
  margin-right: 0.5em;
  cursor: pointer;
  accent-color: #3b82f6;
}

/* Verbeterde link styling binnen stappen */
.steps-content a[href^="http"]::after {
  content: " ↗";
  font-size: 0.8em;
  color: #60a5fa;
}

/* Quote styling */
.steps-content q {
  quotes: "«" "»" "‹" "›";
  font-style: italic;
  color: #6366f1;
}

/* Abbreviation styling */
.steps-content abbr {
  cursor: help;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}

/* Small text */
.steps-content small {
  font-size: 0.875em;
  color: #6b7280;
}

/* Horizontal rule */
.steps-content hr {
  border: none;
  height: 3px;
  background: linear-gradient(90deg, transparent, #3b82f6, transparent);
  margin: 2em 0;
  border-radius: 3px;
}

/* Definition lists */
.steps-content dl {
  margin: 1.5em 0;
}

.steps-content dt {
  font-weight: 700;
  color: #1e40af;
  margin-top: 1em;
}

.steps-content dd {
  margin-left: 2em;
  margin-bottom: 0.5em;
  color: #4b5563;
}

/* Figure en figcaption */
.steps-content figure {
  margin: 2em 0;
  text-align: center;
}

.steps-content figcaption {
  margin-top: 0.75em;
  font-size: 0.875em;
  color: #6b7280;
  font-style: italic;
}

/* Step numbering voor handmatige nummering */
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2em;
  height: 2em;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  color: white;
  border-radius: 50%;
  font-weight: bold;
  margin-right: 0.75em;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

/* Verbeterde focus voor toegankelijkheid binnen modals */
.steps-content a:focus,
.steps-content button:focus,
.steps-content input:focus {
  outline: 3px solid #3b82f6;
  outline-offset: 2px;
  border-radius: 0.25rem;
}

/* Print optimalisatie voor stappen */
@media print {
  .steps-content {
    color: black !important;
    font-size: 12pt;
    line-height: 1.6;
  }
  
  .steps-content a {
    text-decoration: underline;
    color: black !important;
  }
  
  .steps-content a::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
}

/* ============================================
   AUTHENTICATIE FORMULIER STYLING
   ============================================ */

/* Naam veld smooth reveal */
#name-field {
  transition: all 0.4s ease-out;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin-bottom: 0 !important;
}

#name-field:not(.hidden) {
  max-height: 200px;
  opacity: 1;
  margin-bottom: 1.5rem !important;
  animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Registering mode highlight */
.registering-mode #name-field {
  animation: pulse-border 1s ease-in-out;
}

@keyframes pulse-border {
  0%, 100% {
    border-color: transparent;
  }
  50% {
    border-color: #10b981;
  }
}

/* Input focus effecten */
#email-input:focus,
#password-input:focus,
#name-input:focus {
  transform: scale(1.01);
  transition: transform 0.2s ease;
}

/* Email validatie visuele feedback */
#email-input.border-red-500 {
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

/* Error message animatie */
#auth-error:not(:empty) {
  animation: errorFadeIn 0.3s ease-out;
}

@keyframes errorFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Button hover effecten */
#login-btn:hover,
#register-btn:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

#login-btn:active,
#register-btn:active {
  transform: scale(0.98) !important;
}

/* Tilburg University badge styling */
.auth-container .text-red-600 {
  animation: emphasize 2s ease-in-out infinite;
}

@keyframes emphasize {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}




