/* ========================================
   OVERLAYS DE RESTRICTION - YAPlayer v2
   ======================================== */

/* Overlay de blocage d'accès */
.access-blocked-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.access-blocked-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.access-blocked-content {
  background: white;
  border-radius: 24px;
  padding: 48px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideIn 0.5s ease;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.access-blocked-icon {
  font-size: 80px;
  margin-bottom: 24px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.access-blocked-title {
  font-size: 32px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 16px;
}

.access-blocked-message {
  font-size: 16px;
  color: #64748b;
  margin-bottom: 12px;
  line-height: 1.6;
}

.access-blocked-details {
  background: #fef3c7;
  padding: 16px;
  border-radius: 12px;
  margin: 24px 0;
  border-left: 4px solid #fbbf24;
}

.access-blocked-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
}

.access-blocked-detail-label {
  color: #92400e;
  font-weight: 600;
}

.access-blocked-detail-value {
  color: #78350f;
  font-weight: 700;
}

.access-blocked-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.access-blocked-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.access-blocked-btn.primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.access-blocked-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.6);
}

.access-blocked-btn.secondary {
  background: transparent;
  color: #64748b;
  border: 2px solid #e2e8f0;
}

.access-blocked-btn.secondary:hover {
  background: #f8fafc;
  color: #1e293b;
}

/* Countdown Timer */
.access-blocked-countdown {
  margin: 24px 0;
  padding: 16px;
  background: #fee2e2;
  border-radius: 12px;
  border: 2px solid #ef4444;
}

.countdown-label {
  font-size: 13px;
  color: #991b1b;
  font-weight: 600;
  margin-bottom: 8px;
}

.countdown-timer {
  font-size: 28px;
  font-weight: 800;
  color: #dc2626;
  font-family: 'Courier New', monospace;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.loading-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.loading-spinner {
  width: 64px;
  height: 64px;
  border: 6px solid #e2e8f0;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 24px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  font-size: 18px;
  font-weight: 600;
  color: #64748b;
}

/* Success Overlay */
.success-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(16, 185, 129, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9997;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.success-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.success-icon {
  font-size: 120px;
  color: white;
  margin-bottom: 24px;
  animation: successBounce 0.6s ease;
}

@keyframes successBounce {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.success-title {
  font-size: 36px;
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.success-message {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
}

.success-btn {
  padding: 16px 48px;
  background: white;
  color: #10b981;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.success-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  background: white;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s ease;
  pointer-events: all;
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.toast-message {
  flex-grow: 1;
  font-size: 14px;
  color: #1e293b;
  font-weight: 600;
}

.toast-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #64748b;
  padding: 4px;
  transition: color 0.2s ease;
}

.toast-close:hover {
  color: #1e293b;
}

.toast.success {
  border-left: 4px solid #10b981;
}

.toast.error {
  border-left: 4px solid #ef4444;
}

.toast.warning {
  border-left: 4px solid #f59e0b;
}

.toast.info {
  border-left: 4px solid #3b82f6;
}

/* Responsive */
@media (max-width: 768px) {
  .access-blocked-content {
    padding: 32px 24px;
  }
  
  .access-blocked-icon {
    font-size: 64px;
  }
  
  .access-blocked-title {
    font-size: 24px;
  }
  
  .toast-container {
    top: 12px;
    right: 12px;
    left: 12px;
  }
  
  .toast {
    min-width: auto;
    width: 100%;
  }
}


